summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2012-01-30 20:14:29 +0100
committerQt by Nokia <qt-info@nokia.com>2012-07-03 16:48:33 +0200
commit43663bc87daed85a3da7f2cfcbea26a5f1ead8dd (patch)
treefecdd2d7e0dbe89b8e5da4cbd82134248b29a14a
parent0002464b46f3b42218933377d545e49fef65aa51 (diff)
export QMAKESPEC to the project
this makes it unnecessary to dump qmakespec to .qmake.cache and qmodule.pri. Task-number: QTBUG-22700 Change-Id: I678c7ee7df2512184b9cd06d7a3be8bbd0b0da15 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
-rwxr-xr-xconfigure12
-rw-r--r--qmake/project.cpp1
-rw-r--r--tools/configure/configureapp.cpp13
3 files changed, 1 insertions, 25 deletions
diff --git a/configure b/configure
index 23bc420336..a631dc912b 100755
--- a/configure
+++ b/configure
@@ -5914,18 +5914,6 @@ CONFIG += dylib depend_includepath fix_output_dirs no_private_qt_headers_warning
EOF
-#dump the qmake spec
-if [ -d "$outpath/mkspecs/$XPLATFORM" ]; then
- echo "XQMAKESPEC = \$\$QT_BUILD_TREE/mkspecs/$XPLATFORM" >> "$CACHEFILE.tmp"
-else
- echo "XQMAKESPEC = $XPLATFORM" >> "$CACHEFILE.tmp"
-fi
-if [ -d "$outpath/mkspecs/$PLATFORM" ]; then
- echo "QMAKESPEC = \$\$QT_BUILD_TREE/mkspecs/$PLATFORM" >> "$CACHEFILE.tmp"
-else
- echo "QMAKESPEC = $PLATFORM" >> "$CACHEFILE.tmp"
-fi
-
# replace .qmake.cache if it differs from the newly created temp file
if cmp -s "$CACHEFILE.tmp" "$CACHEFILE"; then
rm -f "$CACHEFILE.tmp"
diff --git a/qmake/project.cpp b/qmake/project.cpp
index 650635e993..38f8028b30 100644
--- a/qmake/project.cpp
+++ b/qmake/project.cpp
@@ -1491,6 +1491,7 @@ QMakeProject::read(uchar cmd)
QString orig_spec = first(QLatin1String("QMAKESPEC_ORIGINAL"));
real_spec = orig_spec.isEmpty() ? qmakespec : orig_spec;
#endif
+ vars["QMAKESPEC"] << real_spec;
short_spec = QFileInfo(real_spec).fileName();
doProjectInclude("spec_post", IncludeFlagFeature, vars);
// The spec extends the feature search path, so invalidate the cache.
diff --git a/tools/configure/configureapp.cpp b/tools/configure/configureapp.cpp
index a192f8aa75..26160976bb 100644
--- a/tools/configure/configureapp.cpp
+++ b/tools/configure/configureapp.cpp
@@ -2674,19 +2674,6 @@ void Configure::generateCachefile()
moduleStream << "QT_SOURCE_TREE = " << formatPath(dictionary["QT_SOURCE_TREE"]) << endl;
moduleStream << "QT_BUILD_PARTS = " << buildParts.join(" ") << endl << endl;
- QString hostSpec = dictionary[ "QMAKESPEC" ];
- QString targetSpec = dictionary.contains("XQMAKESPEC") ? dictionary[ "XQMAKESPEC" ] : hostSpec;
- QString xmkspec_path = sourcePath + "/mkspecs/" + targetSpec;
- if (QFile::exists(xmkspec_path))
- moduleStream << "XQMAKESPEC = " << xmkspec_path << endl;
- else
- moduleStream << "XQMAKESPEC = " << targetSpec << endl;
- QString mkspec_path = sourcePath + "/mkspecs/" + hostSpec;
- if (QFile::exists(mkspec_path))
- moduleStream << "QMAKESPEC = " << mkspec_path << endl;
- else
- moduleStream << "QMAKESPEC = " << hostSpec << endl;
-
if (dictionary["QT_EDITION"] != "QT_EDITION_OPENSOURCE")
moduleStream << "DEFINES *= QT_EDITION=QT_EDITION_DESKTOP" << endl;