Files
qt-creator/tests/auto/extensionsystem/plugin.qbs
Christian Kandeler 8e1169f4bf qbs build: Take differences between clang and "apple clang" into account
In particular, clang with version number 10 is not really clang 10 on
macOS.

Change-Id: I8be489fa9cffd63c1ea8f13d181686ab1a575ec6
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-05-12 07:31:39 +00:00

32 lines
1.1 KiB
QML

import qbs.FileInfo
import qbs.Utilities
import QtcFunctions
DynamicLibrary {
Depends { name: "Aggregation" }
Depends { name: "ExtensionSystem" }
Depends { name: "cpp" }
Depends { name: "Qt.core" }
Depends { name: "copyable_resource" }
Depends { name: "qtc" }
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: []
}