summaryrefslogtreecommitdiffstats
path: root/src/corelib/global/qlibraryinfo.cpp
diff options
context:
space:
mode:
authorAlexey Edelev <alexey.edelev@qt.io>2021-01-28 16:30:01 +0100
committerAlexey Edelev <alexey.edelev@qt.io>2021-02-01 14:34:41 +0100
commit295d4d6955ff96888273fb23906ca75a10795ca2 (patch)
treeb19ba7c5cd143b85419b4b9d7d6ff5d98ba4c053 /src/corelib/global/qlibraryinfo.cpp
parent658b93386eea34398de3ddacab436601e1ab5bbb (diff)
Remove usage of the definitions that are never defined
The QT_BUILD_QMAKE_BOOTSTRAP and QT_BUILD_QMAKE_LIBRARY definitions are never defined in the project since migrating to CMake build. Change-Id: I7108c92387005a2fde6ebdb2d74843e3efc6413e Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'src/corelib/global/qlibraryinfo.cpp')
-rw-r--r--src/corelib/global/qlibraryinfo.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/corelib/global/qlibraryinfo.cpp b/src/corelib/global/qlibraryinfo.cpp
index bb1eafeccd..a86436f4c8 100644
--- a/src/corelib/global/qlibraryinfo.cpp
+++ b/src/corelib/global/qlibraryinfo.cpp
@@ -55,10 +55,8 @@ QT_END_NAMESPACE
# include "qcoreapplication.h"
#endif
-#ifndef QT_BUILD_QMAKE_BOOTSTRAP
-# include "private/qglobal_p.h"
-# include "qconfig.cpp"
-#endif
+#include "private/qglobal_p.h"
+#include "qconfig.cpp"
#ifdef Q_OS_DARWIN
# include "private/qcore_mac_p.h"
@@ -595,7 +593,7 @@ static QString getRelocatablePrefix()
}
#endif
-#if defined(QT_BUILD_QMAKE) && !defined(QT_BUILD_QMAKE_BOOTSTRAP)
+#if defined(QT_BUILD_QMAKE)
QString qmake_abslocation();
static QString getPrefixFromHostBinDir(const char *hostBinDirToPrefixPath)
@@ -616,7 +614,6 @@ static QString getHostPrefixFromHostBinDir()
}
#endif
-#ifndef QT_BUILD_QMAKE_BOOTSTRAP
static QString getPrefix(
#ifdef QT_BUILD_QMAKE
QLibraryInfo::PathGroup group
@@ -637,7 +634,6 @@ static QString getPrefix(
return QString::fromLocal8Bit(QT_CONFIGURE_PREFIX_PATH);
#endif
}
-#endif // QT_BUILD_QMAKE_BOOTSTRAP
/*! \fn QString QLibraryInfo::location(LibraryLocation loc)
\obsolete Use path() instead.
@@ -754,7 +750,6 @@ QLibraryInfo::rawLocation(LibraryPath loc, PathGroup group)
}
#endif // settings
-#ifndef QT_BUILD_QMAKE_BOOTSTRAP
if (!fromConf) {
// "volatile" here is a hack to prevent compilers from doing a
// compile-time strlen() on "path". The issue is that Qt installers
@@ -784,7 +779,6 @@ QLibraryInfo::rawLocation(LibraryPath loc, PathGroup group)
if (path)
ret = QString::fromLocal8Bit(path);
}
-#endif
#ifdef QT_BUILD_QMAKE
// These values aren't actually paths and thus need to be returned verbatim.