diff options
-rw-r--r-- | mkspecs/features/qt_module.prf | 11 | ||||
-rw-r--r-- | src/tools/bootstrap-dbus/bootstrap-dbus.pro | 4 | ||||
-rw-r--r-- | src/tools/bootstrap/bootstrap.pro | 3 |
3 files changed, 13 insertions, 5 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 diff --git a/src/tools/bootstrap-dbus/bootstrap-dbus.pro b/src/tools/bootstrap-dbus/bootstrap-dbus.pro index 63f7b38a73..6af70efda7 100644 --- a/src/tools/bootstrap-dbus/bootstrap-dbus.pro +++ b/src/tools/bootstrap-dbus/bootstrap-dbus.pro @@ -2,9 +2,7 @@ option(host_build) MODULE = bootstrap_dbus TARGET = QtBootstrapDBus -QT = bootstrap-private -CONFIG += no_module_headers internal_module -!build_pass: CONFIG += release +CONFIG += no_module_headers internal_module force_bootstrap DEFINES += \ QT_NO_CAST_FROM_ASCII diff --git a/src/tools/bootstrap/bootstrap.pro b/src/tools/bootstrap/bootstrap.pro index 1c39d1b7a5..8b69c715d2 100644 --- a/src/tools/bootstrap/bootstrap.pro +++ b/src/tools/bootstrap/bootstrap.pro @@ -2,8 +2,7 @@ option(host_build) TARGET = QtBootstrap QT = -CONFIG += internal_module -!build_pass: CONFIG += release +CONFIG += internal_module force_bootstrap # otherwise mingw headers do not declare common functions like putenv win32-g++*:QMAKE_CXXFLAGS_CXX11 = -std=gnu++0x |