1996-08-23 12:48:14 -03:00
|
|
|
|
// Resource script for Python core DLL.
|
|
|
|
|
// Currently only holds version information.
|
|
|
|
|
//
|
|
|
|
|
#include "winver.h"
|
|
|
|
|
|
|
|
|
|
#define MS_WINDOWS
|
|
|
|
|
#include "modsupport.h"
|
|
|
|
|
#include "patchlevel.h"
|
|
|
|
|
|
2001-02-09 03:02:22 -04:00
|
|
|
|
/* Across releases, change:
|
|
|
|
|
* MS_DLL_ID if the minor version number changes.
|
|
|
|
|
* PYTHON_DLL_NAME ditto.
|
2001-03-11 00:30:35 -04:00
|
|
|
|
* MS_DLL_ID must match PY_VERSION in the Windows install script.
|
2001-02-09 03:02:22 -04:00
|
|
|
|
*/
|
2003-07-30 23:06:22 -03:00
|
|
|
|
#define MS_DLL_ID "2.4"
|
1996-08-23 12:48:14 -03:00
|
|
|
|
|
1996-08-23 15:42:39 -03:00
|
|
|
|
#ifndef PYTHON_DLL_NAME
|
2003-07-30 23:06:22 -03:00
|
|
|
|
#define PYTHON_DLL_NAME "python24.dll"
|
1996-08-23 15:42:39 -03:00
|
|
|
|
#endif
|
|
|
|
|
|
2001-02-09 03:02:22 -04:00
|
|
|
|
/* Nothing below this should need to be changed except for copyright
|
2002-10-11 15:25:52 -03:00
|
|
|
|
* notices, company name, and FIELD3. Unfortunately, all attempts
|
|
|
|
|
* to get the resource compiler to do arithmetic in macros have
|
|
|
|
|
* failed miserably -- it gives syntax errors, ignores operators,
|
|
|
|
|
* or does stuff that's simply bizarre.
|
2001-02-09 03:02:22 -04:00
|
|
|
|
*/
|
|
|
|
|
|
2002-10-11 15:25:52 -03:00
|
|
|
|
|
|
|
|
|
/* This is what we'd like FIELD3 to be:
|
|
|
|
|
*
|
|
|
|
|
* #define FIELD3 (PY_MICRO_VERSION*1000 + PY_RELEASE_LEVEL*10 + PY_RELEASE_SERIAL)
|
|
|
|
|
*
|
|
|
|
|
* but that neither gives an error nor comes anywhere close to working. The
|
|
|
|
|
* following comment and #define are output from PCbuild\field3.py:
|
|
|
|
|
*
|
2003-07-30 23:06:22 -03:00
|
|
|
|
* For 2.4a0,
|
2002-10-11 15:25:52 -03:00
|
|
|
|
* PY_MICRO_VERSION = 0
|
2003-07-30 23:06:22 -03:00
|
|
|
|
* PY_RELEASE_LEVEL = 'alpha' = 0xa
|
2003-07-28 21:25:20 -03:00
|
|
|
|
* PY_RELEASE_SERIAL = 0
|
2002-10-11 15:25:52 -03:00
|
|
|
|
*
|
2003-07-30 23:06:22 -03:00
|
|
|
|
* and 0*1000 + 10*10 + 0 = 100
|
2002-10-11 15:25:52 -03:00
|
|
|
|
*/
|
2003-07-30 23:06:22 -03:00
|
|
|
|
#define FIELD3 100
|
2002-10-11 15:25:52 -03:00
|
|
|
|
|
2001-02-09 03:02:22 -04:00
|
|
|
|
/* e.g., 2.1a2
|
|
|
|
|
* PY_VERSION comes from patchevel.h
|
|
|
|
|
*/
|
|
|
|
|
#define PYTHON_VERSION PY_VERSION "\0"
|
|
|
|
|
|
|
|
|
|
/* 64-bit version number as comma-separated list of 4 16-bit ints */
|
|
|
|
|
#if PY_MICRO_VERSION > 64
|
|
|
|
|
# error "PY_MICRO_VERSION > 64"
|
|
|
|
|
#endif
|
|
|
|
|
#if PY_RELEASE_LEVEL > 99
|
|
|
|
|
# error "PY_RELEASE_LEVEL > 99"
|
|
|
|
|
#endif
|
|
|
|
|
#if PY_RELEASE_SERIAL > 9
|
|
|
|
|
# error "PY_RELEASE_SERIAL > 9"
|
|
|
|
|
#endif
|
|
|
|
|
#define PYVERSION64 PY_MAJOR_VERSION, PY_MINOR_VERSION, FIELD3, PYTHON_API_VERSION
|
|
|
|
|
|
1997-09-29 20:36:17 -03:00
|
|
|
|
// String Tables
|
|
|
|
|
STRINGTABLE DISCARDABLE
|
|
|
|
|
BEGIN
|
2001-02-09 03:02:22 -04:00
|
|
|
|
1000, MS_DLL_ID
|
1997-09-29 20:36:17 -03:00
|
|
|
|
END
|
|
|
|
|
|
1996-08-23 12:48:14 -03:00
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
//
|
|
|
|
|
// Version
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
VS_VERSION_INFO VERSIONINFO
|
2001-02-09 03:02:22 -04:00
|
|
|
|
FILEVERSION PYVERSION64
|
|
|
|
|
PRODUCTVERSION PYVERSION64
|
1996-08-23 12:48:14 -03:00
|
|
|
|
FILEFLAGSMASK 0x3fL
|
|
|
|
|
#ifdef _DEBUG
|
|
|
|
|
FILEFLAGS 0x1L
|
|
|
|
|
#else
|
|
|
|
|
FILEFLAGS 0x0L
|
|
|
|
|
#endif
|
|
|
|
|
FILEOS 0x40004L
|
|
|
|
|
FILETYPE 0x1L
|
|
|
|
|
FILESUBTYPE 0x0L
|
|
|
|
|
BEGIN
|
|
|
|
|
BLOCK "StringFileInfo"
|
|
|
|
|
BEGIN
|
|
|
|
|
BLOCK "000004b0"
|
|
|
|
|
BEGIN
|
2001-08-18 21:56:28 -03:00
|
|
|
|
VALUE "CompanyName", "PythonLabs at Zope Corporation\0"
|
1996-08-23 12:48:14 -03:00
|
|
|
|
VALUE "FileDescription", "Python Core\0"
|
|
|
|
|
VALUE "FileVersion", PYTHON_VERSION
|
|
|
|
|
VALUE "InternalName", "Python DLL\0"
|
2003-01-02 13:09:19 -04:00
|
|
|
|
VALUE "LegalCopyright", "Copyright <20> 2001-2003 Python Software Foundation. Copyright <20> 2000 BeOpen.com. Copyright <20> 1995-2001 CNRI. Copyright <20> 1991-1995 SMC.\0"
|
1996-08-23 12:48:14 -03:00
|
|
|
|
VALUE "OriginalFilename", PYTHON_DLL_NAME "\0"
|
|
|
|
|
VALUE "ProductName", "Python\0"
|
|
|
|
|
VALUE "ProductVersion", PYTHON_VERSION
|
|
|
|
|
END
|
|
|
|
|
END
|
|
|
|
|
BLOCK "VarFileInfo"
|
|
|
|
|
BEGIN
|
|
|
|
|
VALUE "Translation", 0x0, 1200
|
|
|
|
|
END
|
|
|
|
|
END
|