bye-bye .qmake.cache
well, not really - qt_parts.prf will still create one, but it will be empty. apart from being cleaner, this now finally makes it possible to load an unconfigured qt source tree into qtcreator without random parts of the tree being missing from the project explorer. Change-Id: Ida7ee77ecb450af05bfa66106caf2067b02f1a7f Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
This commit is contained in:
parent
684028a640
commit
ae95f28997
@ -1,5 +1,8 @@
|
||||
load(qt_build_config)
|
||||
CONFIG += qt_example_installs
|
||||
|
||||
QT_SOURCE_TREE = $$PWD
|
||||
QT_BUILD_TREE = $$shadowed($$PWD)
|
||||
|
||||
# In qtbase, all modules follow qglobal.h
|
||||
MODULE_VERSION = $$QT_VERSION
|
||||
|
18
configure
vendored
18
configure
vendored
@ -6668,24 +6668,6 @@ else
|
||||
mv -f "$QTMODULE.tmp" "$QTMODULE"
|
||||
fi
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# save configuration into .qmake.cache
|
||||
#-------------------------------------------------------------------------------
|
||||
|
||||
CACHEFILE="$outpath/.qmake.cache"
|
||||
[ -f "$CACHEFILE.tmp" ] && rm -f "$CACHEFILE.tmp"
|
||||
cat >>"$CACHEFILE.tmp" <<EOF
|
||||
QT_SOURCE_TREE = \$\$quote($relpath)
|
||||
QT_BUILD_TREE = \$\$quote($outpath)
|
||||
EOF
|
||||
|
||||
# replace .qmake.cache if it differs from the newly created temp file
|
||||
if cmp -s "$CACHEFILE.tmp" "$CACHEFILE"; then
|
||||
rm -f "$CACHEFILE.tmp"
|
||||
else
|
||||
mv -f "$CACHEFILE.tmp" "$CACHEFILE"
|
||||
fi
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# give feedback on configuration
|
||||
#-------------------------------------------------------------------------------
|
||||
|
@ -2812,17 +2812,6 @@ void Configure::generateOutputVars()
|
||||
|
||||
void Configure::generateCachefile()
|
||||
{
|
||||
// Generate .qmake.cache
|
||||
{
|
||||
FileWriter cacheStream(buildPath + "/.qmake.cache");
|
||||
|
||||
cacheStream << "QT_SOURCE_TREE = " << formatPath(dictionary["QT_SOURCE_TREE"]) << endl;
|
||||
cacheStream << "QT_BUILD_TREE = " << formatPath(dictionary["QT_BUILD_TREE"]) << endl;
|
||||
|
||||
if (!cacheStream.flush())
|
||||
dictionary[ "DONE" ] = "error";
|
||||
}
|
||||
|
||||
// Generate qmodule.pri
|
||||
{
|
||||
FileWriter moduleStream(dictionary[ "QT_BUILD_TREE" ] + "/mkspecs/qmodule.pri");
|
||||
|
Loading…
Reference in New Issue
Block a user