1/* DO NOT TOUCH THIS MANUALLY */
2
3#cmakedefine INTEGRATED_SDK
4
5#define PRODUCT "@PRODUCT@"
6#define VENDOR "@VENDOR@"
7#define VENDOR_DOMAIN "@VENDOR_DOMAIN@"
8#define COPYRIGHT_TEXT "@COPYRIGHT_TEXT@"
9
10#define VERSION "@VERSION@"
11#define VERSION_MAJOR @PROJECT_VERSION_MAJOR@
12#define VERSION_MINOR @PROJECT_VERSION_MINOR@
13#define VERSION_PATCH @PROJECT_VERSION_PATCH@
14#define VERSION_TWEAK @PROJECT_VERSION_TWEAK@
15
16#ifndef RC_INVOKED
17#if defined(__BASE_FILE__) && __has_include(<string_view>)
18#include <string_view>
19
20constexpr bool isPathSeparator(char pChar)
21{
22	return pChar == '/' || pChar == '\\';
23}
24
25
26constexpr const char* stripPath(const char* pPath)
27{
28	auto result = pPath;
29	for (auto iter = pPath; *iter; ++iter)
30	{
31		if (isPathSeparator(*iter) && *(iter + 1))
32		{
33			result = iter + 1;
34		}
35	}
36	return result;
37}
38
39
40constexpr std::string_view currentFile()
41{
42	return std::string_view(stripPath(__BASE_FILE__));
43}
44
45
46static_assert(currentFile() == "Bootstrap.cpp" || currentFile() == "main.cpp", "config.h include is allowed in Bootstrap.cpp and main.cpp only!");
47#endif
48#endif // RC_INVOKED
49
50
51//         DO NOT INCLUDE THIS
52//   Use QCoreApplication or VersionNumber!
53