Move the sub-architecture feature to better places in qmake
authorThiago Macieira <thiago.macieira@intel.com>
Wed, 30 May 2012 12:44:39 +0000 (14:44 +0200)
committerQt by Nokia <qt-info@nokia.com>
Thu, 31 May 2012 15:55:49 +0000 (17:55 +0200)
commit6a6fd56e662b2c1a581727f7ec44d5bd60913ad4
treeef95a91b15ac48b07844b7f709066abb8f98d27b
parent05dc32ef6cc0d7279642839ea21100dee40a81c4
Move the sub-architecture feature to better places in qmake

Instead of saving the ability of the compiler to produce SSE2, AVX,
Neon, etc. code in .qmake.cache (Unix) or qconfig.pri (Windows), move
everything to qmodule.pri. Accordingly, move the DEFINES += settings
to qt_module.prf instead of qt.prf.

This allows us to re-use these settings in other Qt modules (other
than qtbase), if necessary. Though currently the extra compiler
definitions are found only in src/gui/gui.pro. They can be moved
elsewhere when it becomes necessary.

As a side-effect of this change, some other flags are moved from
.qmake.cache to qmodule.pri (on Unix). The flags that are getting
moved should probably be moved anyway.

Change-Id: Ibc3ab0111e148d81870772f9357273660aa93417
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
configure
mkspecs/features/qt.prf
mkspecs/features/qt_module.prf
tools/configure/configureapp.cpp