blob: 008ad0942f0811e6a8eb8867f1932ef883a3cd29 [file] [log] [blame]
Guido van Rossumcbc66761996-08-23 15:48:14 +00001// 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 Peters909bc1c2001-02-09 07:02:22 +000011/* Across releases, change:
12 * MS_DLL_ID if the minor version number changes.
13 * PYTHON_DLL_NAME ditto.
Tim Petersb2a22f42001-03-11 04:30:35 +000014 * MS_DLL_ID must match PY_VERSION in the Windows install script.
Tim Peters909bc1c2001-02-09 07:02:22 +000015 */
Tim Peters52709e32001-04-18 21:12:25 +000016#define MS_DLL_ID "2.2"
Guido van Rossumcbc66761996-08-23 15:48:14 +000017
Guido van Rossum3db41031996-08-23 18:42:39 +000018#ifndef PYTHON_DLL_NAME
Tim Peters52709e32001-04-18 21:12:25 +000019#define PYTHON_DLL_NAME "python22.dll"
Guido van Rossum3db41031996-08-23 18:42:39 +000020#endif
21
Tim Peters909bc1c2001-02-09 07:02:22 +000022/* 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 Rossumff8c9da1997-09-29 23:36:17 +000044// String Tables
45STRINGTABLE DISCARDABLE
46BEGIN
Tim Peters909bc1c2001-02-09 07:02:22 +000047 1000, MS_DLL_ID
Guido van Rossumff8c9da1997-09-29 23:36:17 +000048END
49
Guido van Rossumcbc66761996-08-23 15:48:14 +000050/////////////////////////////////////////////////////////////////////////////
51//
52// Version
53//
54
55VS_VERSION_INFO VERSIONINFO
Tim Peters909bc1c2001-02-09 07:02:22 +000056 FILEVERSION PYVERSION64
57 PRODUCTVERSION PYVERSION64
Guido van Rossumcbc66761996-08-23 15:48:14 +000058 FILEFLAGSMASK 0x3fL
59#ifdef _DEBUG
60 FILEFLAGS 0x1L
61#else
62 FILEFLAGS 0x0L
63#endif
64 FILEOS 0x40004L
65 FILETYPE 0x1L
66 FILESUBTYPE 0x0L
67BEGIN
68 BLOCK "StringFileInfo"
69 BEGIN
70 BLOCK "000004b0"
71 BEGIN
Tim Peters909bc1c2001-02-09 07:02:22 +000072 VALUE "CompanyName", "Digital Creations 2\0"
Guido van Rossumcbc66761996-08-23 15:48:14 +000073 VALUE "FileDescription", "Python Core\0"
74 VALUE "FileVersion", PYTHON_VERSION
75 VALUE "InternalName", "Python DLL\0"
Tim Peters909bc1c2001-02-09 07:02:22 +000076 VALUE "LegalCopyright", "Copyright © 2000, 2001 Guido van Rossum. Copyright © 2000 BeOpen.com. Copyright © 1995-2000 CNRI. Copyright © 1991-1995 SMC.\0"
Guido van Rossumcbc66761996-08-23 15:48:14 +000077 VALUE "OriginalFilename", PYTHON_DLL_NAME "\0"
Guido van Rossumcbc66761996-08-23 15:48:14 +000078 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
86END