diff options
author | Donald Carr <donald.carr@nokia.com> | 2012-04-09 19:47:12 +0000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-04-16 19:00:04 +0200 |
commit | f0c36dd03ce7451365453c80a910453457d812e7 (patch) | |
tree | 34c06fc11af8db26107b5e52cd693b2047dfab1a /mkspecs | |
parent | 0a5440b2f05d2cebf5b47e2155a3ed0f65d5d0d1 (diff) |
Introduce fallback for general cross compilation
The current approach of forcing people to pass the fully qualified prefix
of their toolchain to the configure script is verbose and something of a
chore for people who use the same toolchain to target several devices.
This allows you to set a single toolchain for use with all Qt targets via:
qmake -set CROSS_COMPILE foo
You can still explicitly override this toolchain, as originally mandated,
with the configure time device-option arguments.
Change-Id: Ibd3d940bb08fa09499533f9c661557e337a8421a
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Diffstat (limited to 'mkspecs')
-rw-r--r-- | mkspecs/features/device_config.prf | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mkspecs/features/device_config.prf b/mkspecs/features/device_config.prf index 90bf9150e9..020b3ad7bb 100644 --- a/mkspecs/features/device_config.prf +++ b/mkspecs/features/device_config.prf @@ -22,6 +22,11 @@ isEmpty(DEVICE_PRI) { exists($$DEVICE_PRI):include($$DEVICE_PRI) +isEmpty(CROSS_COMPILE) { + #this variable can be persisted via qmake -set CROSS_COMPILE /foo + CROSS_COMPILE = $$[CROSS_COMPILE] +} + unset(DEVICE_PRI) unset(DIR) |