summaryrefslogtreecommitdiff
path: root/src/plugins/QtcPlugin.qbs
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/QtcPlugin.qbs')
-rw-r--r--src/plugins/QtcPlugin.qbs10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/plugins/QtcPlugin.qbs b/src/plugins/QtcPlugin.qbs
index 606e798000..b5f2154847 100644
--- a/src/plugins/QtcPlugin.qbs
+++ b/src/plugins/QtcPlugin.qbs
@@ -1,5 +1,6 @@
import qbs.base 1.0
import qbs.fileinfo 1.0 as FileInfo
+import "../../qbs/defaults.js" as Defaults
Product {
type: ["dynamiclibrary", "pluginSpec"]
@@ -21,16 +22,21 @@ Product {
Depends { name: "pluginspec" }
Depends { name: "cpp" }
- cpp.defines: project.additionalCppDefines.concat([name.toUpperCase() + "_LIBRARY"])
+ Depends {
+ condition: Defaults.testsEnabled(qbs)
+ name: "Qt.test"
+ }
+
+ cpp.defines: Defaults.defines(qbs).concat([name.toUpperCase() + "_LIBRARY"])
cpp.rpaths: ["$ORIGIN/../../.."]
cpp.linkerFlags: {
if (qbs.buildVariant == "release" && (qbs.toolchain == "gcc" || qbs.toolchain == "mingw"))
return ["-Wl,-s"]
}
+ cpp.includePaths: [ ".", ".." ]
Group {
files: [ name + ".pluginspec.in" ]
fileTags: ["pluginSpecIn"]
}
}
-