Guido van Rossum | cbc6676 | 1996-08-23 15:48:14 +0000 | [diff] [blame] | 1 | // Resource script for Python core DLL. |
| 2 | // Currently only holds version information. |
| 3 | // |
| 4 | #include "ver.h" |
| 5 | #include "winver.h" |
| 6 | |
| 7 | #define MS_WINDOWS |
| 8 | #include "modsupport.h" |
| 9 | #include "patchlevel.h" |
| 10 | |
Tim Peters | 909bc1c | 2001-02-09 07:02:22 +0000 | [diff] [blame] | 11 | /* Across releases, change: |
| 12 | * MS_DLL_ID if the minor version number changes. |
| 13 | * PYTHON_DLL_NAME ditto. |
Tim Peters | b2a22f4 | 2001-03-11 04:30:35 +0000 | [diff] [blame] | 14 | * MS_DLL_ID must match PY_VERSION in the Windows install script. |
Tim Peters | 909bc1c | 2001-02-09 07:02:22 +0000 | [diff] [blame] | 15 | */ |
Tim Peters | 52709e3 | 2001-04-18 21:12:25 +0000 | [diff] [blame] | 16 | #define MS_DLL_ID "2.2" |
Guido van Rossum | cbc6676 | 1996-08-23 15:48:14 +0000 | [diff] [blame] | 17 | |
Guido van Rossum | 3db4103 | 1996-08-23 18:42:39 +0000 | [diff] [blame] | 18 | #ifndef PYTHON_DLL_NAME |
Tim Peters | 52709e3 | 2001-04-18 21:12:25 +0000 | [diff] [blame] | 19 | #define PYTHON_DLL_NAME "python22.dll" |
Guido van Rossum | 3db4103 | 1996-08-23 18:42:39 +0000 | [diff] [blame] | 20 | #endif |
| 21 | |
Tim Peters | 909bc1c | 2001-02-09 07:02:22 +0000 | [diff] [blame] | 22 | /* Nothing below this should need to be changed except for copyright |
| 23 | * notices and company name. |
| 24 | */ |
| 25 | |
| 26 | /* e.g., 2.1a2 |
| 27 | * PY_VERSION comes from patchevel.h |
| 28 | */ |
| 29 | #define PYTHON_VERSION PY_VERSION "\0" |
| 30 | |
| 31 | /* 64-bit version number as comma-separated list of 4 16-bit ints */ |
| 32 | #if PY_MICRO_VERSION > 64 |
| 33 | # error "PY_MICRO_VERSION > 64" |
| 34 | #endif |
| 35 | #if PY_RELEASE_LEVEL > 99 |
| 36 | # error "PY_RELEASE_LEVEL > 99" |
| 37 | #endif |
| 38 | #if PY_RELEASE_SERIAL > 9 |
| 39 | # error "PY_RELEASE_SERIAL > 9" |
| 40 | #endif |
| 41 | #define FIELD3 (PY_MICRO_VERSION*1000 + PY_RELEASE_LEVEL*10 + PY_RELEASE_SERIAL) |
| 42 | #define PYVERSION64 PY_MAJOR_VERSION, PY_MINOR_VERSION, FIELD3, PYTHON_API_VERSION |
| 43 | |
Guido van Rossum | ff8c9da | 1997-09-29 23:36:17 +0000 | [diff] [blame] | 44 | // String Tables |
| 45 | STRINGTABLE DISCARDABLE |
| 46 | BEGIN |
Tim Peters | 909bc1c | 2001-02-09 07:02:22 +0000 | [diff] [blame] | 47 | 1000, MS_DLL_ID |
Guido van Rossum | ff8c9da | 1997-09-29 23:36:17 +0000 | [diff] [blame] | 48 | END |
| 49 | |
Guido van Rossum | cbc6676 | 1996-08-23 15:48:14 +0000 | [diff] [blame] | 50 | ///////////////////////////////////////////////////////////////////////////// |
| 51 | // |
| 52 | // Version |
| 53 | // |
| 54 | |
| 55 | VS_VERSION_INFO VERSIONINFO |
Tim Peters | 909bc1c | 2001-02-09 07:02:22 +0000 | [diff] [blame] | 56 | FILEVERSION PYVERSION64 |
| 57 | PRODUCTVERSION PYVERSION64 |
Guido van Rossum | cbc6676 | 1996-08-23 15:48:14 +0000 | [diff] [blame] | 58 | FILEFLAGSMASK 0x3fL |
| 59 | #ifdef _DEBUG |
| 60 | FILEFLAGS 0x1L |
| 61 | #else |
| 62 | FILEFLAGS 0x0L |
| 63 | #endif |
| 64 | FILEOS 0x40004L |
| 65 | FILETYPE 0x1L |
| 66 | FILESUBTYPE 0x0L |
| 67 | BEGIN |
| 68 | BLOCK "StringFileInfo" |
| 69 | BEGIN |
| 70 | BLOCK "000004b0" |
| 71 | BEGIN |
Tim Peters | 909bc1c | 2001-02-09 07:02:22 +0000 | [diff] [blame] | 72 | VALUE "CompanyName", "Digital Creations 2\0" |
Guido van Rossum | cbc6676 | 1996-08-23 15:48:14 +0000 | [diff] [blame] | 73 | VALUE "FileDescription", "Python Core\0" |
| 74 | VALUE "FileVersion", PYTHON_VERSION |
| 75 | VALUE "InternalName", "Python DLL\0" |
Tim Peters | 909bc1c | 2001-02-09 07:02:22 +0000 | [diff] [blame] | 76 | VALUE "LegalCopyright", "Copyright © 2000, 2001 Guido van Rossum. Copyright © 2000 BeOpen.com. Copyright © 1995-2000 CNRI. Copyright © 1991-1995 SMC.\0" |
Guido van Rossum | cbc6676 | 1996-08-23 15:48:14 +0000 | [diff] [blame] | 77 | VALUE "OriginalFilename", PYTHON_DLL_NAME "\0" |
Guido van Rossum | cbc6676 | 1996-08-23 15:48:14 +0000 | [diff] [blame] | 78 | VALUE "ProductName", "Python\0" |
| 79 | VALUE "ProductVersion", PYTHON_VERSION |
| 80 | END |
| 81 | END |
| 82 | BLOCK "VarFileInfo" |
| 83 | BEGIN |
| 84 | VALUE "Translation", 0x0, 1200 |
| 85 | END |
| 86 | END |