forked from qt-creator/qt-creator
SdkTool: Fix qbs release build with auto tests
Change-Id: I42777d24f96186d099a30f9da8ac99b0b1bcba4f Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
committed by
Christian Kandeler
parent
34213f5717
commit
dd39d07cd3
@@ -11,13 +11,18 @@ QtcLibrary {
|
||||
|
||||
property string libsDir: path + "/../../libs"
|
||||
|
||||
cpp.defines: base.concat([
|
||||
"UTILS_LIBRARY",
|
||||
qbs.targetOS.contains("macos")
|
||||
? 'DATA_PATH="."'
|
||||
: qbs.targetOS.contains("windows") ? 'DATA_PATH="../share/qtcreator"'
|
||||
: 'DATA_PATH="../../share/qtcreator"'
|
||||
])
|
||||
cpp.defines: {
|
||||
var defines = base;
|
||||
base.push(
|
||||
"UTILS_LIBRARY",
|
||||
qbs.targetOS.contains("macos")
|
||||
? 'DATA_PATH="."'
|
||||
: qbs.targetOS.contains("windows") ? 'DATA_PATH="../share/qtcreator"'
|
||||
: 'DATA_PATH="../../share/qtcreator"');
|
||||
if (project.withAutotests)
|
||||
defines.push("WITH_TESTS");
|
||||
return defines;
|
||||
}
|
||||
cpp.dynamicLibraries: {
|
||||
if (qbs.targetOS.contains("windows"))
|
||||
return ["user32", "shell32"]
|
||||
|
Reference in New Issue
Block a user