Jack Jansen | d2d2b20 | 1999-01-29 16:15:52 +0000 | [diff] [blame] | 1 | /* |
| 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 | |
| 21 | resource '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, |
| 28 | $$Format("%s, © Stichting Mathematisch Centrum %s", |
| 29 | PY_VERSION, $$Date) |
| 30 | }; |