diff options
Diffstat (limited to 'src/corelib/global/qconfig.cpp.in')
-rw-r--r-- | src/corelib/global/qconfig.cpp.in | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/src/corelib/global/qconfig.cpp.in b/src/corelib/global/qconfig.cpp.in index e6a85feffd..016bdf40d1 100644 --- a/src/corelib/global/qconfig.cpp.in +++ b/src/corelib/global/qconfig.cpp.in @@ -1,25 +1,20 @@ /* This file is used to generate the Qt configuration info for the Core library. * The 'qt_generate_qconfig_cpp' cmake routine - * contains variables that replace '@' entires in this file. It's important to + * contains variables that replace '@' entries in this file. It's important to * align these values with the following: * * - QLibraryInfo::LibraryPath enum in qtbase/src/corelib/global/qlibraryinfo.h * - qtConfEntries in qtbase/src/corelib/global/qlibraryinfo.cpp - * - * The reason for this is pointer mathematics in the QLibraryInfo implementation when iterating - * qt_configure_strs. Also qtConfEntries are strongly bound to QLibraryInfo::LibraryPath. */ +#include "private/qoffsetstringarray_p.h" -/* Installation date */ -static const char qt_configure_installation [12+11] = "qt_instdate=2012-12-20"; /* Installation Info */ static const char qt_configure_prefix_path_str [12+256] = "qt_prfxpath=@QT_CONFIGURE_PREFIX_PATH_STR@"; -static const short qt_configure_str_offsets[] = { -@QT_CONFIG_STR_OFFSETS_FIRST@ -}; -static const char qt_configure_strs[] = -@QT_CONFIG_STRS_FIRST@ -; + +static constexpr auto qt_configure_strs = QT_PREPEND_NAMESPACE(qOffsetStringArray)( +@QT_CONFIG_STRS@ +); + #define QT_CONFIGURE_SETTINGS_PATH "@QT_SYS_CONF_DIR@" -#define QT_CONFIGURE_LIBLOCATION_TO_PREFIX_PATH "@QT_CONFIGURE_LIBLOCATION_TO_PREFIX_PATH@" +#define QT_CONFIGURE_LIBLOCATION_TO_PREFIX_PATH "@QT_CONFIGURE_LIBLOCATION_TO_PREFIX_PATH@"_L1 #define QT_CONFIGURE_PREFIX_PATH qt_configure_prefix_path_str + 12 |