diff options
author | Alexey Edelev <alexey.edelev@qt.io> | 2021-01-28 16:06:26 +0100 |
---|---|---|
committer | Alexey Edelev <alexey.edelev@qt.io> | 2021-02-25 16:08:43 +0100 |
commit | 43c28aa9046967abeb4ad042c8be1aa23a19c282 (patch) | |
tree | b8f4a53cd9aaaa819c853ee51e66ea100c1ae3d5 /qmake/property.cpp | |
parent | 5a3bbb55851b84aa6a46c23e5a6fb33b4860edc6 (diff) |
Use Core library for qmake instead of the Bootstrap library
Move the qmake-specific logic of the QLibraryInfo class to
qmake internals. 'qconfig.cpp.in' now stores information about
the library info entries to keep them consistent between qmake
and the Core library. qmake requires specific features enabled
in the Core library, so building qmake will be skipped if the
features are not enabled.
All flags directly related to the qmake have been removed from
Core lib.
Remove all bootstrap related sections from qmake CMakeLists.txt
Task-number: QTBUG-89369
Change-Id: I26de157d3bfd4a5526699296e9d46e1c180b89ae
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Kai Koehne <kai.koehne@qt.io>
Diffstat (limited to 'qmake/property.cpp')
-rw-r--r-- | qmake/property.cpp | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/qmake/property.cpp b/qmake/property.cpp index 63048f906d..2487ecb5a9 100644 --- a/qmake/property.cpp +++ b/qmake/property.cpp @@ -31,7 +31,7 @@ #include <qdir.h> #include <qsettings.h> -#include <qlibraryinfo.h> +#include <qmakelibraryinfo.h> #include <qstringlist.h> #include <stdio.h> @@ -39,11 +39,11 @@ QT_BEGIN_NAMESPACE static const struct { const char *name; - QLibraryInfo::LibraryPath loc; + int loc; bool raw; bool singular; } propList[] = { - { "QT_SYSROOT", QLibraryInfo::SysrootPath, true, true }, + { "QT_SYSROOT", QMakeLibraryInfo::SysrootPath, true, true }, { "QT_INSTALL_PREFIX", QLibraryInfo::PrefixPath, false, false }, { "QT_INSTALL_ARCHDATA", QLibraryInfo::ArchDataPath, false, false }, { "QT_INSTALL_DATA", QLibraryInfo::DataPath, false, false }, @@ -59,13 +59,13 @@ static const struct { { "QT_INSTALL_CONFIGURATION", QLibraryInfo::SettingsPath, false, false }, { "QT_INSTALL_EXAMPLES", QLibraryInfo::ExamplesPath, false, false }, { "QT_INSTALL_DEMOS", QLibraryInfo::ExamplesPath, false, false }, // Just backwards compat - { "QT_HOST_PREFIX", QLibraryInfo::HostPrefixPath, true, false }, - { "QT_HOST_DATA", QLibraryInfo::HostDataPath, true, false }, - { "QT_HOST_BINS", QLibraryInfo::HostBinariesPath, true, false }, - { "QT_HOST_LIBS", QLibraryInfo::HostLibrariesPath, true, false }, - { "QT_HOST_LIBEXECS", QLibraryInfo::HostLibraryExecutablesPath, true, false }, - { "QMAKE_SPEC", QLibraryInfo::HostSpecPath, true, true }, - { "QMAKE_XSPEC", QLibraryInfo::TargetSpecPath, true, true }, + { "QT_HOST_PREFIX", QMakeLibraryInfo::HostPrefixPath, true, false }, + { "QT_HOST_DATA", QMakeLibraryInfo::HostDataPath, true, false }, + { "QT_HOST_BINS", QMakeLibraryInfo::HostBinariesPath, true, false }, + { "QT_HOST_LIBEXECS", QMakeLibraryInfo::HostLibraryExecutablesPath, true, false }, + { "QT_HOST_LIBS", QMakeLibraryInfo::HostLibrariesPath, true, false }, + { "QMAKE_SPEC", QMakeLibraryInfo::HostSpecPath, true, true }, + { "QMAKE_XSPEC", QMakeLibraryInfo::TargetSpecPath, true, true }, }; QMakeProperty::QMakeProperty() : settings(nullptr) @@ -75,17 +75,20 @@ QMakeProperty::QMakeProperty() : settings(nullptr) void QMakeProperty::reload() { - QLibraryInfo::reload(); + QMakeLibraryInfo::reload(); for (unsigned i = 0; i < sizeof(propList)/sizeof(propList[0]); i++) { QString name = QString::fromLatin1(propList[i].name); if (!propList[i].singular) { - m_values[ProKey(name + "/src")] = QLibraryInfo::rawLocation(propList[i].loc, QLibraryInfo::EffectiveSourcePaths); - m_values[ProKey(name + "/get")] = QLibraryInfo::rawLocation(propList[i].loc, QLibraryInfo::EffectivePaths); + m_values[ProKey(name + "/src")] = QMakeLibraryInfo::rawLocation( + propList[i].loc, QMakeLibraryInfo::EffectiveSourcePaths); + m_values[ProKey(name + "/get")] = QMakeLibraryInfo::rawLocation( + propList[i].loc, QMakeLibraryInfo::EffectivePaths); } - QString val = QLibraryInfo::rawLocation(propList[i].loc, QLibraryInfo::FinalPaths); + QString val = QMakeLibraryInfo::rawLocation(propList[i].loc, QMakeLibraryInfo::FinalPaths); if (!propList[i].raw) { - m_values[ProKey(name + "/dev")] = QLibraryInfo::rawLocation(propList[i].loc, QLibraryInfo::DevicePaths); - m_values[ProKey(name)] = QLibraryInfo::path(propList[i].loc); + m_values[ProKey(name + "/dev")] = + QMakeLibraryInfo::rawLocation(propList[i].loc, QMakeLibraryInfo::DevicePaths); + m_values[ProKey(name)] = QMakeLibraryInfo::path(propList[i].loc); name += "/raw"; } m_values[ProKey(name)] = val; |