version.rc 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. // Win32 VERSIONINFO resource file
  2. #include <winresrc.h>
  3. // rc's cpp doesnt support __DATE__,__TIME__ macros, so must use external generated file to get BUILD_DATE
  4. #include "verdate.h"
  5. #include "version.h"
  6. // these should also be externally generated eventually
  7. #ifndef PANDA_VERSION_MAJOR
  8. #define PANDA_VERSION_MAJOR 0
  9. #define PANDA_VERSION_MAJOR_STR "0"
  10. #endif
  11. #ifndef PANDA_VERSION_MINOR
  12. #define PANDA_VERSION_MINOR 0
  13. #define PANDA_VERSION_MINOR_STR "0"
  14. #endif
  15. #ifndef PANDA_VERSION_BUILDSUBVERSION
  16. #define PANDA_VERSION_BUILDSUBVERSION 0
  17. #define PANDA_VERSION_BUILDSUBVERSION_STR "0"
  18. #endif
  19. #ifndef PANDA_VERSION_BUILDSUBSUBVERSION
  20. #define PANDA_VERSION_BUILDSUBSUBVERSION 0
  21. #define PANDA_VERSION_BUILDSUBSUBVERSION_STR "0"
  22. #endif
  23. /*
  24. this stuff doesnt work, cpp wont replace inside quotes
  25. #define PANDA_VERSION_MAJOR_STR "PANDA_VERSION_MAJOR"
  26. #define PANDA_VERSION_MINOR_STR "PANDA_VERSION_MINOR"
  27. #define PANDA_VERSION_BUILDSUBVERSION_STR "PANDA_VERSION_BUILDSUBVERSION"
  28. #define PANDA_VERSION_BUILDSUBSUBVERSION_STR "PANDA_VERSION_BUILDSUBSUBVERSION"
  29. */
  30. #define VER_FILEVERSION PANDA_VERSION_MAJOR,PANDA_VERSION_MINOR,PANDA_VERSION_BUILDSUBVERSION,PANDA_VERSION_BUILDSUBSUBVERSION
  31. #define VER_FILEVERSION_STR PANDA_VERSION_MAJOR_STR "." PANDA_VERSION_MINOR_STR "." PANDA_VERSION_BUILDSUBVERSION_STR "." PANDA_VERSION_BUILDSUBSUBVERSION_STR
  32. #define VER_PRODUCTNAME_STR "ToonTown"
  33. #define VER_PRODUCTVERSION_STR VER_FILEVERSION_STR // make these the same 4 now
  34. #define VER_COMPANY_STR "Walt Disney Co."
  35. #define VER_COPYRIGHT_STR "Copyright © 2001, Walt Disney Co."
  36. // may want to define these separately per dll
  37. #define VER_DESC_STR "The Fabulous PANDA 3D Engine"
  38. #ifdef _DEBUG
  39. #define VER_DEBUG VS_FF_DEBUG
  40. #else
  41. #define VER_DEBUG 0
  42. #endif
  43. #ifndef RELEASE
  44. #define VER_PRERELEASE VS_FF_PRERELEASE
  45. #else
  46. #define VER_PRERELEASE 0
  47. #endif
  48. #ifndef OFFICIAL_BUILD
  49. #define VER_PRIVATE VS_FF_PRIVATEBUILD
  50. #else
  51. #define VER_PRIVATE 0
  52. #endif
  53. // English (U.S.) resources
  54. LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
  55. // ISO std charset
  56. //#pragma code_page(1252)
  57. // VFT_DLL incorrect for .exe's
  58. // see msdn 'VERSIONINFO' for fmt descrption
  59. VS_VERSION_INFO VERSIONINFO
  60. FILEVERSION VER_FILEVERSION
  61. PRODUCTVERSION VER_FILEVERSION
  62. FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
  63. FILEFLAGS (VER_DEBUG | VER_PRIVATE | VER_PRERELEASE)
  64. FILEOS VOS__WINDOWS32
  65. FILETYPE VFT_DLL
  66. FILESUBTYPE VFT2_UNKNOWN
  67. BEGIN
  68. BLOCK "StringFileInfo"
  69. BEGIN
  70. BLOCK "040904B0"
  71. BEGIN
  72. VALUE "Build Date", VER_BUILD_DATE_STR
  73. VALUE "CompanyName", VER_COMPANY_STR
  74. VALUE "FileDescription", VER_DESC_STR
  75. VALUE "LegalCopyright", VER_COPYRIGHT_STR
  76. #ifndef OFFICIAL_BUILD
  77. VALUE "PrivateBuild", "This is a Private Build."
  78. #endif
  79. VALUE "FileVersion", VER_FILEVERSION_STR
  80. VALUE "ProductVersion", VER_PRODUCTVERSION_STR
  81. VALUE "ProductName", VER_PRODUCTNAME_STR
  82. // these std fields can be added if need arises
  83. // VALUE "Comments", "\0"
  84. // VALUE "LegalTrademarks", "\0"
  85. // VALUE "OriginalFilename", "libpanda.dll\0"
  86. END
  87. END
  88. BLOCK "VarFileInfo"
  89. BEGIN
  90. VALUE "Translation", 0x409, 1200
  91. END
  92. END