idver.h 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. //
  2. //////////////////////////////////////////////////////////////////////////////
  3. //
  4. // Copyright 2015 Autodesk, Inc. All rights reserved.
  5. //
  6. // This computer source code and related instructions and comments
  7. // are the unpublished confidential and proprietary information of
  8. // Autodesk, Inc. and are protected under applicable copyright and
  9. // trade secret law. They may not be disclosed to, copied or used
  10. // by any third party without the prior written consent of Autodesk, Inc.
  11. //
  12. //////////////////////////////////////////////////////////////////////////////
  13. //
  14. #ifndef _IDVER_H
  15. #define _IDVER_H
  16. #include "id.h"
  17. //
  18. // use dummy versions to make sure the incremental build will not break by version // update.
  19. #ifndef AC_BLDENV
  20. #define ACADV_BLDMAJOR 0 /*BuildMajor*/
  21. #define ACADV_BLDMINOR 0 /*BuildMinor*/
  22. #define ACADV_BLDBRANCH 0 /*BuildBranch*/
  23. #define ACADV_BLDSTREAM M /*BuildStream*/
  24. #else
  25. #include "_idver.h"
  26. #endif
  27. //
  28. // This file uses the following convention to distinguish macros that
  29. // files including this file can use (for external use) and macros that
  30. // only this file should use (for internal use).
  31. //
  32. // Macros for internal use have two underscores
  33. // Macros for external use start with ACADV_ (one underscore).
  34. //
  35. #define VALUE2STR(x) #x
  36. #define ID2STR(a) ID2STR__1(a)
  37. #define ID2STR__1(a) VALUE2STR(a)
  38. //
  39. // Calculate the numbers for the FILEVERSION resources.
  40. //
  41. // The four parts of the file version resources,
  42. // each of which evaluates to an integer constant.
  43. // ACADV_{RCFILEVER1, RCFILEVER2, RCFILEVER3, RCFILEVER4}.
  44. //
  45. // We keep the FILEVERSION and PRODUCTVERSION numbers the same.
  46. // So these are also used for setting the ProductVersion in rc files.
  47. #define ACADV_RCFILEVER1 ACADV_RELMAJOR
  48. #define ACADV_RCFILEVER2 ACADV_RELMINOR
  49. #define ACADV_RCFILEVER3 ACADV_BLDMAJOR
  50. #define ACADV_RCFILEVER4 ACADV_BLDMINOR
  51. #define ACADV_RCFILEVER5 ACADV_BLDBRANCH
  52. #define ACADV_RCFILEVER1_CORRECTION (6 + ACADV_RCFILEVER1)
  53. // The following utility macros build the stringized form of the
  54. // version numbers.
  55. //
  56. #define ACADV_RCFILEVERSTR ID2STR(ACADV_RCFILEVER1) "." \
  57. ID2STR(ACADV_RCFILEVER2) "." \
  58. ID2STR(ACADV_RCFILEVER3) "." \
  59. ID2STR(ACADV_RCFILEVER5) "." \
  60. ID2STR(ACADV_RCFILEVER4)
  61. // Moved here from acadmfc.rc2
  62. #define ACADV_PRODVERSION "R" ACADV_RCFILEVERSTR
  63. //
  64. // Build ACADV_VERNUM.
  65. //
  66. // Create a string form of the build numbers, e.g.,
  67. // "N.20.0", "N.255.9999".
  68. //
  69. #if defined(_MSC_VER) || defined(UNICODE)
  70. // This definition is used when included by source files
  71. #define ACADV_VERNUM _T(ID2STR(ACADV_BLDSTREAM)) _T(".") \
  72. _T(ID2STR(ACADV_BLDMAJOR)) _T(".") \
  73. _T(ID2STR(ACADV_BLDBRANCH)) _T(".") \
  74. _T(ID2STR(ACADV_BLDMINOR))
  75. #else // !_MSC_VER
  76. // This definition is used when included by resource files
  77. #define ACADV_VERNUM ID2STR(ACADV_BLDSTREAM) "." \
  78. ID2STR(ACADV_BLDMAJOR) "." \
  79. ID2STR(ACADV_BLDBRANCH) "." \
  80. ID2STR(ACADV_BLDMINOR)
  81. #endif // !_MSC_VER
  82. //
  83. // Build ACADV_VERNAME
  84. //
  85. // Create the string form of the release numbers, e.g.,
  86. // "16.0" or "16.1".
  87. //
  88. #if defined(_MSC_VER) || defined(UNICODE)
  89. // This definition is used when included by source files
  90. #define ACADV_VERNAME _T(ID2STR(ACADV_RELMAJOR)) _T(".") \
  91. _T(ID2STR(ACADV_RELMINOR))
  92. #else // !_MSC_VER
  93. // This definition is used when included by resource files
  94. #define ACADV_VERNAME ID2STR(ACADV_RELMAJOR) "." \
  95. ID2STR(ACADV_RELMINOR)
  96. #endif // !_MSC_VER
  97. //
  98. // ACADV_VERFULL varies with production and nonproduction builds.
  99. //
  100. #if defined(PRODUCTION)
  101. #define ACADV_VERFULL ACADV_VERNAME
  102. #else
  103. #define ACADV_VERFULL ACADV_VERNUM
  104. #endif
  105. // The following macros exist to simplify usage in RC files.
  106. #define ACADV_BLDVERSTR ACADV_VERNUM
  107. // And finally, a copyright string for general use.
  108. //
  109. #define ACAD_COPYRIGHT "Copyright 2015 Autodesk, Inc. All rights reserved."
  110. // Type library version for AutoCAD Type Library
  111. // (axdb<ver><lang>.tlb)
  112. //
  113. #define ACAD_TLBVERSION_MAJOR 1
  114. #define ACAD_TLBVERSION_MINOR 0
  115. #define ACAD_TLBVERSION ACAD_TLBVERSION_MAJOR.ACAD_TLBVERSION_MINOR
  116. // String form of the type library version (ex. "1.0")
  117. #ifdef _MSC_VER
  118. // This definition is used when included by source files
  119. #define ACAD_TLBVERSIONSTR _T(ID2STR(ACAD_TLBVERSION_MAJOR)) _T(".") \
  120. _T(ID2STR(ACAD_TLBVERSION_MINOR))
  121. #else // !_MSC_VER
  122. // This definition is used when included by resource files
  123. #define ACAD_TLBVERSIONSTR ID2STR(ACAD_TLBVERSION_MAJOR) "." \
  124. ID2STR(ACAD_TLBVERSION_MINOR)
  125. #endif// !_MSC_VER
  126. // Type library version for AutoCAD/ObjectDBX Common Type Library
  127. // (acax<ver><lang>.tlb)
  128. //
  129. #define ACDB_TLBVERSION_MAJOR 1
  130. #define ACDB_TLBVERSION_MINOR 0
  131. #define ACDB_TLBVERSION ACDB_TLBVERSION_MAJOR.ACDB_TLBVERSION_MINOR
  132. // String form of the type library version (ex. "1.0")
  133. #ifdef _MSC_VER
  134. // This definition is used when included by source files
  135. #define ACDB_TLBVERSIONSTR _T(ID2STR(ACDB_TLBVERSION_MAJOR)) _T(".") \
  136. _T(ID2STR(ACDB_TLBVERSION_MINOR))
  137. #else // !_MSC_VER
  138. // This definition is used when included by resource files
  139. #define ACDB_TLBVERSIONSTR ID2STR(ACDB_TLBVERSION_MAJOR) "." \
  140. ID2STR(ACDB_TLBVERSION_MINOR)
  141. #endif// !_MSC_VER
  142. #endif /* _IDVER_H */