aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/language/testdata/multiplexed-exports.qbs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/language/testdata/multiplexed-exports.qbs')
-rw-r--r--tests/auto/language/testdata/multiplexed-exports.qbs20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/auto/language/testdata/multiplexed-exports.qbs b/tests/auto/language/testdata/multiplexed-exports.qbs
new file mode 100644
index 000000000..923ddc2ab
--- /dev/null
+++ b/tests/auto/language/testdata/multiplexed-exports.qbs
@@ -0,0 +1,20 @@
+import qbs
+
+Project {
+ Product {
+ name: "dep"
+ multiplexByQbsProperties: ["buildVariants"]
+ qbs.buildVariants: ["debug", "release"]
+ property string includeDir: qbs.buildVariant === "debug" ? "/d" : "/r"
+ Export {
+ Depends { name: "cpp" }
+ cpp.includePaths: product.includeDir
+ }
+ }
+ Product {
+ name: "p"
+ Depends { name: "dep" }
+ multiplexByQbsProperties: ["buildVariants"]
+ qbs.buildVariants: ["debug", "release"]
+ }
+}