38 MUTILS_API
static const quint32 &lib_version_major(
void);
39 MUTILS_API
static const quint32 &lib_version_minor(
void);
42 MUTILS_API
static const QDate lib_build_date(
void);
43 MUTILS_API
static const QTime lib_build_time(
void);
46 MUTILS_API
static const QDate app_build_date(
const char *
const date_str = build_date_raw());
47 MUTILS_API
static const QTime app_build_time(
const char *
const time_str = build_time_raw());
50 static const char *
const compiler_version(
void)
52 #if defined(__INTEL_COMPILER) 53 #if (__INTEL_COMPILER >= 1500) 54 static const char *
const COMPILER_VERS =
"ICL 15." MUTILS_MAKE_STRING(__INTEL_COMPILER_BUILD_DATE);
55 #elif (__INTEL_COMPILER >= 1400) 56 static const char *
const COMPILER_VERS =
"ICL 14." MUTILS_MAKE_STRING(__INTEL_COMPILER_BUILD_DATE);
57 #elif (__INTEL_COMPILER >= 1300) 58 static const char *
const COMPILER_VERS =
"ICL 13." MUTILS_MAKE_STRING(__INTEL_COMPILER_BUILD_DATE);
59 #elif (__INTEL_COMPILER >= 1200) 60 static const char *
const COMPILER_VERS =
"ICL 12." MUTILS_MAKE_STRING(__INTEL_COMPILER_BUILD_DATE);
61 #elif (__INTEL_COMPILER >= 1100) 62 static const char *
const COMPILER_VERS =
"ICL 11.x";
63 #elif (__INTEL_COMPILER >= 1000) 64 static const char *
const COMPILER_VERS =
"ICL 10.x";
66 #error Compiler is not supported! 68 #elif defined(_MSC_VER) 69 #if (_MSC_VER == 1900) 70 #if (_MSC_FULL_VER == 190023026) 71 static const char *
const COMPILER_VERS =
"MSVC 2015";
72 #elif (_MSC_FULL_VER == 190023506) 73 static const char *
const COMPILER_VERS =
"MSVC 2015.1";
74 #elif (_MSC_FULL_VER == 190023918) 75 static const char *
const COMPILER_VERS =
"MSVC 2015.2";
76 #elif (_MSC_FULL_VER == 190024210) || (_MSC_FULL_VER == 190024215) 77 static const char *
const COMPILER_VERS =
"MSVC 2015.3";
79 #error Compiler version is not supported yet! 81 #elif (_MSC_VER == 1800) 82 #if (_MSC_FULL_VER == 180021005) 83 static const char *
const COMPILER_VERS =
"MSVC 2013";
84 #elif (_MSC_FULL_VER == 180030501) 85 static const char *
const COMPILER_VERS =
"MSVC 2013.2";
86 #elif (_MSC_FULL_VER == 180030723) 87 static const char *
const COMPILER_VERS =
"MSVC 2013.3";
88 #elif (_MSC_FULL_VER == 180031101) 89 static const char *
const COMPILER_VERS =
"MSVC 2013.4";
90 #elif (_MSC_FULL_VER == 180040629) 91 static const char *
const COMPILER_VERS =
"MSVC 2013.5";
93 #error Compiler version is not supported yet! 95 #elif (_MSC_VER == 1700) 96 #if (_MSC_FULL_VER == 170050727) 97 static const char *
const COMPILER_VERS =
"MSVC 2012";
98 #elif (_MSC_FULL_VER == 170051106) 99 static const char *
const COMPILER_VERS =
"MSVC 2012.1";
100 #elif (_MSC_FULL_VER == 170060315) 101 static const char *
const COMPILER_VERS =
"MSVC 2012.2";
102 #elif (_MSC_FULL_VER == 170060610) 103 static const char *
const COMPILER_VERS =
"MSVC 2012.3";
104 #elif (_MSC_FULL_VER == 170061030) 105 static const char *
const COMPILER_VERS =
"MSVC 2012.4";
107 #error Compiler version is not supported yet! 109 #elif (_MSC_VER == 1600) 110 #if (_MSC_FULL_VER >= 160040219) 111 static const char *
const COMPILER_VERS =
"MSVC 2010-SP1";
113 static const char *
const COMPILER_VERS =
"MSVC 2010";
115 #elif (_MSC_VER == 1500) 116 #if (_MSC_FULL_VER >= 150030729) 117 static const char *
const COMPILER_VERS =
"MSVC 2008-SP1";
119 static const char *
const COMPILER_VERS =
"MSVC 2008";
122 #error Compiler is not supported! 125 #error Compiler is not supported! 128 return COMPILER_VERS;
132 static const char *
const compiler_arch(
void)
135 static const char *
const COMPILER_ARCH =
"x64";
136 #elif defined(_M_IX86) 137 static const char *
const COMPILER_ARCH =
"x86";
139 #error Architecture is not supported! 142 return COMPILER_ARCH;
147 static const char *
const build_date_raw(
void)
149 static const char *
const RAW_BUILD_DATE = __DATE__;
150 return RAW_BUILD_DATE;
154 static const char *
const build_time_raw(
void)
156 static const char *
const RAW_BUILD_TIME = __TIME__;
157 return RAW_BUILD_TIME;
This file contains miscellaneous functions that are generally useful for Qt-based applications...
Global MUtils namespace.
Definition: CPUFeatures.h:37