diff options
author | Donald Carr <donald.carr@nokia.com> | 2012-05-31 06:13:10 +0000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-06-04 01:19:45 +0200 |
commit | b9304878966bf578c9d20834912981f35f3007d7 (patch) | |
tree | e055b09790d7c37c9944e49e412147b7b755cf2a /configure | |
parent | ff505197689062264bf2abc0661d03d371e997df (diff) |
make pre-qmake spec evaluation load device variables
this is needed to correctly resolve the compiler (cf. $$CROSS_COMPILE)
Change-Id: Iaf7266ae464c15e8483780dcf9c970212630a93b
Reviewed-by: Donald Carr <donald.carr@nokia.com>
Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
Reviewed-by: Johannes Zellner <johannes.zellner@nokia.com>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -123,6 +123,14 @@ getQMakeConf1() fi getQMakeConf1 "$conf_file" ;; + *load\(device_config\)*) + conf_file="$DEVICE_VARS_FILE" + if [ ! -f "$conf_file" ]; then + echo "WARNING: Unable to find file $conf_file" >&2 + continue + fi + getQMakeConf1 "$conf_file" + ;; *) echo "$line" ;; @@ -3654,10 +3662,12 @@ fi #------------------------------------------------------------------------------- # write out device config before we run the test. #------------------------------------------------------------------------------- -if cmp -s "$DEVICE_VARS_FILE" "$outpath/mkspecs/qdevice.pri"; then +DEVICE_VARS_OUTFILE="$outpath/mkspecs/qdevice.pri" +if cmp -s "$DEVICE_VARS_FILE" "$DEVICE_VARS_OUTFILE"; then rm -f "$DEVICE_VARS_FILE" else - mv -f $DEVICE_VARS_FILE "$outpath/mkspecs/qdevice.pri" + mv -f $DEVICE_VARS_FILE "$DEVICE_VARS_OUTFILE" + DEVICE_VARS_FILE="$DEVICE_VARS_OUTFILE" fi #------------------------------------------------------------------------------- |