move QT_{SOURCE,BUILD}_TREE back to .qmake.cache
they cannot be legally used outside qtbase - it's the antithesis of modularization. Change-Id: I847844ea0ddce599f130f396d68cb61fa8f34135 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
This commit is contained in:
parent
3aee20d4ab
commit
621b0e2062
1
configure
vendored
1
configure
vendored
@ -6126,7 +6126,6 @@ fi
|
|||||||
CACHEFILE="$outpath/.qmake.cache"
|
CACHEFILE="$outpath/.qmake.cache"
|
||||||
[ -f "$CACHEFILE.tmp" ] && rm -f "$CACHEFILE.tmp"
|
[ -f "$CACHEFILE.tmp" ] && rm -f "$CACHEFILE.tmp"
|
||||||
cat >>"$CACHEFILE.tmp" <<EOF
|
cat >>"$CACHEFILE.tmp" <<EOF
|
||||||
#paths
|
|
||||||
QT_SOURCE_TREE = \$\$quote($relpath)
|
QT_SOURCE_TREE = \$\$quote($relpath)
|
||||||
QT_BUILD_TREE = \$\$quote($outpath)
|
QT_BUILD_TREE = \$\$quote($outpath)
|
||||||
EOF
|
EOF
|
||||||
|
@ -2771,7 +2771,8 @@ void Configure::generateCachefile()
|
|||||||
if (cacheFile.open(QFile::WriteOnly | QFile::Text)) { // Truncates any existing file.
|
if (cacheFile.open(QFile::WriteOnly | QFile::Text)) { // Truncates any existing file.
|
||||||
QTextStream cacheStream(&cacheFile);
|
QTextStream cacheStream(&cacheFile);
|
||||||
|
|
||||||
// nothing left here
|
cacheStream << "QT_SOURCE_TREE = " << formatPath(dictionary["QT_SOURCE_TREE"]) << endl;
|
||||||
|
cacheStream << "QT_BUILD_TREE = " << formatPath(dictionary["QT_BUILD_TREE"]) << endl;
|
||||||
|
|
||||||
cacheStream.flush();
|
cacheStream.flush();
|
||||||
cacheFile.close();
|
cacheFile.close();
|
||||||
@ -2782,9 +2783,6 @@ void Configure::generateCachefile()
|
|||||||
if (moduleFile.open(QFile::WriteOnly | QFile::Text)) { // Truncates any existing file.
|
if (moduleFile.open(QFile::WriteOnly | QFile::Text)) { // Truncates any existing file.
|
||||||
QTextStream moduleStream(&moduleFile);
|
QTextStream moduleStream(&moduleFile);
|
||||||
|
|
||||||
moduleStream << "#paths" << endl;
|
|
||||||
moduleStream << "QT_BUILD_TREE = " << formatPath(dictionary["QT_BUILD_TREE"]) << endl;
|
|
||||||
moduleStream << "QT_SOURCE_TREE = " << formatPath(dictionary["QT_SOURCE_TREE"]) << endl;
|
|
||||||
moduleStream << "QT_BUILD_PARTS += " << buildParts.join(' ') << endl << endl;
|
moduleStream << "QT_BUILD_PARTS += " << buildParts.join(' ') << endl << endl;
|
||||||
|
|
||||||
if (dictionary["QT_EDITION"] != "QT_EDITION_OPENSOURCE")
|
if (dictionary["QT_EDITION"] != "QT_EDITION_OPENSOURCE")
|
||||||
|
Loading…
Reference in New Issue
Block a user