summaryrefslogtreecommitdiffstats
path: root/mkspecs
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2009-03-26 22:06:27 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2009-03-27 11:10:33 (GMT)
commit7d2c8eb99c563b4fb236fe538123255f52f293a2 (patch)
treea98351d788ef1447f1e8235ff40c67d729219151 /mkspecs
parent763f816a73feb29d235bf146db1aa18b46ba996e (diff)
downloadQt-7d2c8eb99c563b4fb236fe538123255f52f293a2.zip
Qt-7d2c8eb99c563b4fb236fe538123255f52f293a2.tar.gz
Qt-7d2c8eb99c563b4fb236fe538123255f52f293a2.tar.bz2
don't include uic in non-gui configurations
uic is set in default_pre. this leads to useless -I compiler flags when no ui files are used in fact, so it would be nice to get rid of it in cases where it is not used. for backwards compat, don't remove it from the _pre, but add some magic to _post to remove it again if QT does not contain gui. of course, we need a force_uic CONFIG to enable an exception for QtGui itself ...
Diffstat (limited to 'mkspecs')
-rw-r--r--mkspecs/features/default_post.prf3
1 files changed, 3 insertions, 0 deletions
diff --git a/mkspecs/features/default_post.prf b/mkspecs/features/default_post.prf
index 01074f4..424609e 100644
--- a/mkspecs/features/default_post.prf
+++ b/mkspecs/features/default_post.prf
@@ -6,5 +6,8 @@ incredibuild_xge {
CONFIG = incredibuild_xge $$CONFIG
}
+# It's in the default config. Get rid of it now if unused.
+!contains(QT, [Gg][Uu][Ii]):!CONFIG(force_uic):CONFIG -= uic
+
QMAKE_INCDIR += $$QMAKE_INCDIR_POST
QMAKE_LIBDIR += $$QMAKE_LIBDIR_POST