aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
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
}
}