Mercurial > cpython-lru_cache-weakref
annotate PC/python_nt.rc @ 26615:02785248e00a legacy-trunk
Typo fix.
| author | Greg Ward <gward@python.net> |
|---|---|
| date | Thu, 12 Dec 2002 17:35:45 +0000 |
| parents | 3a3d5aec7a6a |
| children | d59b7cbceac1 |
| rev | line source |
|---|---|
|
4123
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
1 // Resource script for Python core DLL. |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
2 // Currently only holds version information. |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
3 // |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
4 #include "winver.h" |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
5 |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
6 #define MS_WINDOWS |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
7 #include "modsupport.h" |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
8 #include "patchlevel.h" |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
9 |
|
16487
771dbb155575
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents:
15971
diff
changeset
|
10 /* Across releases, change: |
|
771dbb155575
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents:
15971
diff
changeset
|
11 * MS_DLL_ID if the minor version number changes. |
|
771dbb155575
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents:
15971
diff
changeset
|
12 * PYTHON_DLL_NAME ditto. |
|
17026
f4146ca0f292
Magic strings in both Python and the Wise installer define the registry key
Tim Peters <tim.peters@gmail.com>
parents:
16487
diff
changeset
|
13 * MS_DLL_ID must match PY_VERSION in the Windows install script. |
|
16487
771dbb155575
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents:
15971
diff
changeset
|
14 */ |
|
21525
268b57d9daed
Windows build: close out 2.2, prep for 2.3.
Tim Peters <tim.peters@gmail.com>
parents:
19375
diff
changeset
|
15 #define MS_DLL_ID "2.3" |
|
4123
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
16 |
|
4127
a7a9d83505c4
Use MS_DLL_ID and similar changes
Guido van Rossum <guido@python.org>
parents:
4123
diff
changeset
|
17 #ifndef PYTHON_DLL_NAME |
|
25732
c59ce513def6
Repair the DLL name -- this has to match the major.minor version numbers.
Tim Peters <tim.peters@gmail.com>
parents:
21796
diff
changeset
|
18 #define PYTHON_DLL_NAME "python23.dll" |
|
4127
a7a9d83505c4
Use MS_DLL_ID and similar changes
Guido van Rossum <guido@python.org>
parents:
4123
diff
changeset
|
19 #endif |
|
a7a9d83505c4
Use MS_DLL_ID and similar changes
Guido van Rossum <guido@python.org>
parents:
4123
diff
changeset
|
20 |
|
16487
771dbb155575
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents:
15971
diff
changeset
|
21 /* Nothing below this should need to be changed except for copyright |
|
25733
3a3d5aec7a6a
The MS resource compiler simply cannot be convinced to do arithmetic
Tim Peters <tim.peters@gmail.com>
parents:
25732
diff
changeset
|
22 * notices, company name, and FIELD3. Unfortunately, all attempts |
|
3a3d5aec7a6a
The MS resource compiler simply cannot be convinced to do arithmetic
Tim Peters <tim.peters@gmail.com>
parents:
25732
diff
changeset
|
23 * to get the resource compiler to do arithmetic in macros have |
|
3a3d5aec7a6a
The MS resource compiler simply cannot be convinced to do arithmetic
Tim Peters <tim.peters@gmail.com>
parents:
25732
diff
changeset
|
24 * failed miserably -- it gives syntax errors, ignores operators, |
|
3a3d5aec7a6a
The MS resource compiler simply cannot be convinced to do arithmetic
Tim Peters <tim.peters@gmail.com>
parents:
25732
diff
changeset
|
25 * or does stuff that's simply bizarre. |
|
16487
771dbb155575
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents:
15971
diff
changeset
|
26 */ |
|
771dbb155575
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents:
15971
diff
changeset
|
27 |
|
25733
3a3d5aec7a6a
The MS resource compiler simply cannot be convinced to do arithmetic
Tim Peters <tim.peters@gmail.com>
parents:
25732
diff
changeset
|
28 |
|
3a3d5aec7a6a
The MS resource compiler simply cannot be convinced to do arithmetic
Tim Peters <tim.peters@gmail.com>
parents:
25732
diff
changeset
|
29 /* This is what we'd like FIELD3 to be: |
|
3a3d5aec7a6a
The MS resource compiler simply cannot be convinced to do arithmetic
Tim Peters <tim.peters@gmail.com>
parents:
25732
diff
changeset
|
30 * |
|
3a3d5aec7a6a
The MS resource compiler simply cannot be convinced to do arithmetic
Tim Peters <tim.peters@gmail.com>
parents:
25732
diff
changeset
|
31 * #define FIELD3 (PY_MICRO_VERSION*1000 + PY_RELEASE_LEVEL*10 + PY_RELEASE_SERIAL) |
|
3a3d5aec7a6a
The MS resource compiler simply cannot be convinced to do arithmetic
Tim Peters <tim.peters@gmail.com>
parents:
25732
diff
changeset
|
32 * |
|
3a3d5aec7a6a
The MS resource compiler simply cannot be convinced to do arithmetic
Tim Peters <tim.peters@gmail.com>
parents:
25732
diff
changeset
|
33 * but that neither gives an error nor comes anywhere close to working. The |
|
3a3d5aec7a6a
The MS resource compiler simply cannot be convinced to do arithmetic
Tim Peters <tim.peters@gmail.com>
parents:
25732
diff
changeset
|
34 * following comment and #define are output from PCbuild\field3.py: |
|
3a3d5aec7a6a
The MS resource compiler simply cannot be convinced to do arithmetic
Tim Peters <tim.peters@gmail.com>
parents:
25732
diff
changeset
|
35 * |
|
3a3d5aec7a6a
The MS resource compiler simply cannot be convinced to do arithmetic
Tim Peters <tim.peters@gmail.com>
parents:
25732
diff
changeset
|
36 * For 2.3a0, |
|
3a3d5aec7a6a
The MS resource compiler simply cannot be convinced to do arithmetic
Tim Peters <tim.peters@gmail.com>
parents:
25732
diff
changeset
|
37 * PY_MICRO_VERSION = 0 |
|
3a3d5aec7a6a
The MS resource compiler simply cannot be convinced to do arithmetic
Tim Peters <tim.peters@gmail.com>
parents:
25732
diff
changeset
|
38 * PY_RELEASE_LEVEL = 'alpha' = 0xa |
|
3a3d5aec7a6a
The MS resource compiler simply cannot be convinced to do arithmetic
Tim Peters <tim.peters@gmail.com>
parents:
25732
diff
changeset
|
39 * PY_RELEASE_SERIAL = 1 |
|
3a3d5aec7a6a
The MS resource compiler simply cannot be convinced to do arithmetic
Tim Peters <tim.peters@gmail.com>
parents:
25732
diff
changeset
|
40 * |
|
3a3d5aec7a6a
The MS resource compiler simply cannot be convinced to do arithmetic
Tim Peters <tim.peters@gmail.com>
parents:
25732
diff
changeset
|
41 * and 0*1000 + 10*10 + 1 = 101 |
|
3a3d5aec7a6a
The MS resource compiler simply cannot be convinced to do arithmetic
Tim Peters <tim.peters@gmail.com>
parents:
25732
diff
changeset
|
42 */ |
|
3a3d5aec7a6a
The MS resource compiler simply cannot be convinced to do arithmetic
Tim Peters <tim.peters@gmail.com>
parents:
25732
diff
changeset
|
43 #define FIELD3 101 |
|
3a3d5aec7a6a
The MS resource compiler simply cannot be convinced to do arithmetic
Tim Peters <tim.peters@gmail.com>
parents:
25732
diff
changeset
|
44 |
|
16487
771dbb155575
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents:
15971
diff
changeset
|
45 /* e.g., 2.1a2 |
|
771dbb155575
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents:
15971
diff
changeset
|
46 * PY_VERSION comes from patchevel.h |
|
771dbb155575
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents:
15971
diff
changeset
|
47 */ |
|
771dbb155575
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents:
15971
diff
changeset
|
48 #define PYTHON_VERSION PY_VERSION "\0" |
|
771dbb155575
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents:
15971
diff
changeset
|
49 |
|
771dbb155575
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents:
15971
diff
changeset
|
50 /* 64-bit version number as comma-separated list of 4 16-bit ints */ |
|
771dbb155575
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents:
15971
diff
changeset
|
51 #if PY_MICRO_VERSION > 64 |
|
771dbb155575
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents:
15971
diff
changeset
|
52 # error "PY_MICRO_VERSION > 64" |
|
771dbb155575
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents:
15971
diff
changeset
|
53 #endif |
|
771dbb155575
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents:
15971
diff
changeset
|
54 #if PY_RELEASE_LEVEL > 99 |
|
771dbb155575
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents:
15971
diff
changeset
|
55 # error "PY_RELEASE_LEVEL > 99" |
|
771dbb155575
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents:
15971
diff
changeset
|
56 #endif |
|
771dbb155575
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents:
15971
diff
changeset
|
57 #if PY_RELEASE_SERIAL > 9 |
|
771dbb155575
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents:
15971
diff
changeset
|
58 # error "PY_RELEASE_SERIAL > 9" |
|
771dbb155575
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents:
15971
diff
changeset
|
59 #endif |
|
771dbb155575
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents:
15971
diff
changeset
|
60 #define PYVERSION64 PY_MAJOR_VERSION, PY_MINOR_VERSION, FIELD3, PYTHON_API_VERSION |
|
771dbb155575
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents:
15971
diff
changeset
|
61 |
|
6353
666accd66878
Bump version and store DLL version in a string variable (for branding).
Guido van Rossum <guido@python.org>
parents:
4127
diff
changeset
|
62 // String Tables |
|
666accd66878
Bump version and store DLL version in a string variable (for branding).
Guido van Rossum <guido@python.org>
parents:
4127
diff
changeset
|
63 STRINGTABLE DISCARDABLE |
|
666accd66878
Bump version and store DLL version in a string variable (for branding).
Guido van Rossum <guido@python.org>
parents:
4127
diff
changeset
|
64 BEGIN |
|
16487
771dbb155575
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents:
15971
diff
changeset
|
65 1000, MS_DLL_ID |
|
6353
666accd66878
Bump version and store DLL version in a string variable (for branding).
Guido van Rossum <guido@python.org>
parents:
4127
diff
changeset
|
66 END |
|
666accd66878
Bump version and store DLL version in a string variable (for branding).
Guido van Rossum <guido@python.org>
parents:
4127
diff
changeset
|
67 |
|
4123
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
68 ///////////////////////////////////////////////////////////////////////////// |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
69 // |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
70 // Version |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
71 // |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
72 |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
73 VS_VERSION_INFO VERSIONINFO |
|
16487
771dbb155575
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents:
15971
diff
changeset
|
74 FILEVERSION PYVERSION64 |
|
771dbb155575
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents:
15971
diff
changeset
|
75 PRODUCTVERSION PYVERSION64 |
|
4123
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
76 FILEFLAGSMASK 0x3fL |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
77 #ifdef _DEBUG |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
78 FILEFLAGS 0x1L |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
79 #else |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
80 FILEFLAGS 0x0L |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
81 #endif |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
82 FILEOS 0x40004L |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
83 FILETYPE 0x1L |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
84 FILESUBTYPE 0x0L |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
85 BEGIN |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
86 BLOCK "StringFileInfo" |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
87 BEGIN |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
88 BLOCK "000004b0" |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
89 BEGIN |
|
19375
fd119899045c
Windows fiddling for 2.2a2: bump build number; update copyright and
Tim Peters <tim.peters@gmail.com>
parents:
17588
diff
changeset
|
90 VALUE "CompanyName", "PythonLabs at Zope Corporation\0" |
|
4123
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
91 VALUE "FileDescription", "Python Core\0" |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
92 VALUE "FileVersion", PYTHON_VERSION |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
93 VALUE "InternalName", "Python DLL\0" |
|
21525
268b57d9daed
Windows build: close out 2.2, prep for 2.3.
Tim Peters <tim.peters@gmail.com>
parents:
19375
diff
changeset
|
94 VALUE "LegalCopyright", "Copyright © 2001-2002 Python Software Foundation. Copyright © 2000 BeOpen.com. Copyright © 1995-2001 CNRI. Copyright © 1991-1995 SMC.\0" |
|
4123
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
95 VALUE "OriginalFilename", PYTHON_DLL_NAME "\0" |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
96 VALUE "ProductName", "Python\0" |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
97 VALUE "ProductVersion", PYTHON_VERSION |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
98 END |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
99 END |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
100 BLOCK "VarFileInfo" |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
101 BEGIN |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
102 VALUE "Translation", 0x0, 1200 |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
103 END |
|
71b43d4b7cd0
Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
104 END |
