summaryrefslogtreecommitdiffstats
path: root/mkspecs
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2019-02-01 15:16:00 +0100
committerJoerg Bornemann <joerg.bornemann@qt.io>2019-02-18 07:12:14 +0000
commit8fe36801930872ef4a57e2ff7d7f935de12a33e9 (patch)
tree671e2d19399140d96bb1da48d4f41215fd6a55a7 /mkspecs
parent0c03316ec94361bd1d80b391d77a1dcd52f2a23a (diff)
Add cmdline feature to qmake
[ChangeLog][qmake] A new feature "cmdline" was added that implies "CONFIG += console" and "CONFIG -= app_bundle". Task-number: QTBUG-27079 Change-Id: I6e52b07c9341c904bb1424fc717057432f9360e1 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Diffstat (limited to 'mkspecs')
-rw-r--r--mkspecs/features/cmdline.prf2
-rw-r--r--mkspecs/features/qt_test_helper.prf3
2 files changed, 3 insertions, 2 deletions
diff --git a/mkspecs/features/cmdline.prf b/mkspecs/features/cmdline.prf
new file mode 100644
index 0000000000..f9d90d3a50
--- /dev/null
+++ b/mkspecs/features/cmdline.prf
@@ -0,0 +1,2 @@
+win32: CONFIG *= console
+macos: CONFIG -= app_bundle
diff --git a/mkspecs/features/qt_test_helper.prf b/mkspecs/features/qt_test_helper.prf
index 5daa14731d..86b65dd884 100644
--- a/mkspecs/features/qt_test_helper.prf
+++ b/mkspecs/features/qt_test_helper.prf
@@ -16,8 +16,7 @@
# Additionally the helper's executable is suffixed with "_helper" to
# avoid name clashes with its folder.
-CONFIG -= app_bundle
-CONFIG += console
+CONFIG += cmdline
debug_and_release {
CONFIG(debug, debug|release) {