blob: 9335cbbe03b523c7067a2dd9223a08680a49d56d [file] [log] [blame]
Glenn Randers-Pehrson272489d2004-08-04 06:34:52 -05001#define PNG_VERSION_INFO_ONLY
2
3#include <windows.h>
4#include "../png.h"
5
6#define _QUOTE(x) # x
7#define QUOTE(x) _QUOTE(x)
8
9#define PNG_LIBPNG_DLLFNAME "LIBPNG"
10
Glenn Randers-Pehrson5dd2b8e2004-11-24 07:50:16 -060011/* Support deprecated PRIVATEBUILD macro */
12#if defined(PRIVATEBUILD) && !defined(PNG_USER_PRIVATEBUILD)
13# define PNG_USER_PRIVATEBUILD PRIVATEBUILD
14#endif
Glenn Randers-Pehrson272489d2004-08-04 06:34:52 -050015
Glenn Randers-Pehrson5dd2b8e2004-11-24 07:50:16 -060016#if defined(PNG_USER_DLLFNAME_POSTFIX) && !defined(PNG_USER_PRIVATEBUILD)
17# error "PNG_USER_PRIVATEBUILD must be defined as a string describing the\
18 custom changes made to the library."
19#endif
20
21/* Prioritize PNG_USER_x over PNG_LIBPNG_x */
22#ifdef PNG_USER_DLLFNAME_POSTFIX
23# undef PNG_LIBPNG_DLLFNAME_POSTFIX
24# define PNG_LIBPNG_DLLFNAME_POSTFIX PNG_USER_DLLFNAME_POSTFIX
25#endif
26
27#ifdef PNG_USER_VERSIONINFO_COMMENTS
28# undef PNG_LIBPNG_VERSIONINFO_COMMENTS
29# define PNG_LIBPNG_VERSIONINFO_COMMENTS PNG_USER_VERSIONINFO_COMMENTS
Glenn Randers-Pehrson272489d2004-08-04 06:34:52 -050030#endif
31
32#if defined(PNG_DEBUG) && (PNG_DEBUG > 0)
33# define VS_DEBUG VS_FF_DEBUG
Glenn Randers-Pehrson5dd2b8e2004-11-24 07:50:16 -060034# ifndef PNG_LIBPNG_DLLFNAME_POSTFIX
35# define PNG_LIBPNG_DLLFNAME_POSTFIX "D"
36# endif /* PNG_LIBPNG_DLLFNAME_POSTFIX */
37# ifndef PNG_LIBPNG_VERSIONINFO_COMMENTS
38# define PNG_LIBPNG_VERSIONINFO_COMMENTS "PNG_DEBUG=" QUOTE(PNG_DEBUG)
39# endif /* PNG_LIBPNG_VERSIONINFO_COMMENTS */
Glenn Randers-Pehrson272489d2004-08-04 06:34:52 -050040#else
41# define VS_DEBUG 0
Glenn Randers-Pehrson5dd2b8e2004-11-24 07:50:16 -060042# ifndef PNG_LIBPNG_DLLFNAME_POSTFIX
43# define PNG_LIBPNG_DLLFNAME_POSTFIX
44# endif /* PNG_LIBPNG_DLLFNAME_POSTFIX */
Glenn Randers-Pehrson272489d2004-08-04 06:34:52 -050045#endif /* defined(DEBUG)... */
46
Glenn Randers-Pehrson5dd2b8e2004-11-24 07:50:16 -060047#ifdef PNG_USER_PRIVATEBUILD
Glenn Randers-Pehrson272489d2004-08-04 06:34:52 -050048# define VS_PRIVATEBUILD VS_FF_PRIVATEBUILD
49#else
50# define VS_PRIVATEBUILD 0
Glenn Randers-Pehrson5dd2b8e2004-11-24 07:50:16 -060051#endif /* PNG_USER_PRIVATEBUILD */
Glenn Randers-Pehrson272489d2004-08-04 06:34:52 -050052
Glenn Randers-Pehrson5dd2b8e2004-11-24 07:50:16 -060053#ifdef PNG_LIBPNG_SPECIALBUILD
Glenn Randers-Pehrson272489d2004-08-04 06:34:52 -050054# define VS_SPECIALBUILD VS_FF_SPECIALBUILD
55#else
56# define VS_SPECIALBUILD 0
Glenn Randers-Pehrson878b31e2004-11-12 22:04:56 -060057#endif /* PNG_LIBPNG_BUILD_SPECIAL */
Glenn Randers-Pehrson272489d2004-08-04 06:34:52 -050058
Glenn Randers-Pehrson5dd2b8e2004-11-24 07:50:16 -060059#if ((PNG_LIBPNG_BUILD_BASE_TYPE & PNG_LIBPNG_RELEASE_STATUS_MASK) !=\
Glenn Randers-Pehrson272489d2004-08-04 06:34:52 -050060 PNG_LIBPNG_BUILD_STABLE)
61# define VS_PRERELEASE VS_FF_PRERELEASE
62# define VS_PATCHED 0
63#else
64# define VS_PRERELEASE 0
Glenn Randers-Pehrson5dd2b8e2004-11-24 07:50:16 -060065# if (PNG_LIBPNG_BUILD_BASE_TYPE & PNG_LIBPNG_BUILD_PATCHED)
Glenn Randers-Pehrson272489d2004-08-04 06:34:52 -050066# define VS_PATCHED VS_FF_PATCHED
67# else
68# define VS_PATCHED 0
69# endif
70#endif
71
Glenn Randers-Pehrson5dd2b8e2004-11-24 07:50:16 -060072VS_VERSION_INFO VERSIONINFO
Glenn Randers-Pehrson272489d2004-08-04 06:34:52 -050073FILEVERSION PNG_LIBPNG_VER_MAJOR, PNG_LIBPNG_VER_MINOR, PNG_LIBPNG_VER_RELEASE, PNG_LIBPNG_VER_BUILD
74PRODUCTVERSION PNG_LIBPNG_VER_MAJOR, PNG_LIBPNG_VER_MINOR, PNG_LIBPNG_VER_RELEASE, PNG_LIBPNG_VER_BUILD
75FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
76FILEFLAGS VS_DEBUG | VS_PRIVATEBUILD | VS_SPECIALBUILD | VS_PRERELEASE | VS_PATCHED
77FILEOS VOS__WINDOWS32
78FILETYPE VFT_DLL
79FILESUBTYPE VFT2_UNKNOWN
80BEGIN
81 BLOCK "StringFileInfo"
82 BEGIN BLOCK "040904E4" /* Language type = U.S English(0x0409) and Character Set = Windows, Multilingual(0x04E4) */
83 BEGIN
Glenn Randers-Pehrson5dd2b8e2004-11-24 07:50:16 -060084#ifdef PNG_LIBPNG_VERSIONINFO_COMMENTS
85 VALUE "Comments", PNG_LIBPNG_VERSIONINFO_COMMENTS "\000"
86#endif /* PNG_LIBPNG_VERSIONINFO_COMMENTS */
87#ifdef PNG_USER_VERSIONINFO_COMPANYNAME
88 VALUE "CompanyName", PNG_USER_VERSIONINFO_COMPANYNAME "\000"
89#endif /* PNG_USER_VERSIONINFO_COMPANYNAME */
Glenn Randers-Pehrson272489d2004-08-04 06:34:52 -050090 VALUE "FileDescription", "PNG image compression library\000"
91 VALUE "FileVersion", PNG_LIBPNG_VER_STRING "\000"
Glenn Randers-Pehrson5dd2b8e2004-11-24 07:50:16 -060092 VALUE "InternalName", PNG_LIBPNG_DLLFNAME QUOTE(PNG_LIBPNG_VER_DLLNUM) PNG_LIBPNG_DLLFNAME_POSTFIX " (Windows 32 bit)\000"
Glenn Randers-Pehrson9d27a1b2009-11-15 07:59:06 -060093 VALUE "LegalCopyright", "\251 1998-2009 Glenn Randers-Pehrson et al.\000"
Glenn Randers-Pehrson5dd2b8e2004-11-24 07:50:16 -060094#ifdef PNG_USER_VERSIONINFO_LEGALTRADEMARKS
95 VALUE "LegalTrademarks", PNG_USER_VERSIONINFO_LEGALTRADEMARKS "\000"
96#endif /* PNG_USER_VERSIONINFO_LEGALTRADEMARKS */
97 VALUE "OriginalFilename", PNG_LIBPNG_DLLFNAME QUOTE(PNG_LIBPNG_VER_DLLNUM) PNG_LIBPNG_DLLFNAME_POSTFIX ".DLL\000"
Glenn Randers-Pehrson584b96e2004-11-29 15:08:00 -060098#ifdef PNG_USER_PRIVATEBUILD
Glenn Randers-Pehrson228c6372004-11-29 12:54:19 -060099 VALUE "PrivateBuild", PNG_USER_PRIVATEBUILD "\000"
100#endif /* PNG_USER_PRIVATEBUILD */
Glenn Randers-Pehrson272489d2004-08-04 06:34:52 -0500101 VALUE "ProductName", "LibPNG\000"
102 VALUE "ProductVersion", "1\000"
Glenn Randers-Pehrson5dd2b8e2004-11-24 07:50:16 -0600103#ifdef PNG_LIBPNG_SPECIALBUILD
104 VALUE "SpecialBuild", PNG_LIBPNG_SPECIALBUILD "\000"
105#endif /* PNG_LIBPNG_SPECIALBUILD */
Glenn Randers-Pehrson272489d2004-08-04 06:34:52 -0500106 END
107 END
108 BLOCK "VarFileInfo"
109 BEGIN
110 VALUE "Translation", 0x0409, 0x04E4
111 END
112END