summaryrefslogtreecommitdiffstats
path: root/mkspecs
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@digia.com>2013-03-08 21:45:43 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-03-16 00:12:47 +0100
commit898e701b4aa67f04fb29bf61fd7326f5c18bec7b (patch)
tree015cdcf775ae5eefc5f692484666fb478a0c18e5 /mkspecs
parentbe1116fe909a60341f714d5ce0765798a08722e7 (diff)
bring bootstrapped QT magic from qt_tool to qt_module
project files of bootstrapped modules can, just like those of bootstrapped tools, benefit from automatic adjustment of QT (and CONFIG). Change-Id: I83815e69a2b105caaee0c2e2602828f8eb425eef Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'mkspecs')
-rw-r--r--mkspecs/features/qt_module.prf11
1 files changed, 11 insertions, 0 deletions
diff --git a/mkspecs/features/qt_module.prf b/mkspecs/features/qt_module.prf
index 4635f3a42a..ff74901a4a 100644
--- a/mkspecs/features/qt_module.prf
+++ b/mkspecs/features/qt_module.prf
@@ -26,6 +26,17 @@ isEmpty(VERSION):VERSION = $$QT_VERSION
# unless overridden. Host builds are always static
host_build|staticlib: CONFIG += static
+host_build {
+ QT -= gui # no host module will ever use gui
+ force_bootstrap {
+ !build_pass: CONFIG += release
+ contains(QT, core(-private)?|xml) {
+ QT -= core core-private xml
+ QT += bootstrap-private
+ }
+ }
+}
+
ucmodule = $$upper($$MODULE)
isEmpty(MODULE_INCNAME): MODULE_INCNAME = $$TARGET