pngwin.rc 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. #define PNG_VERSION_INFO_ONLY
  2. #include <windows.h>
  3. #include "../png.h"
  4. #define _QUOTE(x) # x
  5. #define QUOTE(x) _QUOTE(x)
  6. #define PNG_LIBPNG_DLLFNAME "LIBPNG"
  7. /* Support deprecated PRIVATEBUILD macro */
  8. #if defined(PRIVATEBUILD) && !defined(PNG_USER_PRIVATEBUILD)
  9. # define PNG_USER_PRIVATEBUILD PRIVATEBUILD
  10. #endif
  11. #if defined(PNG_USER_DLLFNAME_POSTFIX) && !defined(PNG_USER_PRIVATEBUILD)
  12. # error "PNG_USER_PRIVATEBUILD must be defined as a string describing the\
  13. custom changes made to the library."
  14. #endif
  15. /* Prioritize PNG_USER_x over PNG_LIBPNG_x */
  16. #ifdef PNG_USER_DLLFNAME_POSTFIX
  17. # undef PNG_LIBPNG_DLLFNAME_POSTFIX
  18. # define PNG_LIBPNG_DLLFNAME_POSTFIX PNG_USER_DLLFNAME_POSTFIX
  19. #endif
  20. #ifdef PNG_USER_VERSIONINFO_COMMENTS
  21. # undef PNG_LIBPNG_VERSIONINFO_COMMENTS
  22. # define PNG_LIBPNG_VERSIONINFO_COMMENTS PNG_USER_VERSIONINFO_COMMENTS
  23. #endif
  24. #if defined(PNG_DEBUG) && (PNG_DEBUG > 0)
  25. # define VS_DEBUG VS_FF_DEBUG
  26. # ifndef PNG_LIBPNG_DLLFNAME_POSTFIX
  27. # define PNG_LIBPNG_DLLFNAME_POSTFIX "D"
  28. # endif /* PNG_LIBPNG_DLLFNAME_POSTFIX */
  29. # ifndef PNG_LIBPNG_VERSIONINFO_COMMENTS
  30. # define PNG_LIBPNG_VERSIONINFO_COMMENTS "PNG_DEBUG=" QUOTE(PNG_DEBUG)
  31. # endif /* PNG_LIBPNG_VERSIONINFO_COMMENTS */
  32. #else
  33. # define VS_DEBUG 0
  34. # ifndef PNG_LIBPNG_DLLFNAME_POSTFIX
  35. # define PNG_LIBPNG_DLLFNAME_POSTFIX
  36. # endif /* PNG_LIBPNG_DLLFNAME_POSTFIX */
  37. #endif /* defined(DEBUG)... */
  38. #ifdef PNG_USER_PRIVATEBUILD
  39. # define VS_PRIVATEBUILD VS_FF_PRIVATEBUILD
  40. #else
  41. # define VS_PRIVATEBUILD 0
  42. #endif /* PNG_USER_PRIVATEBUILD */
  43. #ifdef PNG_LIBPNG_SPECIALBUILD
  44. # define VS_SPECIALBUILD VS_FF_SPECIALBUILD
  45. #else
  46. # define VS_SPECIALBUILD 0
  47. #endif /* PNG_LIBPNG_BUILD_SPECIAL */
  48. #if ((PNG_LIBPNG_BUILD_BASE_TYPE & PNG_LIBPNG_RELEASE_STATUS_MASK) !=\
  49. PNG_LIBPNG_BUILD_STABLE)
  50. # define VS_PRERELEASE VS_FF_PRERELEASE
  51. # define VS_PATCHED 0
  52. #else
  53. # define VS_PRERELEASE 0
  54. # if (PNG_LIBPNG_BUILD_BASE_TYPE & PNG_LIBPNG_BUILD_PATCHED)
  55. # define VS_PATCHED VS_FF_PATCHED
  56. # else
  57. # define VS_PATCHED 0
  58. # endif
  59. #endif
  60. VS_VERSION_INFO VERSIONINFO
  61. FILEVERSION PNG_LIBPNG_VER_MAJOR, PNG_LIBPNG_VER_MINOR, PNG_LIBPNG_VER_RELEASE, PNG_LIBPNG_VER_BUILD
  62. PRODUCTVERSION PNG_LIBPNG_VER_MAJOR, PNG_LIBPNG_VER_MINOR, PNG_LIBPNG_VER_RELEASE, PNG_LIBPNG_VER_BUILD
  63. FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
  64. FILEFLAGS VS_DEBUG | VS_PRIVATEBUILD | VS_SPECIALBUILD | VS_PRERELEASE | VS_PATCHED
  65. FILEOS VOS__WINDOWS32
  66. FILETYPE VFT_DLL
  67. FILESUBTYPE VFT2_UNKNOWN
  68. BEGIN
  69. BLOCK "StringFileInfo"
  70. BEGIN BLOCK "040904E4" /* Language type = U.S English(0x0409) and Character Set = Windows, Multilingual(0x04E4) */
  71. BEGIN
  72. #ifdef PNG_LIBPNG_VERSIONINFO_COMMENTS
  73. VALUE "Comments", PNG_LIBPNG_VERSIONINFO_COMMENTS "\000"
  74. #endif /* PNG_LIBPNG_VERSIONINFO_COMMENTS */
  75. #ifdef PNG_USER_VERSIONINFO_COMPANYNAME
  76. VALUE "CompanyName", PNG_USER_VERSIONINFO_COMPANYNAME "\000"
  77. #endif /* PNG_USER_VERSIONINFO_COMPANYNAME */
  78. VALUE "FileDescription", "PNG image compression library\000"
  79. VALUE "FileVersion", PNG_LIBPNG_VER_STRING "\000"
  80. VALUE "InternalName", PNG_LIBPNG_DLLFNAME QUOTE(PNG_LIBPNG_VER_DLLNUM) PNG_LIBPNG_DLLFNAME_POSTFIX " (Windows 32 bit)\000"
  81. VALUE "LegalCopyright", "\251 1998-2009 Glenn Randers-Pehrson et al.\000"
  82. #ifdef PNG_USER_VERSIONINFO_LEGALTRADEMARKS
  83. VALUE "LegalTrademarks", PNG_USER_VERSIONINFO_LEGALTRADEMARKS "\000"
  84. #endif /* PNG_USER_VERSIONINFO_LEGALTRADEMARKS */
  85. VALUE "OriginalFilename", PNG_LIBPNG_DLLFNAME QUOTE(PNG_LIBPNG_VER_DLLNUM) PNG_LIBPNG_DLLFNAME_POSTFIX ".DLL\000"
  86. #ifdef PNG_USER_PRIVATEBUILD
  87. VALUE "PrivateBuild", PNG_USER_PRIVATEBUILD "\000"
  88. #endif /* PNG_USER_PRIVATEBUILD */
  89. VALUE "ProductName", "LibPNG\000"
  90. VALUE "ProductVersion", "1\000"
  91. #ifdef PNG_LIBPNG_SPECIALBUILD
  92. VALUE "SpecialBuild", PNG_LIBPNG_SPECIALBUILD "\000"
  93. #endif /* PNG_LIBPNG_SPECIALBUILD */
  94. END
  95. END
  96. BLOCK "VarFileInfo"
  97. BEGIN
  98. VALUE "Translation", 0x0409, 0x04E4
  99. END
  100. END