move moc, rcc and uic CONFIG additions to the respective qt modules
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>
Fri, 24 Feb 2012 18:21:51 +0000 (19:21 +0100)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>
Tue, 19 Jun 2012 14:39:53 +0000 (16:39 +0200)
they don't belong into the global scope

Change-Id: I27a3de5f706392b3c4a84035521bc3b4e4055740
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
mkspecs/features/default_pre.prf
mkspecs/features/qt.prf
mkspecs/features/resources.prf
mkspecs/features/uic.prf
src/corelib/corelib.pro
src/modules/qt_core.pri
src/modules/qt_widgets.pri
src/widgets/widgets.pro

index 250ac0e..4fa55ac 100644 (file)
@@ -1,6 +1,5 @@
 load(exclusive_builds)
-### Qt 5: remove "uic" and "resources" - or add "qt"
-CONFIG = lex yacc warn_on debug uic resources exceptions $$CONFIG
+CONFIG = lex yacc warn_on debug exceptions $$CONFIG
 
 !build_pass:exists($$_PRO_FILE_PWD_/sync.profile) {
     PRO_BASENAME = $$basename(_PRO_FILE_)
index 9ec2d1f..1912f60 100644 (file)
@@ -1,4 +1,4 @@
-CONFIG *= moc thread
+CONFIG *= thread
 
 #handle defines
 win32 {
index 47e7188..dfded30 100644 (file)
@@ -1,4 +1,3 @@
-defined(qtPrepareTool)|load(qt_functions) ### Qt 5: see default_pre.prf
 qtPrepareTool(QMAKE_RCC, rcc)
 
 isEmpty(RCC_DIR):RCC_DIR = .
index 74a2683..db08505 100644 (file)
@@ -1,4 +1,3 @@
-defined(qtPrepareTool)|load(qt_functions) ### Qt 5: see default_pre.prf
 qtPrepareTool(QMAKE_UIC3, uic3)
 qtPrepareTool(QMAKE_UIC, uic)
 
index 545a94f..77666d4 100644 (file)
@@ -4,7 +4,7 @@ TARGET     = QtCore
 QPRO_PWD   = $$PWD
 QT         =
 
-CONFIG += module exceptions
+CONFIG += module moc resources exceptions
 MODULE = core     # not corelib, as per project file
 MODULE_PRI = ../modules/qt_core.pri
 
index e6e5df9..8105992 100644 (file)
@@ -13,3 +13,4 @@ QT.core.plugins = $$QT_MODULE_PLUGIN_BASE
 QT.core.imports = $$QT_MODULE_IMPORT_BASE
 QT.core.depends =
 QT.core.DEFINES = QT_CORE_LIB
+QT.core.CONFIG = moc resources
index 9e42fda..69ad509 100644 (file)
@@ -13,3 +13,4 @@ QT.widgets.plugins = $$QT_MODULE_PLUGIN_BASE
 QT.widgets.imports = $$QT_MODULE_IMPORT_BASE
 QT.widgets.depends = core gui
 QT.widgets.DEFINES = QT_WIDGETS_LIB
+QT.widgets.CONFIG = uic
index 85321ff..fef42b9 100644 (file)
@@ -4,7 +4,7 @@ TARGET     = QtWidgets
 QPRO_PWD   = $$PWD
 QT = core core-private gui gui-private platformsupport-private
 
-CONFIG += module
+CONFIG += module uic
 MODULE_PRI = ../modules/qt_widgets.pri
 
 DEFINES   += QT_BUILD_WIDGETS_LIB QT_NO_USING_NAMESPACE