blob: 85d7466136e5ec4fe628b4752bc8c3ae417653cd [file] [log] [blame]
Jack Jansend2d2b201999-01-29 16:15:52 +00001/*
2** Create the 'vers' version resource from information in the
3** Python include files.
4*/
5
6#include "Types.r"
7
8#include "patchlevel.h"
9
10/* Invent the Mac version from the Python version */
11#if PY_RELEASE_LEVEL == PY_RELEASE_LEVEL_ALPHA
12#define V_RELEASE alpha
13#endif
14#if PY_RELEASE_LEVEL == PY_RELEASE_LEVEL_BETA
15#define V_RELEASE beta
16#endif
17#ifndef V_RELEASE
18#define V_RELEASE final
19#endif
20
21resource 'vers' (1) {
22 PY_MAJOR_VERSION,
23 (PY_MINOR_VERSION<<4) | (PY_MICRO_VERSION),
24 V_RELEASE,
25 PY_RELEASE_SERIAL,
26 0,
27 PY_VERSION,
Jack Jansen26e51e12001-04-25 22:08:12 +000028 $$Format("%s, © Python Software Foundation %s",
Jack Jansend2d2b201999-01-29 16:15:52 +000029 PY_VERSION, $$Date)
30};