aboutsummaryrefslogtreecommitdiffstats
path: root/share/qbs/modules/cpp/msvc.js
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@nokia.com>2012-04-18 11:16:35 +0200
committerJoerg Bornemann <joerg.bornemann@nokia.com>2012-04-18 17:16:50 +0200
commit1a2569586fa21495e38f2360063d53ea8bf1a5b7 (patch)
tree96405a965ff528f06daf7173574ac7c3e16b6242 /share/qbs/modules/cpp/msvc.js
parente252843f8c4e9714d9c24d990b83b0721534c3d6 (diff)
property Application.consoleApplication added
This is how you can create a console application: Application { name: "myConsoleApp" consoleApplication: true files: ... } Task-number: QBS-103 Change-Id: I0155b5632951d82c98157bc5e8d02ca01f983ae4 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
Diffstat (limited to 'share/qbs/modules/cpp/msvc.js')
-rw-r--r--share/qbs/modules/cpp/msvc.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/share/qbs/modules/cpp/msvc.js b/share/qbs/modules/cpp/msvc.js
index 43e5a5e5d..0cc9b3743 100644
--- a/share/qbs/modules/cpp/msvc.js
+++ b/share/qbs/modules/cpp/msvc.js
@@ -107,6 +107,13 @@ function prepareLinker(product, inputs, outputs, libraryPaths, dynamicLibraries,
else
args.push('/INCREMENTAL:NO')
+ if (product.consoleApplication !== undefined) {
+ if (product.consoleApplication)
+ args.push('/SUBSYSTEM:CONSOLE');
+ else
+ args.push('/SUBSYSTEM:WINDOWS');
+ }
+
var manifestFileName
if (generateManifestFiles) {
manifestFileName = FileInfo.toWindowsSeparators(primaryOutput.fileName)