Open Source Snapmatic picture and Savegame viewer/editor for GTA V https://gta5view.syping.de/

config.h 4.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. /*****************************************************************************
  2. * gta5view Grand Theft Auto V Profile Viewer
  3. * Copyright (C) 2016-2018 Syping
  4. *
  5. * This program is free software: you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation, either version 3 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. *****************************************************************************/
  18. #ifndef CONFIG_H
  19. #define CONFIG_H
  20. #if __cplusplus
  21. #include <QString>
  22. #endif
  23. #ifndef GTA5SYNC_APPVENDOR
  24. #define GTA5SYNC_APPVENDOR "Syping"
  25. #endif
  26. #ifndef GTA5SYNC_APPVENDORLINK
  27. #define GTA5SYNC_APPVENDORLINK "g5e://about?U3lwaW5n:R2l0TGFiOiA8YSBocmVmPSJodHRwczovL2dpdGxhYi5jb20vU3lwaW5nIj5TeXBpbmc8L2E+PGJyLz5HaXRIdWI6IDxhIGhyZWY9Imh0dHBzOi8vZ2l0aHViLmNvbS9TeXBpbmciPlN5cGluZzwvYT48YnIvPlNvY2lhbCBDbHViOiA8YSBocmVmPSJodHRwczovL3NvY2lhbGNsdWIucm9ja3N0YXJnYW1lcy5jb20vbWVtYmVyL1N5cGluZy80NjMwMzA1NiI+U3lwaW5nPC9hPg=="
  28. #endif
  29. #ifndef GTA5SYNC_APPSTR
  30. #define GTA5SYNC_APPSTR "gta5view"
  31. #endif
  32. #ifndef GTA5SYNC_APPDES
  33. #define GTA5SYNC_APPDES "INSERT YOUR APPLICATION DESCRIPTION HERE"
  34. #endif
  35. #ifndef GTA5SYNC_COPYRIGHT
  36. #define GTA5SYNC_COPYRIGHT "2016-2018"
  37. #endif
  38. #ifndef GTA5SYNC_APPVER
  39. #define GTA5SYNC_APPVER "1.6.2"
  40. #endif
  41. #if __cplusplus
  42. #ifdef GTA5SYNC_BUILDTYPE_REL
  43. #ifndef GTA5SYNC_BUILDTYPE
  44. #define GTA5SYNC_BUILDTYPE QT_TRANSLATE_NOOP("AboutDialog", "Release")
  45. #endif
  46. #endif
  47. #ifdef GTA5SYNC_BUILDTYPE_RC
  48. #ifndef GTA5SYNC_BUILDTYPE
  49. #define GTA5SYNC_BUILDTYPE QT_TRANSLATE_NOOP("AboutDialog", "Release Candidate")
  50. #endif
  51. #endif
  52. #ifdef GTA5SYNC_BUILDTYPE_DAILY
  53. #ifndef GTA5SYNC_BUILDTYPE
  54. #define GTA5SYNC_BUILDTYPE QT_TRANSLATE_NOOP("AboutDialog", "Daily Build")
  55. #endif
  56. #endif
  57. #ifdef GTA5SYNC_BUILDTYPE_DEV
  58. #ifndef GTA5SYNC_BUILDTYPE
  59. #define GTA5SYNC_BUILDTYPE QT_TRANSLATE_NOOP("AboutDialog", "Developer")
  60. #endif
  61. #endif
  62. #ifdef GTA5SYNC_BUILDTYPE_BETA
  63. #ifndef GTA5SYNC_BUILDTYPE
  64. #define GTA5SYNC_BUILDTYPE QT_TRANSLATE_NOOP("AboutDialog", "Beta")
  65. #endif
  66. #endif
  67. #ifdef GTA5SYNC_BUILDTYPE_ALPHA
  68. #ifndef GTA5SYNC_BUILDTYPE
  69. #define GTA5SYNC_BUILDTYPE QT_TRANSLATE_NOOP("AboutDialog", "Alpha")
  70. #endif
  71. #endif
  72. #ifndef GTA5SYNC_BUILDTYPE
  73. #define GTA5SYNC_BUILDTYPE QT_TRANSLATE_NOOP("AboutDialog", "Custom")
  74. #endif
  75. #ifndef GTA5SYNC_BUILDCODE
  76. #define GTA5SYNC_BUILDCODE "Source"
  77. #endif
  78. #ifdef GTA5SYNC_QCONF
  79. #ifndef GTA5SYNC_SHARE
  80. #define GTA5SYNC_SHARE "RUNDIR:SEPARATOR:..SEPARATOR:share"
  81. #endif
  82. #ifndef GTA5SYNC_LANG
  83. #define GTA5SYNC_LANG "QCONFLANG:"
  84. #endif
  85. #ifndef GTA5SYNC_PLUG
  86. #define GTA5SYNC_PLUG "QCONFPLUG:"
  87. #endif
  88. #ifdef GTA5SYNC_QCONF_IN
  89. #ifndef GTA5SYNC_INLANG
  90. #define GTA5SYNC_INLANG ":/tr"
  91. #endif
  92. #endif
  93. #endif
  94. #ifndef GTA5SYNC_SHARE
  95. #define GTA5SYNC_SHARE "RUNDIR:"
  96. #endif
  97. #ifndef GTA5SYNC_LANG
  98. #define GTA5SYNC_LANG "SHAREDDIR:SEPARATOR:lang"
  99. #endif
  100. #ifndef GTA5SYNC_PLUG
  101. #define GTA5SYNC_PLUG "RUNDIR:SEPARATOR:plugins"
  102. #endif
  103. #ifdef GTA5SYNC_WINRT
  104. #undef GTA5SYNC_WIN
  105. #endif
  106. #ifndef GTA5SYNC_COMPILER
  107. #ifdef __clang__
  108. #ifndef Q_OS_MAC
  109. #define GTA5SYNC_COMPILER QString("Clang %1.%2.%3").arg(QString::number(__clang_major__), QString::number(__clang_minor__), QString::number(__clang_patchlevel__))
  110. #else
  111. #define GTA5SYNC_COMPILER QString("Apple LLVM %1.%2.%3").arg(QString::number(__clang_major__), QString::number(__clang_minor__), QString::number(__clang_patchlevel__))
  112. #endif
  113. #elif defined(__GNUC__)
  114. #define GTA5SYNC_COMPILER QString("GCC %1.%2.%3").arg(QString::number(__GNUC__), QString::number(__GNUC_MINOR__), QString::number(__GNUC_PATCHLEVEL__))
  115. #elif defined(__GNUG__)
  116. #define GTA5SYNC_COMPILER QString("GCC %1.%2.%3").arg(QString::number(__GNUG__), QString::number(__GNUC_MINOR__), QString::number(__GNUC_PATCHLEVEL__))
  117. #elif defined(_MSC_VER)
  118. #define GTA5SYNC_COMPILER QString("MSVC %1").arg(QString::number(_MSC_VER).insert(2, "."))
  119. #else
  120. #define GTA5SYNC_COMPILER QString("Unknown Compiler")
  121. #endif
  122. #endif
  123. #ifndef GTA5SYNC_BUILDDATETIME
  124. #define GTA5SYNC_BUILDDATETIME QString("%1, %2").arg(__DATE__, __TIME__)
  125. #endif
  126. #ifndef GTA5SYNC_BUILDSTRING
  127. #define GTA5SYNC_BUILDSTRING QString("%1, %2").arg(QT_VERSION_STR, GTA5SYNC_COMPILER)
  128. #endif
  129. #endif
  130. #endif // CONFIG_H