2013-08-26 17:50:02 +02:00
|
|
|
import qbs.FileInfo
|
2020-05-07 16:56:49 +02:00
|
|
|
import qbs.Utilities
|
2013-10-02 17:52:45 +02:00
|
|
|
import QtcFunctions
|
2013-08-26 17:50:02 +02:00
|
|
|
|
|
|
|
|
DynamicLibrary {
|
|
|
|
|
Depends { name: "Aggregation" }
|
|
|
|
|
Depends { name: "ExtensionSystem" }
|
|
|
|
|
Depends { name: "cpp" }
|
|
|
|
|
Depends { name: "Qt.core" }
|
2014-07-16 17:13:41 +02:00
|
|
|
Depends { name: "copyable_resource" }
|
2016-05-17 10:50:51 +02:00
|
|
|
Depends { name: "qtc" }
|
2013-09-18 18:05:41 +02:00
|
|
|
targetName: QtcFunctions.qtLibraryName(qbs, name.split('_')[1])
|
2014-07-16 13:34:55 +02:00
|
|
|
destinationDirectory: project.buildDirectory + '/'
|
|
|
|
|
+ FileInfo.relativePath(project.ide_source_tree, sourceDirectory)
|
2020-05-07 16:56:49 +02:00
|
|
|
cpp.cxxFlags: {
|
|
|
|
|
var flags = [];
|
|
|
|
|
if (qbs.toolchain.contains("clang")
|
2020-05-11 11:38:33 +02:00
|
|
|
&& !qbs.hostOS.contains("darwin")
|
2020-05-07 16:56:49 +02:00
|
|
|
&& Utilities.versionCompare(cpp.compilerVersion, "10") >= 0) {
|
|
|
|
|
// Triggers a lot in Qt.
|
|
|
|
|
flags.push("-Wno-deprecated-copy", "-Wno-constant-logical-operand");
|
|
|
|
|
}
|
|
|
|
|
return flags;
|
|
|
|
|
}
|
2013-08-26 17:50:02 +02:00
|
|
|
cpp.rpaths: [
|
2016-05-17 10:50:51 +02:00
|
|
|
project.buildDirectory + "/" + qtc.libDirName + "/qtcreator",
|
|
|
|
|
project.buildDirectory + "/" + qtc.libDirName + "/qtcreator/plugins"
|
2013-08-26 17:50:02 +02:00
|
|
|
].concat(additionalRPaths)
|
2016-02-24 15:46:36 +01:00
|
|
|
cpp.cxxLanguageVersion: "c++11"
|
2013-08-26 17:50:02 +02:00
|
|
|
property pathList additionalRPaths: []
|
|
|
|
|
}
|