aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/testdata/makefile-generator
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2018-04-17 16:56:47 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2018-05-09 07:36:39 +0000
commit15751999bbfa66015f48bbdde2fea2d4e8fed61a (patch)
tree17998f9d794db3ee00fea05680f3abada10bf81c /tests/auto/blackbox/testdata/makefile-generator
parent03d1b289e4f2dd8021b57a070e97092034ffa6ac (diff)
Add a Makefile generator
At the very least, this is a useful debugging tool, as it displays the artifacts part of the build graph in a familiar format. Tested successfully with the qbs project itself: The generated Makefile could be used to build a working qbs on Linux and Windows. [ChangeLog] Added a Makefile generator Task-number: QBS-33 Change-Id: I8165168d9273bdb4853d4ac566b72087f9104f7a Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'tests/auto/blackbox/testdata/makefile-generator')
-rw-r--r--tests/auto/blackbox/testdata/makefile-generator/app.qbs13
-rw-r--r--tests/auto/blackbox/testdata/makefile-generator/main.cpp6
2 files changed, 19 insertions, 0 deletions
diff --git a/tests/auto/blackbox/testdata/makefile-generator/app.qbs b/tests/auto/blackbox/testdata/makefile-generator/app.qbs
new file mode 100644
index 000000000..16981005a
--- /dev/null
+++ b/tests/auto/blackbox/testdata/makefile-generator/app.qbs
@@ -0,0 +1,13 @@
+import qbs
+
+CppApplication {
+ name: "the app"
+ consoleApplication: true
+ files: "main.cpp"
+ qbs.installPrefix: "/usr/local"
+ Group {
+ fileTagsFilter: "application"
+ qbs.install: true
+ qbs.installDir: "bin"
+ }
+}
diff --git a/tests/auto/blackbox/testdata/makefile-generator/main.cpp b/tests/auto/blackbox/testdata/makefile-generator/main.cpp
new file mode 100644
index 000000000..7f95e64bb
--- /dev/null
+++ b/tests/auto/blackbox/testdata/makefile-generator/main.cpp
@@ -0,0 +1,6 @@
+#include <iostream>
+
+int main()
+{
+ std::cout << "Hello, World!" << std::endl;
+}