AusweisApp2
config.h
gehe zur Dokumentation dieser Datei
1 /* DO NOT TOUCH THIS MANUALLY */
2 
3 /* #undef INTEGRATED_SDK */
4 
5 #define PRODUCT "AusweisApp2"
6 #define VENDOR ""
7 #define VENDOR_DOMAIN ""
8 #define COPYRIGHT_TEXT "2014-2020 "
9 
10 #define VERSION "1.20.1"
11 #define VERSION_MAJOR 1
12 #define VERSION_MINOR 20
13 #define VERSION_PATCH 1
14 #define VERSION_TWEAK 0
15 
16 #ifndef RC_INVOKED
17 #if defined(__BASE_FILE__) && __has_include(<string_view>)
18 #include <string_view>
19 
20 constexpr bool isPathSeparator(char pChar)
21 {
22  return pChar == '/' || pChar == '\\';
23 }
24 
25 
26 constexpr 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 
40 constexpr std::string_view currentFile()
41 {
42  return std::string_view(stripPath(__BASE_FILE__));
43 }
44 
45 
46 static_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!