1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
import qbs.FileInfo
import qbs.Utilities
import QtcFunctions
DynamicLibrary {
Depends { name: "Aggregation" }
Depends { name: "ExtensionSystem" }
Depends { name: "Utils" }
Depends { name: "cpp" }
Depends { name: "Qt.core" }
Depends { name: "copyable_resource" }
Depends { name: "qtc" }
install: false
targetName: QtcFunctions.qtLibraryName(qbs, name.split('_')[1])
destinationDirectory: project.buildDirectory + '/'
+ FileInfo.relativePath(project.ide_source_tree, sourceDirectory)
cpp.cxxFlags: {
var flags = [];
if (qbs.toolchain.contains("clang")
&& !qbs.hostOS.contains("darwin")
&& Utilities.versionCompare(cpp.compilerVersion, "10") >= 0) {
// Triggers a lot in Qt.
flags.push("-Wno-deprecated-copy", "-Wno-constant-logical-operand");
}
return flags;
}
cpp.rpaths: [
project.buildDirectory + "/" + qtc.libDirName + "/qtcreator",
project.buildDirectory + "/" + qtc.libDirName + "/qtcreator/plugins"
].concat(additionalRPaths)
cpp.cxxLanguageVersion: "c++11"
property pathList additionalRPaths: []
}
|