Glenn Randers-Pehrson | 104622b | 2000-05-29 08:58:03 -0500 | [diff] [blame] | 1 | #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-Pehrson | d436672 | 2000-06-04 14:29:29 -0500 | [diff] [blame] | 11 | #if defined(DLLFNAME_POSTFIX) && !defined(PRIVATEBUILD) && !defined(SPECIALBUILD) |
| 12 | # error PRIVATEBUILD or SPECIALBUILD must be defined as a string describing the type of change brought to the standard library |
| 13 | #endif /* defined(DLLFNAME_POSTFIX)... */ |
| 14 | |
Glenn Randers-Pehrson | 1394480 | 2000-06-24 07:42:42 -0500 | [diff] [blame] | 15 | #if !defined(DLLFNAME_POSTFIX) && defined(PNG_USE_PNGVCRD) |
| 16 | # if defined(PNG_DEBUG) && (PNG_DEBUG > 0) |
| 17 | # define DLLFNAME_POSTFIX "B" |
| 18 | # else |
| 19 | # define DLLFNAME_POSTFIX "A" |
| 20 | # endif /* !defined(DLLFNAME_POSTFIX)... */ |
Glenn Randers-Pehrson | 5e5c1e1 | 2000-11-10 12:26:19 -0600 | [diff] [blame] | 21 | # if !defined(SPECIALBUILD) |
| 22 | # define SPECIALBUILD "Use MMX instructions" |
| 23 | # endif /* SPECIALBUILD */ |
Glenn Randers-Pehrson | 1394480 | 2000-06-24 07:42:42 -0500 | [diff] [blame] | 24 | #endif |
| 25 | |
Glenn Randers-Pehrson | 104622b | 2000-05-29 08:58:03 -0500 | [diff] [blame] | 26 | #if defined(PNG_DEBUG) && (PNG_DEBUG > 0) |
Glenn Randers-Pehrson | d436672 | 2000-06-04 14:29:29 -0500 | [diff] [blame] | 27 | # define VS_DEBUG VS_FF_DEBUG |
| 28 | # ifndef DLLFNAME_POSTFIX |
| 29 | # define DLLFNAME_POSTFIX "D" |
| 30 | # endif /* DLLFNAME_POSTFIX */ |
| 31 | # ifndef COMMENTS |
| 32 | # define COMMENTS "PNG_DEBUG=" QUOTE(PNG_DEBUG) |
| 33 | # endif /* COMMENTS */ |
Glenn Randers-Pehrson | 104622b | 2000-05-29 08:58:03 -0500 | [diff] [blame] | 34 | #else |
Glenn Randers-Pehrson | d436672 | 2000-06-04 14:29:29 -0500 | [diff] [blame] | 35 | # define VS_DEBUG 0 |
Glenn Randers-Pehrson | 1394480 | 2000-06-24 07:42:42 -0500 | [diff] [blame] | 36 | # ifndef DLLFNAME_POSTFIX |
| 37 | # define DLLFNAME_POSTFIX |
| 38 | # endif /* DLLFNAME_POSTFIX */ |
Glenn Randers-Pehrson | 104622b | 2000-05-29 08:58:03 -0500 | [diff] [blame] | 39 | #endif /* defined(DEBUG)... */ |
| 40 | |
| 41 | #ifdef PRIVATEBUILD |
Glenn Randers-Pehrson | d436672 | 2000-06-04 14:29:29 -0500 | [diff] [blame] | 42 | # define VS_PRIVATEBUILD VS_FF_PRIVATEBUILD |
Glenn Randers-Pehrson | 104622b | 2000-05-29 08:58:03 -0500 | [diff] [blame] | 43 | #else |
Glenn Randers-Pehrson | d436672 | 2000-06-04 14:29:29 -0500 | [diff] [blame] | 44 | # define VS_PRIVATEBUILD 0 |
Glenn Randers-Pehrson | 104622b | 2000-05-29 08:58:03 -0500 | [diff] [blame] | 45 | #endif /* PRIVATEBUILD */ |
| 46 | |
| 47 | #ifdef SPECIALBUILD |
Glenn Randers-Pehrson | d436672 | 2000-06-04 14:29:29 -0500 | [diff] [blame] | 48 | # define VS_SPECIALBUILD VS_FF_SPECIALBUILD |
Glenn Randers-Pehrson | 104622b | 2000-05-29 08:58:03 -0500 | [diff] [blame] | 49 | #else |
Glenn Randers-Pehrson | d436672 | 2000-06-04 14:29:29 -0500 | [diff] [blame] | 50 | # define VS_SPECIALBUILD 0 |
Glenn Randers-Pehrson | 104622b | 2000-05-29 08:58:03 -0500 | [diff] [blame] | 51 | #endif /* SPECIALBUILD */ |
| 52 | |
Glenn Randers-Pehrson | d56aca7 | 2000-11-23 11:51:42 -0600 | [diff] [blame] | 53 | #if ((PNG_LIBPNG_BUILD_TYPE & PNG_LIBPNG_BUILD_TYPEMASK) != \ |
| 54 | PNG_LIBPNG_BUILD_STABLE) |
| 55 | # define VS_PRERELEASE VS_FF_PRERELEASE |
| 56 | # define VS_PATCHED 0 |
Glenn Randers-Pehrson | fbbb5ec | 2001-01-15 22:01:20 -0600 | [diff] [blame] | 57 | #else |
| 58 | # define VS_PRERELEASE 0 |
Glenn Randers-Pehrson | d56aca7 | 2000-11-23 11:51:42 -0600 | [diff] [blame] | 59 | # if (PNG_LIBPNG_BUILD_TYPE & PNG_LIBPNG_BUILD_PATCHED) |
| 60 | # define VS_PATCHED VS_FF_PATCHED |
| 61 | # else |
| 62 | # define VS_PATCHED 0 |
| 63 | # endif |
| 64 | #endif |
Glenn Randers-Pehrson | fbbb5ec | 2001-01-15 22:01:20 -0600 | [diff] [blame] | 65 | |
Glenn Randers-Pehrson | 104622b | 2000-05-29 08:58:03 -0500 | [diff] [blame] | 66 | VS_VERSION_INFO VERSIONINFO |
Glenn Randers-Pehrson | d436672 | 2000-06-04 14:29:29 -0500 | [diff] [blame] | 67 | FILEVERSION PNG_LIBPNG_VER_MAJOR, PNG_LIBPNG_VER_MINOR, PNG_LIBPNG_VER_RELEASE, PNG_LIBPNG_VER_BUILD |
| 68 | PRODUCTVERSION PNG_LIBPNG_VER_MAJOR, PNG_LIBPNG_VER_MINOR, PNG_LIBPNG_VER_RELEASE, PNG_LIBPNG_VER_BUILD |
| 69 | FILEFLAGSMASK VS_FFI_FILEFLAGSMASK |
Glenn Randers-Pehrson | fbbb5ec | 2001-01-15 22:01:20 -0600 | [diff] [blame] | 70 | FILEFLAGS VS_DEBUG | VS_PRIVATEBUILD | VS_SPECIALBUILD | VS_PRERELEASE | VS_PATCHED |
Glenn Randers-Pehrson | d436672 | 2000-06-04 14:29:29 -0500 | [diff] [blame] | 71 | FILEOS VOS__WINDOWS32 |
| 72 | FILETYPE VFT_DLL |
Glenn Randers-Pehrson | fbbb5ec | 2001-01-15 22:01:20 -0600 | [diff] [blame] | 73 | FILESUBTYPE VFT2_UNKNOWN |
Glenn Randers-Pehrson | 104622b | 2000-05-29 08:58:03 -0500 | [diff] [blame] | 74 | BEGIN |
Glenn Randers-Pehrson | d436672 | 2000-06-04 14:29:29 -0500 | [diff] [blame] | 75 | BLOCK "StringFileInfo" |
| 76 | BEGIN BLOCK "040904E4" /* Language type = U.S English(0x0409) and Character Set = Windows, Multilingual(0x04E4) */ |
| 77 | BEGIN |
Glenn Randers-Pehrson | 104622b | 2000-05-29 08:58:03 -0500 | [diff] [blame] | 78 | #ifdef COMMENTS |
Glenn Randers-Pehrson | d436672 | 2000-06-04 14:29:29 -0500 | [diff] [blame] | 79 | VALUE "Comments", COMMENTS "\000" |
Glenn Randers-Pehrson | 104622b | 2000-05-29 08:58:03 -0500 | [diff] [blame] | 80 | #endif /* COMMENTS */ |
Glenn Randers-Pehrson | d436672 | 2000-06-04 14:29:29 -0500 | [diff] [blame] | 81 | VALUE "FileDescription", "PNG image compression library\000" |
| 82 | VALUE "FileVersion", PNG_LIBPNG_VER_STRING "\000" |
| 83 | VALUE "InternalName", PNG_LIBPNG_DLLFNAME QUOTE(PNG_LIBPNG_VER_MAJOR) DLLFNAME_POSTFIX " (Windows 32 bit)\000" |
Glenn Randers-Pehrson | db66d44 | 2000-06-23 21:38:16 -0500 | [diff] [blame] | 84 | VALUE "LegalCopyright", "\251 1998-2000 Glenn Randers-Pehrson\000" |
Glenn Randers-Pehrson | d436672 | 2000-06-04 14:29:29 -0500 | [diff] [blame] | 85 | VALUE "OriginalFilename", PNG_LIBPNG_DLLFNAME QUOTE(PNG_LIBPNG_VER_MAJOR) DLLFNAME_POSTFIX ".DLL\000" |
Glenn Randers-Pehrson | 104622b | 2000-05-29 08:58:03 -0500 | [diff] [blame] | 86 | #ifdef PRIVATEBUILD |
Glenn Randers-Pehrson | d436672 | 2000-06-04 14:29:29 -0500 | [diff] [blame] | 87 | VALUE "PrivateBuild", PRIVATEBUILD |
Glenn Randers-Pehrson | 104622b | 2000-05-29 08:58:03 -0500 | [diff] [blame] | 88 | #endif /* PRIVATEBUILD */ |
Glenn Randers-Pehrson | d436672 | 2000-06-04 14:29:29 -0500 | [diff] [blame] | 89 | VALUE "ProductName", "LibPNG\000" |
| 90 | VALUE "ProductVersion", "1\000" |
Glenn Randers-Pehrson | 104622b | 2000-05-29 08:58:03 -0500 | [diff] [blame] | 91 | #ifdef SPECIALBUILD |
Glenn Randers-Pehrson | d436672 | 2000-06-04 14:29:29 -0500 | [diff] [blame] | 92 | VALUE "SpecialBuild", SPECIALBUILD |
Glenn Randers-Pehrson | 104622b | 2000-05-29 08:58:03 -0500 | [diff] [blame] | 93 | #endif /* SPECIALBUILD */ |
Glenn Randers-Pehrson | d436672 | 2000-06-04 14:29:29 -0500 | [diff] [blame] | 94 | END |
| 95 | END |
| 96 | BLOCK "VarFileInfo" |
| 97 | BEGIN |
| 98 | VALUE "Translation", 0x0409, 0x04E4 |
| 99 | END |
Glenn Randers-Pehrson | 104622b | 2000-05-29 08:58:03 -0500 | [diff] [blame] | 100 | END |