aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2017-08-14 16:18:42 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2017-08-14 16:18:42 +0200
commit187c114987572f5492722b4d66b76366e3e50365 (patch)
treebc2bff3a99b333433f09537bc0b9c5fc709057e0 /examples
parent6144279d346670130e0ecdfaf789beaa44cd6755 (diff)
parentadc28c434853cf0fa17e95cc207e5a1c6eb761de (diff)
Merge 1.9 into master
Diffstat (limited to 'examples')
-rw-r--r--examples/code-generator/code-generator.qbs2
-rw-r--r--examples/install-bundle/install-bundle.qbs14
2 files changed, 9 insertions, 7 deletions
diff --git a/examples/code-generator/code-generator.qbs b/examples/code-generator/code-generator.qbs
index ebdb50bb4..df15dec5e 100644
--- a/examples/code-generator/code-generator.qbs
+++ b/examples/code-generator/code-generator.qbs
@@ -53,8 +53,8 @@ Project {
// A code generator that outputs a "Hello World" C++ program.
CppApplication {
name: "hwgen"
+ consoleApplication: true
files: ["hwgen.cpp"]
- bundle.isBundle: false
}
// Generate and build a hello-world application.
diff --git a/examples/install-bundle/install-bundle.qbs b/examples/install-bundle/install-bundle.qbs
index 5659f3c72..3151f5517 100644
--- a/examples/install-bundle/install-bundle.qbs
+++ b/examples/install-bundle/install-bundle.qbs
@@ -8,7 +8,8 @@ Project {
Depends { name: "Qt"; submodules: ["core", "gui", "widgets"] }
name: "window"
- targetName: bundle.isBundle ? "Window" : "window"
+ property bool isBundle: qbs.targetOS.contains("darwin") && bundle.isBundle
+ targetName: isBundle ? "Window" : "window"
files: [
"main.cpp",
"assetcatalog1.xcassets",
@@ -19,9 +20,9 @@ Project {
]
Group {
- fileTagsFilter: bundle.isBundle ? ["bundle.content"] : ["application"]
+ fileTagsFilter: isBundle ? ["bundle.content"] : ["application"]
qbs.install: true
- qbs.installDir: bundle.isBundle ? "Applications" : (qbs.targetOS.contains("windows") ? "" : "bin")
+ qbs.installDir: isBundle ? "Applications" : (qbs.targetOS.contains("windows") ? "" : "bin")
qbs.installSourceBase: product.buildDirectory
}
}
@@ -30,13 +31,14 @@ Project {
Depends { name: "cpp" }
name: "coreutils"
- targetName: bundle.isBundle ? "CoreUtils" : "coreutils"
+ property bool isBundle: qbs.targetOS.contains("darwin") && bundle.isBundle
+ targetName: isBundle ? "CoreUtils" : "coreutils"
files: ["coreutils.cpp", "coreutils.h"]
Group {
- fileTagsFilter: bundle.isBundle ? ["bundle.content"] : ["dynamiclibrary", "dynamiclibrary_symlink", "dynamiclibrary_import"]
+ fileTagsFilter: isBundle ? ["bundle.content"] : ["dynamiclibrary", "dynamiclibrary_symlink", "dynamiclibrary_import"]
qbs.install: true
- qbs.installDir: bundle.isBundle ? "Library/Frameworks" : (qbs.targetOS.contains("windows") ? "" : "lib")
+ qbs.installDir: isBundle ? "Library/Frameworks" : (qbs.targetOS.contains("windows") ? "" : "lib")
qbs.installSourceBase: product.buildDirectory
}
}