diff options
Diffstat (limited to 'src/corelib/global/qconfig.cpp.in')
-rw-r--r-- | src/corelib/global/qconfig.cpp.in | 49 |
1 files changed, 18 insertions, 31 deletions
diff --git a/src/corelib/global/qconfig.cpp.in b/src/corelib/global/qconfig.cpp.in index 5c6ecf2485..016bdf40d1 100644 --- a/src/corelib/global/qconfig.cpp.in +++ b/src/corelib/global/qconfig.cpp.in @@ -1,33 +1,20 @@ -/* Installation date */ -static const char qt_configure_installation [12+11] = "qt_instdate=2012-12-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 '@' 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 + */ +#include "private/qoffsetstringarray_p.h" + /* Installation Info */ -static const char qt_configure_prefix_path_str [12+256] = "qt_prfxpath=@QT_BUILD_INTERNALS_RELOCATABLE_INSTALL_PREFIX@"; -#ifdef QT_BUILD_QMAKE -static const char qt_configure_ext_prefix_path_str [12+256] = "qt_epfxpath=@QT_BUILD_INTERNALS_RELOCATABLE_INSTALL_PREFIX@"; -static const char qt_configure_host_prefix_path_str [12+256] = "qt_hpfxpath=@QT_BUILD_INTERNALS_RELOCATABLE_INSTALL_PREFIX@"; -#endif -static const short qt_configure_str_offsets[] = { -@QT_CONFIG_STR_OFFSETS_FIRST@ -#ifdef QT_BUILD_QMAKE -@QT_CONFIG_STR_OFFSETS_SECOND@ -#endif -}; -static const char qt_configure_strs[] = -@QT_CONFIG_STRS_FIRST@ -#ifdef QT_BUILD_QMAKE -@QT_CONFIG_STRS_SECOND@ -#endif -; -#define QT_CONFIGURE_SETTINGS_PATH "@QT_DEFAULT_SYS_CONF_DIR@" -#define QT_CONFIGURE_LIBLOCATION_TO_PREFIX_PATH "@QT_CONFIGURE_LIBLOCATION_TO_PREFIX_PATH@" -#define QT_CONFIGURE_HOSTBINDIR_TO_EXTPREFIX_PATH "@QT_CONFIGURE_HOSTBINDIR_TO_EXTPREFIX_PATH@" -#define QT_CONFIGURE_HOSTBINDIR_TO_HOSTPREFIX_PATH "@QT_CONFIGURE_HOSTBINDIR_TO_HOSTPREFIX_PATH@" -#ifdef QT_BUILD_QMAKE -# define QT_CONFIGURE_CROSSBUILD 0 -# define QT_CONFIGURE_SYSROOTIFY_PREFIX false -#endif +static const char qt_configure_prefix_path_str [12+256] = "qt_prfxpath=@QT_CONFIGURE_PREFIX_PATH_STR@"; + +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@"_L1 #define QT_CONFIGURE_PREFIX_PATH qt_configure_prefix_path_str + 12 -#ifdef QT_BUILD_QMAKE -# define QT_CONFIGURE_EXT_PREFIX_PATH qt_configure_ext_prefix_path_str + 12 -# define QT_CONFIGURE_HOST_PREFIX_PATH qt_configure_host_prefix_path_str + 12 -#endif |