blob: e132837583fdefee30138d7eea992e3ee7ef534f [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//
Guido van Rossumcbc66761996-08-23 15:48:14 +00004#include "winver.h"
5
6#define MS_WINDOWS
7#include "modsupport.h"
8#include "patchlevel.h"
Thomas Heller13dbabe2003-10-10 16:57:45 +00009#ifdef _DEBUG
10# include "pythonnt_rc_d.h"
11#else
12# include "pythonnt_rc.h"
Guido van Rossum3db41031996-08-23 18:42:39 +000013#endif
14
Tim Peters909bc1c2001-02-09 07:02:22 +000015/* 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 Peters909bc1c2001-02-09 07:02:22 +000030#define PYVERSION64 PY_MAJOR_VERSION, PY_MINOR_VERSION, FIELD3, PYTHON_API_VERSION
31
Guido van Rossumff8c9da1997-09-29 23:36:17 +000032// String Tables
33STRINGTABLE DISCARDABLE
34BEGIN
Tim Peters909bc1c2001-02-09 07:02:22 +000035 1000, MS_DLL_ID
Guido van Rossumff8c9da1997-09-29 23:36:17 +000036END
37
Guido van Rossumcbc66761996-08-23 15:48:14 +000038/////////////////////////////////////////////////////////////////////////////
39//
40// Version
41//
42
43VS_VERSION_INFO VERSIONINFO
Tim Peters909bc1c2001-02-09 07:02:22 +000044 FILEVERSION PYVERSION64
45 PRODUCTVERSION PYVERSION64
Guido van Rossumcbc66761996-08-23 15:48:14 +000046 FILEFLAGSMASK 0x3fL
47#ifdef _DEBUG
48 FILEFLAGS 0x1L
49#else
50 FILEFLAGS 0x0L
51#endif
52 FILEOS 0x40004L
53 FILETYPE 0x1L
54 FILESUBTYPE 0x0L
55BEGIN
56 BLOCK "StringFileInfo"
57 BEGIN
58 BLOCK "000004b0"
59 BEGIN
Tim Peters07ce3b72004-05-11 18:14:05 +000060 VALUE "CompanyName", "Python Software Foundation\0"
Guido van Rossumcbc66761996-08-23 15:48:14 +000061 VALUE "FileDescription", "Python Core\0"
62 VALUE "FileVersion", PYTHON_VERSION
63 VALUE "InternalName", "Python DLL\0"
Barry Warsaw659fc422008-03-01 17:45:23 +000064 VALUE "LegalCopyright", "Copyright © 2001-2008 Python Software Foundation. Copyright © 2000 BeOpen.com. Copyright © 1995-2001 CNRI. Copyright © 1991-1995 SMC.\0"
Guido van Rossumcbc66761996-08-23 15:48:14 +000065 VALUE "OriginalFilename", PYTHON_DLL_NAME "\0"
Guido van Rossumcbc66761996-08-23 15:48:14 +000066 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
74END