-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
device: Add -device and -device-option to configure
For some reference platforms and SDKs we will need to pass in extra paths. Currently users have to modify the mkspec to adjust paths or set environment variables that will be picked up. This change introduces the -device <name> and -device-option <key=value> option. The key value pairs will be written to a qdevice.pri and can be used by the qmake.conf of the device spec. The reason to not save the key value pairs in qconfig.pri is becase of the fact that the device spec loads the qdevice.pri earlier than the qconfig.pri. qdevice.pri allows the mkspec to set the compiler flags and qconfig.pri allows configure to add to those compiler flags. Done-with: Holger Freyther Change-Id: I931a197b8be72397e1eedfee09502eefc01c9d4f Reviewed-by: Oswald Buddenhagen <[email protected]> Reviewed-by: Girish Ramakrishnan <[email protected]> Reviewed-by: Johannes Zellner <[email protected]> Reviewed-by: Donald Carr <[email protected]>
- Loading branch information
Girish Ramakrishnan
authored and
Qt by Nokia
committed
Mar 27, 2012
1 parent
4c655be
commit 84e98fd
Showing
5 changed files
with
76 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Load generated qdevice.pri | ||
exists($$_QMAKE_CACHE_) { | ||
# set in default_pre, so it's the first place to check for qdevice.pri | ||
DIR = $$fromfile($$_QMAKE_CACHE_, QT_BUILD_TREE) | ||
!isEmpty(DIR):DEVICE_PRI = $$DIR/mkspecs/qdevice.pri | ||
} | ||
|
||
isEmpty(DEVICE_PRI) { | ||
# OUTDIR environ is set by configure (arch detection) and compile.test | ||
DIR = $$(OUTDIR) | ||
!isEmpty(DIR):DEVICE_PRI = $$DIR/mkspecs/qdevice.pri | ||
} | ||
|
||
isEmpty(DEVICE_PRI) { | ||
DIR = $$[QT_HOST_DATA] | ||
!isEmpty(DIR):DEVICE_PRI = $$DIR/mkspecs/qdevice.pri | ||
} | ||
|
||
isEmpty(DEVICE_PRI) { | ||
error(Could not locate qdevice.pri) | ||
} | ||
|
||
exists($$DEVICE_PRI):include($$DEVICE_PRI) | ||
|
||
unset(DEVICE_PRI) | ||
unset(DIR) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters