aboutsummaryrefslogtreecommitdiffstats
path: root/tutorial/chapter-6/myproject.qbs
diff options
context:
space:
mode:
Diffstat (limited to 'tutorial/chapter-6/myproject.qbs')
-rw-r--r--tutorial/chapter-6/myproject.qbs35
1 files changed, 35 insertions, 0 deletions
diff --git a/tutorial/chapter-6/myproject.qbs b/tutorial/chapter-6/myproject.qbs
new file mode 100644
index 000000000..86537af23
--- /dev/null
+++ b/tutorial/chapter-6/myproject.qbs
@@ -0,0 +1,35 @@
+//! [0]
+Project {
+ property string version: "1.0.0"
+ property bool installDebugInformation: true
+ property bool withTests: false
+ property stringList autotestArguments: []
+ property stringList autotestWrapper: []
+
+ name: "My Project"
+ minimumQbsVersion: "2.0"
+ // ...
+ //! [0]
+ references: [
+ "app/app.qbs",
+ "lib/lib.qbs",
+ ]
+ qbsSearchPaths: "qbs"
+
+ //! [1]
+ SubProject {
+ filePath: "test/test.qbs"
+ Properties {
+ condition: parent.withTests
+ }
+ }
+ //! [1]
+
+ //! [2]
+ AutotestRunner {
+ condition: parent.withTests
+ arguments: parent.autotestArguments
+ wrapper: parent.autotestWrapper
+ }
+ //! [2]
+}