VersionInfo.in 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. /*
  2. The MIT License (MIT)
  3. Copyright (c) 2015, by [halex2005](mailto:akharlov@gmail.com)
  4. Permission is hereby granted, free of charge, to any person obtaining a copy
  5. of this software and associated documentation files (the "Software"), to deal
  6. in the Software without restriction, including without limitation the rights
  7. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  8. copies of the Software, and to permit persons to whom the Software is
  9. furnished to do so, subject to the following conditions:
  10. The above copyright notice and this permission notice shall be included in all
  11. copies or substantial portions of the Software.
  12. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  13. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  14. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  15. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  16. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  17. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  18. SOFTWARE.
  19. */
  20. #pragma once
  21. #ifndef PRODUCT_VERSION_MAJOR
  22. #define PRODUCT_VERSION_MAJOR @PRODUCT_VERSION_MAJOR@
  23. #endif
  24. #ifndef PRODUCT_VERSION_MINOR
  25. #define PRODUCT_VERSION_MINOR @PRODUCT_VERSION_MINOR@
  26. #endif
  27. #ifndef PRODUCT_VERSION_PATCH
  28. #define PRODUCT_VERSION_PATCH @PRODUCT_VERSION_PATCH@
  29. #endif
  30. #ifndef PRODUCT_VERSION_BUILD
  31. #define PRODUCT_VERSION_BUILD @PRODUCT_VERSION_REVISION@
  32. #endif
  33. #ifndef FILE_VERSION_MAJOR
  34. #define FILE_VERSION_MAJOR @PRODUCT_VERSION_MAJOR@
  35. #endif
  36. #ifndef FILE_VERSION_MINOR
  37. #define FILE_VERSION_MINOR @PRODUCT_VERSION_MINOR@
  38. #endif
  39. #ifndef FILE_VERSION_PATCH
  40. #define FILE_VERSION_PATCH @PRODUCT_VERSION_PATCH@
  41. #endif
  42. #ifndef FILE_VERSION_BUILD
  43. #define FILE_VERSION_BUILD @PRODUCT_VERSION_REVISION@
  44. #endif
  45. #ifndef __TO_STRING
  46. #define __TO_STRING_IMPL(x) #x
  47. #define __TO_STRING(x) __TO_STRING_IMPL(x)
  48. #endif
  49. #define PRODUCT_VERSION_MAJOR_MINOR_STR __TO_STRING(PRODUCT_VERSION_MAJOR) "." __TO_STRING(PRODUCT_VERSION_MINOR)
  50. #define PRODUCT_VERSION_MAJOR_MINOR_PATCH_STR PRODUCT_VERSION_MAJOR_MINOR_STR "." __TO_STRING(PRODUCT_VERSION_PATCH)
  51. #define PRODUCT_VERSION_FULL_STR PRODUCT_VERSION_MAJOR_MINOR_PATCH_STR "." __TO_STRING(PRODUCT_VERSION_BUILD)
  52. #define PRODUCT_VERSION_RESOURCE PRODUCT_VERSION_MAJOR,PRODUCT_VERSION_MINOR,PRODUCT_VERSION_PATCH,PRODUCT_VERSION_BUILD
  53. #define PRODUCT_VERSION_RESOURCE_STR PRODUCT_VERSION_FULL_STR "\0"
  54. #define FILE_VERSION_MAJOR_MINOR_STR __TO_STRING(FILE_VERSION_MAJOR) "." __TO_STRING(FILE_VERSION_MINOR)
  55. #define FILE_VERSION_MAJOR_MINOR_PATCH_STR FILE_VERSION_MAJOR_MINOR_STR "." __TO_STRING(FILE_VERSION_PATCH)
  56. #define FILE_VERSION_FULL_STR FILE_VERSION_MAJOR_MINOR_PATCH_STR "." __TO_STRING(FILE_VERSION_BUILD)
  57. #define FILE_VERSION_RESOURCE FILE_VERSION_MAJOR,FILE_VERSION_MINOR,FILE_VERSION_PATCH,FILE_VERSION_BUILD
  58. #define FILE_VERSION_RESOURCE_STR FILE_VERSION_FULL_STR "\0"
  59. #ifndef USE_ICON
  60. #define USE_ICON @USE_ICON@
  61. #endif
  62. #if USE_ICON
  63. #ifndef PRODUCT_ICON
  64. #define PRODUCT_ICON "@PRODUCT_ICON@"
  65. #endif
  66. #endif
  67. #ifndef PRODUCT_COMMENTS
  68. #define PRODUCT_COMMENTS "@PRODUCT_COMMENTS@\0"
  69. #endif
  70. #ifndef PRODUCT_COMPANY_NAME
  71. #define PRODUCT_COMPANY_NAME "@PRODUCT_COMPANY_NAME@\0"
  72. #endif
  73. #ifndef PRODUCT_COMPANY_COPYRIGHT
  74. #define PRODUCT_COMPANY_COPYRIGHT "@PRODUCT_COMPANY_COPYRIGHT@\0"
  75. #endif
  76. #ifndef PRODUCT_FILE_DESCRIPTION
  77. #define PRODUCT_FILE_DESCRIPTION "@PRODUCT_FILE_DESCRIPTION@\0"
  78. #endif
  79. #ifndef PRODUCT_INTERNAL_NAME
  80. #define PRODUCT_INTERNAL_NAME "@PRODUCT_NAME@\0"
  81. #endif
  82. #ifndef PRODUCT_ORIGINAL_FILENAME
  83. #define PRODUCT_ORIGINAL_FILENAME "@PRODUCT_ORIGINAL_FILENAME@\0"
  84. #endif
  85. #ifndef PRODUCT_BUNDLE
  86. #define PRODUCT_BUNDLE "@PRODUCT_BUNDLE@\0"
  87. #endif