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 | // |
Guido van Rossum | cbc6676 | 1996-08-23 15:48:14 +0000 | [diff] [blame] | 4 | #include "winver.h" |
| 5 | |
| 6 | #define MS_WINDOWS |
| 7 | #include "modsupport.h" |
| 8 | #include "patchlevel.h" |
Thomas Heller | 13dbabe | 2003-10-10 16:57:45 +0000 | [diff] [blame] | 9 | #ifdef _DEBUG |
| 10 | # include "pythonnt_rc_d.h" |
| 11 | #else |
| 12 | # include "pythonnt_rc.h" |
Guido van Rossum | 3db4103 | 1996-08-23 18:42:39 +0000 | [diff] [blame] | 13 | #endif |
| 14 | |
Tim Peters | 909bc1c | 2001-02-09 07:02:22 +0000 | [diff] [blame] | 15 | /* e.g., 2.1a2 |
| 16 | * PY_VERSION comes from patchevel.h |
| 17 | */ |
| 18 | #define PYTHON_VERSION PY_VERSION "\0" |
| 19 | |
| 20 | /* 64-bit version number as comma-separated list of 4 16-bit ints */ |
| 21 | #if PY_MICRO_VERSION > 64 |
| 22 | # error "PY_MICRO_VERSION > 64" |
| 23 | #endif |
| 24 | #if PY_RELEASE_LEVEL > 99 |
| 25 | # error "PY_RELEASE_LEVEL > 99" |
| 26 | #endif |
| 27 | #if PY_RELEASE_SERIAL > 9 |
| 28 | # error "PY_RELEASE_SERIAL > 9" |
| 29 | #endif |
Tim Peters | 909bc1c | 2001-02-09 07:02:22 +0000 | [diff] [blame] | 30 | #define PYVERSION64 PY_MAJOR_VERSION, PY_MINOR_VERSION, FIELD3, PYTHON_API_VERSION |
| 31 | |
Guido van Rossum | ff8c9da | 1997-09-29 23:36:17 +0000 | [diff] [blame] | 32 | // String Tables |
| 33 | STRINGTABLE DISCARDABLE |
| 34 | BEGIN |
Tim Peters | 909bc1c | 2001-02-09 07:02:22 +0000 | [diff] [blame] | 35 | 1000, MS_DLL_ID |
Guido van Rossum | ff8c9da | 1997-09-29 23:36:17 +0000 | [diff] [blame] | 36 | END |
| 37 | |
Guido van Rossum | cbc6676 | 1996-08-23 15:48:14 +0000 | [diff] [blame] | 38 | ///////////////////////////////////////////////////////////////////////////// |
| 39 | // |
| 40 | // Version |
| 41 | // |
| 42 | |
| 43 | VS_VERSION_INFO VERSIONINFO |
Tim Peters | 909bc1c | 2001-02-09 07:02:22 +0000 | [diff] [blame] | 44 | FILEVERSION PYVERSION64 |
| 45 | PRODUCTVERSION PYVERSION64 |
Guido van Rossum | cbc6676 | 1996-08-23 15:48:14 +0000 | [diff] [blame] | 46 | FILEFLAGSMASK 0x3fL |
| 47 | #ifdef _DEBUG |
| 48 | FILEFLAGS 0x1L |
| 49 | #else |
| 50 | FILEFLAGS 0x0L |
| 51 | #endif |
| 52 | FILEOS 0x40004L |
| 53 | FILETYPE 0x1L |
| 54 | FILESUBTYPE 0x0L |
| 55 | BEGIN |
| 56 | BLOCK "StringFileInfo" |
| 57 | BEGIN |
| 58 | BLOCK "000004b0" |
| 59 | BEGIN |
Tim Peters | 07ce3b7 | 2004-05-11 18:14:05 +0000 | [diff] [blame] | 60 | VALUE "CompanyName", "Python Software Foundation\0" |
Guido van Rossum | cbc6676 | 1996-08-23 15:48:14 +0000 | [diff] [blame] | 61 | VALUE "FileDescription", "Python Core\0" |
| 62 | VALUE "FileVersion", PYTHON_VERSION |
| 63 | VALUE "InternalName", "Python DLL\0" |
Barry Warsaw | 659fc42 | 2008-03-01 17:45:23 +0000 | [diff] [blame] | 64 | VALUE "LegalCopyright", "Copyright © 2001-2008 Python Software Foundation. Copyright © 2000 BeOpen.com. Copyright © 1995-2001 CNRI. Copyright © 1991-1995 SMC.\0" |
Guido van Rossum | cbc6676 | 1996-08-23 15:48:14 +0000 | [diff] [blame] | 65 | VALUE "OriginalFilename", PYTHON_DLL_NAME "\0" |
Guido van Rossum | cbc6676 | 1996-08-23 15:48:14 +0000 | [diff] [blame] | 66 | VALUE "ProductName", "Python\0" |
| 67 | VALUE "ProductVersion", PYTHON_VERSION |
| 68 | END |
| 69 | END |
| 70 | BLOCK "VarFileInfo" |
| 71 | BEGIN |
| 72 | VALUE "Translation", 0x0, 1200 |
| 73 | END |
| 74 | END |