forked from qt-creator/qt-creator
update qbs files
Use the new contains function and the targetOS list. Change-Id: I38b995eb9328e449befad85792512c45670cc8c9 Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
This commit is contained in:
@@ -6,7 +6,7 @@ Product {
|
|||||||
Group {
|
Group {
|
||||||
name: "Resources"
|
name: "Resources"
|
||||||
qbs.install: true
|
qbs.install: true
|
||||||
qbs.installDir: (qbs.targetOS == "windows" ? "lib/qtcreator" : project.ide_library_path)
|
qbs.installDir: (qbs.targetOS.contains("windows") ? "lib/qtcreator" : project.ide_library_path)
|
||||||
+ "/qtcomponents"
|
+ "/qtcomponents"
|
||||||
files: [
|
files: [
|
||||||
"*.qml",
|
"*.qml",
|
||||||
|
|||||||
@@ -8,32 +8,36 @@ Project {
|
|||||||
property string ide_version_minor: '7'
|
property string ide_version_minor: '7'
|
||||||
property string ide_version_release: '83'
|
property string ide_version_release: '83'
|
||||||
property string qtcreator_version: ide_version_major + '.' + ide_version_minor + '.' + ide_version_release
|
property string qtcreator_version: ide_version_major + '.' + ide_version_minor + '.' + ide_version_release
|
||||||
property string ide_app_path: qbs.targetOS == "mac" ? "" : "bin"
|
property string ide_app_path: qbs.targetOS.contains("mac") ? "" : "bin"
|
||||||
property string ide_app_target: qbs.targetOS == "mac" ? "Qt Creator" : "qtcreator"
|
property string ide_app_target: qbs.targetOS.contains("mac") ? "Qt Creator" : "qtcreator"
|
||||||
property string ide_library_path: {
|
property string ide_library_path: {
|
||||||
if (qbs.targetOS == "mac")
|
if (qbs.targetOS.contains("mac"))
|
||||||
return ide_app_target + ".app/Contents/PlugIns"
|
return ide_app_target + ".app/Contents/PlugIns"
|
||||||
else if (qbs.targetOS == "windows")
|
else if (qbs.targetOS.contains("windows"))
|
||||||
return ide_app_path
|
return ide_app_path
|
||||||
else
|
else
|
||||||
return "lib/qtcreator"
|
return "lib/qtcreator"
|
||||||
}
|
}
|
||||||
property string ide_plugin_path: {
|
property string ide_plugin_path: {
|
||||||
if (qbs.targetOS == "mac")
|
if (qbs.targetOS.contains("mac"))
|
||||||
return ide_library_path
|
return ide_library_path
|
||||||
else if (qbs.targetOS == "windows")
|
else if (qbs.targetOS.contains("windows"))
|
||||||
return "lib/qtcreator/plugins"
|
return "lib/qtcreator/plugins"
|
||||||
else
|
else
|
||||||
return ide_library_path + "/plugins"
|
return ide_library_path + "/plugins"
|
||||||
}
|
}
|
||||||
property string ide_data_path: qbs.targetOS == "mac" ? ide_app_target + ".app/Contents/Resources"
|
property string ide_data_path: qbs.targetOS.contains("mac")
|
||||||
: "share/qtcreator"
|
? ide_app_target + ".app/Contents/Resources"
|
||||||
property string ide_libexec_path: qbs.targetOS == "mac" ? ide_data_path
|
: "share/qtcreator"
|
||||||
: ide_app_path
|
property string ide_libexec_path: qbs.targetOS.contains("mac")
|
||||||
property string ide_doc_path: qbs.targetOS == "mac" ? ide_data_path + "/doc"
|
? ide_data_path
|
||||||
: "share/doc/qtcreator"
|
: ide_app_path
|
||||||
property string ide_bin_path: qbs.targetOS == "mac" ? ide_app_target + ".app/Contents/MacOS"
|
property string ide_doc_path: qbs.targetOS.contains("mac")
|
||||||
: ide_app_path
|
? ide_data_path + "/doc"
|
||||||
|
: "share/doc/qtcreator"
|
||||||
|
property string ide_bin_path: qbs.targetOS.contains("mac")
|
||||||
|
? ide_app_target + ".app/Contents/MacOS"
|
||||||
|
: ide_app_path
|
||||||
moduleSearchPaths: "qbs"
|
moduleSearchPaths: "qbs"
|
||||||
|
|
||||||
references: [
|
references: [
|
||||||
@@ -170,7 +174,7 @@ Project {
|
|||||||
name: project.ide_app_target
|
name: project.ide_app_target
|
||||||
consoleApplication: qbs.debugInformation
|
consoleApplication: qbs.debugInformation
|
||||||
|
|
||||||
cpp.rpaths: qbs.targetOS == "mac" ? ["@executable_path/.."]
|
cpp.rpaths: qbs.targetOS.contains("mac") ? ["@executable_path/.."]
|
||||||
: ["$ORIGIN/../lib/qtcreator"]
|
: ["$ORIGIN/../lib/qtcreator"]
|
||||||
cpp.defines: Defaults.defines(qbs)
|
cpp.defines: Defaults.defines(qbs)
|
||||||
cpp.linkerFlags: {
|
cpp.linkerFlags: {
|
||||||
@@ -205,7 +209,7 @@ Project {
|
|||||||
|
|
||||||
Group {
|
Group {
|
||||||
name: "qtcreator.sh"
|
name: "qtcreator.sh"
|
||||||
condition: qbs.targetPlatform.indexOf("unix") != -1 && qbs.targetOS != "mac"
|
condition: qbs.targetOS.contains("unix") && !qbs.targetOS.contains("mac")
|
||||||
files: "bin/qtcreator.sh"
|
files: "bin/qtcreator.sh"
|
||||||
qbs.install: true
|
qbs.install: true
|
||||||
qbs.installDir: "bin"
|
qbs.installDir: "bin"
|
||||||
@@ -213,7 +217,7 @@ Project {
|
|||||||
|
|
||||||
Group {
|
Group {
|
||||||
name: "QtLockedFile_unix"
|
name: "QtLockedFile_unix"
|
||||||
condition: qbs.targetPlatform.indexOf("unix") != -1
|
condition: qbs.targetOS.contains("unix")
|
||||||
files: [
|
files: [
|
||||||
"src/shared/qtlockedfile/qtlockedfile_unix.cpp"
|
"src/shared/qtlockedfile/qtlockedfile_unix.cpp"
|
||||||
]
|
]
|
||||||
@@ -221,7 +225,7 @@ Project {
|
|||||||
|
|
||||||
Group {
|
Group {
|
||||||
name: "QtLockedFile_win"
|
name: "QtLockedFile_win"
|
||||||
condition: qbs.targetOS == "windows"
|
condition: qbs.targetOS.contains("windows")
|
||||||
files: [
|
files: [
|
||||||
"src/shared/qtlockedfile/qtlockedfile_win.cpp"
|
"src/shared/qtlockedfile/qtlockedfile_win.cpp"
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -14,8 +14,9 @@ DynamicLibrary {
|
|||||||
return ["-Wl,-s"]
|
return ["-Wl,-s"]
|
||||||
}
|
}
|
||||||
cpp.installNamePrefix: "@rpath/PlugIns/"
|
cpp.installNamePrefix: "@rpath/PlugIns/"
|
||||||
cpp.rpaths: qbs.targetOS == "mac" ? ["@loader_path/..", "@executable_path/.."]
|
cpp.rpaths: qbs.targetOS.contains("mac")
|
||||||
: ["$ORIGIN", "$ORIGIN/.."]
|
? ["@loader_path/..", "@executable_path/.."]
|
||||||
|
: ["$ORIGIN", "$ORIGIN/.."]
|
||||||
cpp.includePaths: [ ".", ".." ]
|
cpp.includePaths: [ ".", ".." ]
|
||||||
|
|
||||||
Export {
|
Export {
|
||||||
|
|||||||
@@ -54,13 +54,13 @@ QtcLibrary {
|
|||||||
var result = [];
|
var result = [];
|
||||||
if (useSystemBotan)
|
if (useSystemBotan)
|
||||||
result.push("botan-1.10")
|
result.push("botan-1.10")
|
||||||
if (qbs.targetOS === "windows")
|
if (qbs.targetOS.contains("windows"))
|
||||||
result.push("advapi32", "user32")
|
result.push("advapi32", "user32")
|
||||||
else if (qbs.targetOS === "linux")
|
else if (qbs.targetOS.contains("linux"))
|
||||||
result.push("rt", "dl");
|
result.push("rt", "dl");
|
||||||
else if (qbs.targetOS === "mac")
|
else if (qbs.targetOS.contains("mac"))
|
||||||
result.push("dl");
|
result.push("dl");
|
||||||
else if (qbs.targetPlatform.indexOf("unix") !== -1)
|
else if (qbs.targetOS.contains("unix"))
|
||||||
result.push("rt");
|
result.push("rt");
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
@@ -74,7 +74,7 @@ QtcLibrary {
|
|||||||
result.push("BOTAN_BUILD_COMPILER_IS_MSVC", "BOTAN_TARGET_OS_HAS_GMTIME_S")
|
result.push("BOTAN_BUILD_COMPILER_IS_MSVC", "BOTAN_TARGET_OS_HAS_GMTIME_S")
|
||||||
if (qbs.toolchain === "gcc" || qbs.toolchain === "mingw")
|
if (qbs.toolchain === "gcc" || qbs.toolchain === "mingw")
|
||||||
result.push("BOTAN_BUILD_COMPILER_IS_GCC")
|
result.push("BOTAN_BUILD_COMPILER_IS_GCC")
|
||||||
if (qbs.targetOS === "linux")
|
if (qbs.targetOS.contains("linux"))
|
||||||
result.push("BOTAN_TARGET_OS_IS_LINUX", "BOTAN_TARGET_OS_HAS_CLOCK_GETTIME",
|
result.push("BOTAN_TARGET_OS_IS_LINUX", "BOTAN_TARGET_OS_HAS_CLOCK_GETTIME",
|
||||||
"BOTAN_TARGET_OS_HAS_DLOPEN", " BOTAN_TARGET_OS_HAS_GMTIME_R",
|
"BOTAN_TARGET_OS_HAS_DLOPEN", " BOTAN_TARGET_OS_HAS_GMTIME_R",
|
||||||
"BOTAN_TARGET_OS_HAS_POSIX_MLOCK", "BOTAN_HAS_DYNAMICALLY_LOADED_ENGINE",
|
"BOTAN_TARGET_OS_HAS_POSIX_MLOCK", "BOTAN_HAS_DYNAMICALLY_LOADED_ENGINE",
|
||||||
@@ -82,12 +82,12 @@ QtcLibrary {
|
|||||||
"BOTAN_HAS_ALLOC_MMAP", "BOTAN_HAS_ENTROPY_SRC_DEV_RANDOM",
|
"BOTAN_HAS_ALLOC_MMAP", "BOTAN_HAS_ENTROPY_SRC_DEV_RANDOM",
|
||||||
"BOTAN_HAS_ENTROPY_SRC_EGD", "BOTAN_HAS_ENTROPY_SRC_FTW",
|
"BOTAN_HAS_ENTROPY_SRC_EGD", "BOTAN_HAS_ENTROPY_SRC_FTW",
|
||||||
"BOTAN_HAS_ENTROPY_SRC_UNIX", "BOTAN_HAS_MUTEX_PTHREAD", "BOTAN_HAS_PIPE_UNIXFD_IO")
|
"BOTAN_HAS_ENTROPY_SRC_UNIX", "BOTAN_HAS_MUTEX_PTHREAD", "BOTAN_HAS_PIPE_UNIXFD_IO")
|
||||||
if (qbs.targetOS === "mac")
|
if (qbs.targetOS.contains("mac"))
|
||||||
result.push("BOTAN_TARGET_OS_IS_DARWIN", "BOTAN_TARGET_OS_HAS_GETTIMEOFDAY",
|
result.push("BOTAN_TARGET_OS_IS_DARWIN", "BOTAN_TARGET_OS_HAS_GETTIMEOFDAY",
|
||||||
"BOTAN_HAS_ALLOC_MMAP", "BOTAN_HAS_ENTROPY_SRC_DEV_RANDOM",
|
"BOTAN_HAS_ALLOC_MMAP", "BOTAN_HAS_ENTROPY_SRC_DEV_RANDOM",
|
||||||
"BOTAN_HAS_ENTROPY_SRC_EGD", "BOTAN_HAS_ENTROPY_SRC_FTW",
|
"BOTAN_HAS_ENTROPY_SRC_EGD", "BOTAN_HAS_ENTROPY_SRC_FTW",
|
||||||
"BOTAN_HAS_ENTROPY_SRC_UNIX", "BOTAN_HAS_MUTEX_PTHREAD", "BOTAN_HAS_PIPE_UNIXFD_IO")
|
"BOTAN_HAS_ENTROPY_SRC_UNIX", "BOTAN_HAS_MUTEX_PTHREAD", "BOTAN_HAS_PIPE_UNIXFD_IO")
|
||||||
if (qbs.targetOS === "windows")
|
if (qbs.targetOS.contains("windows"))
|
||||||
result.push("BOTAN_TARGET_OS_IS_WINDOWS",
|
result.push("BOTAN_TARGET_OS_IS_WINDOWS",
|
||||||
"BOTAN_TARGET_OS_HAS_LOADLIBRARY", "BOTAN_TARGET_OS_HAS_WIN32_GET_SYSTEMTIME",
|
"BOTAN_TARGET_OS_HAS_LOADLIBRARY", "BOTAN_TARGET_OS_HAS_WIN32_GET_SYSTEMTIME",
|
||||||
"BOTAN_TARGET_OS_HAS_WIN32_VIRTUAL_LOCK", "BOTAN_HAS_DYNAMICALLY_LOADED_ENGINE",
|
"BOTAN_TARGET_OS_HAS_WIN32_VIRTUAL_LOCK", "BOTAN_HAS_DYNAMICALLY_LOADED_ENGINE",
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import "../../tools/QtcTool.qbs" as QtcTool
|
|||||||
QtcTool {
|
QtcTool {
|
||||||
name: "qtcreator_ctrlc_stub"
|
name: "qtcreator_ctrlc_stub"
|
||||||
consoleApplication: true
|
consoleApplication: true
|
||||||
condition: qbs.targetOS == "windows"
|
condition: qbs.targetOS.contains("windows")
|
||||||
|
|
||||||
|
|
||||||
files: [ "process_ctrlc_stub.cpp" ]
|
files: [ "process_ctrlc_stub.cpp" ]
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ QtcTool {
|
|||||||
|
|
||||||
|
|
||||||
files: {
|
files: {
|
||||||
if (qbs.targetOS == "windows") {
|
if (qbs.targetOS.contains("windows")) {
|
||||||
return [ "process_stub_win.c" ]
|
return [ "process_stub_win.c" ]
|
||||||
} else {
|
} else {
|
||||||
return [ "process_stub_unix.c" ]
|
return [ "process_stub_unix.c" ]
|
||||||
@@ -15,7 +15,7 @@ QtcTool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
cpp.dynamicLibraries: {
|
cpp.dynamicLibraries: {
|
||||||
if (qbs.targetOS == "windows") {
|
if (qbs.targetOS.contains("windows")) {
|
||||||
return [ "shell32" ]
|
return [ "shell32" ]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ QtcLibrary {
|
|||||||
cpp.defines: base.concat("QTCREATOR_UTILS_LIB")
|
cpp.defines: base.concat("QTCREATOR_UTILS_LIB")
|
||||||
|
|
||||||
Properties {
|
Properties {
|
||||||
condition: qbs.targetOS == "windows"
|
condition: qbs.targetOS.contains("windows")
|
||||||
cpp.dynamicLibraries: [
|
cpp.dynamicLibraries: [
|
||||||
"user32",
|
"user32",
|
||||||
"iphlpapi",
|
"iphlpapi",
|
||||||
@@ -15,7 +15,7 @@ QtcLibrary {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
Properties {
|
Properties {
|
||||||
condition: qbs.targetPlatform.indexOf("unix") != -1 && qbs.targetOS != "mac"
|
condition: qbs.targetOS.contains("unix") && !qbs.targetOS.contains("mac")
|
||||||
cpp.dynamicLibraries: ["X11"]
|
cpp.dynamicLibraries: ["X11"]
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -197,7 +197,7 @@ QtcLibrary {
|
|||||||
|
|
||||||
Group {
|
Group {
|
||||||
name: "WindowsUtils"
|
name: "WindowsUtils"
|
||||||
condition: qbs.targetOS == "windows"
|
condition: qbs.targetOS.contains("windows")
|
||||||
files: [
|
files: [
|
||||||
"consoleprocess_win.cpp",
|
"consoleprocess_win.cpp",
|
||||||
"winutils.cpp",
|
"winutils.cpp",
|
||||||
@@ -207,7 +207,7 @@ QtcLibrary {
|
|||||||
|
|
||||||
Group {
|
Group {
|
||||||
name: "ConsoleProcess_unix"
|
name: "ConsoleProcess_unix"
|
||||||
condition: qbs.targetPlatform.indexOf("unix") != -1
|
condition: qbs.targetOS.contains("unix")
|
||||||
files: [
|
files: [
|
||||||
"consoleprocess_unix.cpp",
|
"consoleprocess_unix.cpp",
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ QtcLibrary {
|
|||||||
cpp.defines: {
|
cpp.defines: {
|
||||||
var list = base;
|
var list = base;
|
||||||
list.push("ZEROCONF_LIBRARY");
|
list.push("ZEROCONF_LIBRARY");
|
||||||
if (qbs.targetOS === "linux") {
|
if (qbs.targetOS.contains("linux")) {
|
||||||
list.push(
|
list.push(
|
||||||
"_GNU_SOURCE",
|
"_GNU_SOURCE",
|
||||||
"HAVE_IPV6",
|
"HAVE_IPV6",
|
||||||
@@ -23,7 +23,7 @@ QtcLibrary {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Properties {
|
Properties {
|
||||||
condition: qbs.targetOS == "windows"
|
condition: qbs.targetOS.contains("windows")
|
||||||
cpp.dynamicLibraries: "ws2_32"
|
cpp.dynamicLibraries: "ws2_32"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ Product {
|
|||||||
|
|
||||||
cpp.defines: Defaults.defines(qbs).concat([name.toUpperCase() + "_LIBRARY"])
|
cpp.defines: Defaults.defines(qbs).concat([name.toUpperCase() + "_LIBRARY"])
|
||||||
cpp.installNamePrefix: "@rpath/PlugIns/" + provider + "/"
|
cpp.installNamePrefix: "@rpath/PlugIns/" + provider + "/"
|
||||||
cpp.rpaths: qbs.targetOS == "mac" ? ["@loader_path/../..", "@executable_path/.."]
|
cpp.rpaths: qbs.targetOS.contains("mac") ? ["@loader_path/../..", "@executable_path/.."]
|
||||||
: ["$ORIGIN", "$ORIGIN/..", "$ORIGIN/../.."]
|
: ["$ORIGIN", "$ORIGIN/..", "$ORIGIN/../.."]
|
||||||
cpp.linkerFlags: {
|
cpp.linkerFlags: {
|
||||||
if (qbs.buildVariant == "release" && (qbs.toolchain == "gcc" || qbs.toolchain == "mingw"))
|
if (qbs.buildVariant == "release" && (qbs.toolchain == "gcc" || qbs.toolchain == "mingw"))
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ QtcPlugin {
|
|||||||
name: "ClearCase"
|
name: "ClearCase"
|
||||||
// provider: "AudioCodes"
|
// provider: "AudioCodes"
|
||||||
|
|
||||||
condition: qbs.targetOS != "mac"
|
condition: !qbs.targetOS.contains("mac")
|
||||||
|
|
||||||
Depends { name: "Qt.widgets" }
|
Depends { name: "Qt.widgets" }
|
||||||
Depends { name: "Core" }
|
Depends { name: "Core" }
|
||||||
|
|||||||
@@ -25,13 +25,13 @@ QtcPlugin {
|
|||||||
])
|
])
|
||||||
|
|
||||||
cpp.dynamicLibraries: {
|
cpp.dynamicLibraries: {
|
||||||
if (qbs.targetOS == "windows") return [
|
if (qbs.targetOS.contains("windows")) return [
|
||||||
"ole32",
|
"ole32",
|
||||||
"user32"
|
"user32"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
cpp.frameworks: qbs.targetOS === "mac" ? ["AppKit"] : undefined
|
cpp.frameworks: qbs.targetOS.contains("mac") ? ["AppKit"] : undefined
|
||||||
|
|
||||||
files: [
|
files: [
|
||||||
"basefilewizard.cpp",
|
"basefilewizard.cpp",
|
||||||
@@ -233,7 +233,7 @@ QtcPlugin {
|
|||||||
|
|
||||||
Group {
|
Group {
|
||||||
name: "ProgressManager_win"
|
name: "ProgressManager_win"
|
||||||
condition: qbs.targetOS == "windows"
|
condition: qbs.targetOS.contains("windows")
|
||||||
files: [
|
files: [
|
||||||
"progressmanager/progressmanager_win.cpp",
|
"progressmanager/progressmanager_win.cpp",
|
||||||
]
|
]
|
||||||
@@ -241,7 +241,7 @@ QtcPlugin {
|
|||||||
|
|
||||||
Group {
|
Group {
|
||||||
name: "ProgressManager_mac"
|
name: "ProgressManager_mac"
|
||||||
condition: qbs.targetOS == "mac"
|
condition: qbs.targetOS.contains("mac")
|
||||||
files: [
|
files: [
|
||||||
"macfullscreen.h",
|
"macfullscreen.h",
|
||||||
"macfullscreen.mm",
|
"macfullscreen.mm",
|
||||||
@@ -251,7 +251,7 @@ QtcPlugin {
|
|||||||
|
|
||||||
Group {
|
Group {
|
||||||
name: "ProgressManager_x11"
|
name: "ProgressManager_x11"
|
||||||
condition: qbs.targetPlatform.indexOf("unix") != -1 && qbs.targetOS != "mac"
|
condition: qbs.targetOS.contains("unix") && !qbs.targetOS.contains("mac")
|
||||||
files: [
|
files: [
|
||||||
"progressmanager/progressmanager_x11.cpp",
|
"progressmanager/progressmanager_x11.cpp",
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import qbs.base 1.0
|
import qbs.base 1.0
|
||||||
|
|
||||||
Product {
|
Product {
|
||||||
condition: qbs.targetOS == "linux"
|
condition: qbs.targetOS.contains("linux")
|
||||||
name: "LogoImages"
|
name: "LogoImages"
|
||||||
|
|
||||||
Group {
|
Group {
|
||||||
|
|||||||
@@ -268,7 +268,7 @@ QtcPlugin {
|
|||||||
|
|
||||||
Group {
|
Group {
|
||||||
name: "RegistryAccess"
|
name: "RegistryAccess"
|
||||||
condition: qbs.targetOS == "windows"
|
condition: qbs.targetOS.contains("windows")
|
||||||
prefix: "../../shared/registryaccess/"
|
prefix: "../../shared/registryaccess/"
|
||||||
files: [
|
files: [
|
||||||
"registryaccess.cpp",
|
"registryaccess.cpp",
|
||||||
@@ -278,7 +278,7 @@ QtcPlugin {
|
|||||||
|
|
||||||
Group {
|
Group {
|
||||||
name: "RegisterPostMortem"
|
name: "RegisterPostMortem"
|
||||||
condition: qbs.targetOS == "windows"
|
condition: qbs.targetOS.contains("windows")
|
||||||
files: [
|
files: [
|
||||||
"registerpostmortemaction.cpp",
|
"registerpostmortemaction.cpp",
|
||||||
"registerpostmortemaction.h",
|
"registerpostmortemaction.h",
|
||||||
@@ -287,7 +287,7 @@ QtcPlugin {
|
|||||||
|
|
||||||
Group {
|
Group {
|
||||||
name: "LLDBOptions"
|
name: "LLDBOptions"
|
||||||
condition: qbs.targetOS == "mac"
|
condition: qbs.targetOS.contains("mac")
|
||||||
files: [
|
files: [
|
||||||
"lldblib/lldboptionspage.cpp",
|
"lldblib/lldboptionspage.cpp",
|
||||||
"lldblib/lldboptionspage.h",
|
"lldblib/lldboptionspage.h",
|
||||||
@@ -296,7 +296,7 @@ QtcPlugin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Properties {
|
Properties {
|
||||||
condition: qbs.targetOS == "windows"
|
condition: qbs.targetOS.contains("windows")
|
||||||
cpp.dynamicLibraries: [
|
cpp.dynamicLibraries: [
|
||||||
"advapi32",
|
"advapi32",
|
||||||
"ole32",
|
"ole32",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import "../../libs/QtcLibrary.qbs" as QtcLibrary
|
|||||||
|
|
||||||
QtcLibrary {
|
QtcLibrary {
|
||||||
name: "ptracepreload"
|
name: "ptracepreload"
|
||||||
condition: qbs.targetOS == "linux"
|
condition: qbs.targetOS.contains("linux")
|
||||||
|
|
||||||
cpp.dynamicLibraries: [
|
cpp.dynamicLibraries: [
|
||||||
"dl",
|
"dl",
|
||||||
|
|||||||
@@ -334,7 +334,7 @@ QtcPlugin {
|
|||||||
|
|
||||||
Group {
|
Group {
|
||||||
name: "WindowsToolChains"
|
name: "WindowsToolChains"
|
||||||
condition: qbs.targetOS == "windows" || Defaults.testsEnabled(qbs)
|
condition: qbs.targetOS.contains("windows") || Defaults.testsEnabled(qbs)
|
||||||
files: [
|
files: [
|
||||||
"abstractmsvctoolchain.cpp",
|
"abstractmsvctoolchain.cpp",
|
||||||
"abstractmsvctoolchain.h",
|
"abstractmsvctoolchain.h",
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ QtcPlugin {
|
|||||||
cpp.rpaths: base.concat([qbs_build_dir + "/lib"])
|
cpp.rpaths: base.concat([qbs_build_dir + "/lib"])
|
||||||
cpp.dynamicLibraries: {
|
cpp.dynamicLibraries: {
|
||||||
var libs = []
|
var libs = []
|
||||||
if (qbs.targetOS === "windows") {
|
if (qbs.targetOS.contains("windows")) {
|
||||||
libs.push("shell32")
|
libs.push("shell32")
|
||||||
if (qbs.enableDebugCode)
|
if (qbs.enableDebugCode)
|
||||||
libs.push("qbscored")
|
libs.push("qbscored")
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import "../QtcTool.qbs" as QtcTool
|
|||||||
|
|
||||||
QtcTool {
|
QtcTool {
|
||||||
name: "qtcdebugger"
|
name: "qtcdebugger"
|
||||||
condition: qbs.targetOS == "windows"
|
condition: qbs.targetOS.contains("windows")
|
||||||
|
|
||||||
cpp.includePaths: [
|
cpp.includePaths: [
|
||||||
buildDirectory,
|
buildDirectory,
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import "../QtcTool.qbs" as QtcTool
|
|||||||
|
|
||||||
QtcTool {
|
QtcTool {
|
||||||
name: "qtcreator_crash_handler"
|
name: "qtcreator_crash_handler"
|
||||||
condition: qbs.targetOS == "linux" && qbs.buildVariant == "debug"
|
condition: qbs.targetOS.contains("linux") && qbs.buildVariant == "debug"
|
||||||
|
|
||||||
cpp.includePaths: [
|
cpp.includePaths: [
|
||||||
buildDirectory,
|
buildDirectory,
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ QtcTool {
|
|||||||
Depends { name: "app_version_header" }
|
Depends { name: "app_version_header" }
|
||||||
|
|
||||||
cpp.includePaths: "../../libs"
|
cpp.includePaths: "../../libs"
|
||||||
cpp.defines: base.concat([qbs.targetOS === "mac"
|
cpp.defines: base.concat([qbs.targetOS.contains("mac")
|
||||||
? 'DATA_PATH="."' : 'DATA_PATH="../share/qtcreator"'])
|
? 'DATA_PATH="."' : 'DATA_PATH="../share/qtcreator"'])
|
||||||
|
|
||||||
files: [
|
files: [
|
||||||
|
|||||||
Reference in New Issue
Block a user