aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/api/testdata/export-with-recursive-depends
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/api/testdata/export-with-recursive-depends')
-rw-r--r--tests/auto/api/testdata/export-with-recursive-depends/main1.cpp1
-rw-r--r--tests/auto/api/testdata/export-with-recursive-depends/main2.cpp6
-rw-r--r--tests/auto/api/testdata/export-with-recursive-depends/project.qbs16
-rw-r--r--tests/auto/api/testdata/export-with-recursive-depends/qbs/modules/module1/module1.qbs5
-rw-r--r--tests/auto/api/testdata/export-with-recursive-depends/qbs/modules/module2/module2.qbs6
5 files changed, 34 insertions, 0 deletions
diff --git a/tests/auto/api/testdata/export-with-recursive-depends/main1.cpp b/tests/auto/api/testdata/export-with-recursive-depends/main1.cpp
new file mode 100644
index 000000000..237c8ce18
--- /dev/null
+++ b/tests/auto/api/testdata/export-with-recursive-depends/main1.cpp
@@ -0,0 +1 @@
+int main() {}
diff --git a/tests/auto/api/testdata/export-with-recursive-depends/main2.cpp b/tests/auto/api/testdata/export-with-recursive-depends/main2.cpp
new file mode 100644
index 000000000..c7f2e65ab
--- /dev/null
+++ b/tests/auto/api/testdata/export-with-recursive-depends/main2.cpp
@@ -0,0 +1,6 @@
+int main()
+{
+#ifndef HAS_FOO
+ blubb();
+#endif
+}
diff --git a/tests/auto/api/testdata/export-with-recursive-depends/project.qbs b/tests/auto/api/testdata/export-with-recursive-depends/project.qbs
new file mode 100644
index 000000000..045e65133
--- /dev/null
+++ b/tests/auto/api/testdata/export-with-recursive-depends/project.qbs
@@ -0,0 +1,16 @@
+import qbs
+
+Project {
+ CppApplication {
+ name: "app1"
+ files: "main1.cpp"
+ Export { Depends { name: "module1" } }
+ }
+
+ CppApplication {
+ name: "app2"
+ Depends { name: "app1" }
+ files: "main2.cpp"
+ }
+ qbsSearchPaths: "qbs"
+}
diff --git a/tests/auto/api/testdata/export-with-recursive-depends/qbs/modules/module1/module1.qbs b/tests/auto/api/testdata/export-with-recursive-depends/qbs/modules/module1/module1.qbs
new file mode 100644
index 000000000..c1c4ad358
--- /dev/null
+++ b/tests/auto/api/testdata/export-with-recursive-depends/qbs/modules/module1/module1.qbs
@@ -0,0 +1,5 @@
+import qbs
+
+Module {
+ Depends { name: "module2" }
+}
diff --git a/tests/auto/api/testdata/export-with-recursive-depends/qbs/modules/module2/module2.qbs b/tests/auto/api/testdata/export-with-recursive-depends/qbs/modules/module2/module2.qbs
new file mode 100644
index 000000000..75a274631
--- /dev/null
+++ b/tests/auto/api/testdata/export-with-recursive-depends/qbs/modules/module2/module2.qbs
@@ -0,0 +1,6 @@
+import qbs
+
+Module {
+ Depends { name: "cpp" }
+ cpp.defines: ["HAS_FOO"]
+}