From 56bf6f82021a842d3619e76a9c9d67f54b56fe6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Thu, 21 Jun 2012 16:27:58 +0200 Subject: [PATCH] Add version resource. --- PC/pylauncher.rc | 52 ++++++++++++++++++++++++++++++++++++-- PCbuild/pylauncher.vcxproj | 5 ++++ 2 files changed, 55 insertions(+), 2 deletions(-) diff --git a/PC/pylauncher.rc b/PC/pylauncher.rc index fadc5df77a7..df5824a6635 100644 --- a/PC/pylauncher.rc +++ b/PC/pylauncher.rc @@ -1,3 +1,51 @@ +#include + +#define MS_WINDOWS +#include "..\Include\modsupport.h" +#include "..\Include\patchlevel.h" +#ifdef _DEBUG +# include "pythonnt_rc_d.h" +#else +# include "pythonnt_rc.h" +#endif + +#define PYTHON_VERSION PY_VERSION "\0" +#define PYVERSION64 PY_MAJOR_VERSION, PY_MINOR_VERSION, FIELD3, PYTHON_API_VERSION + +VS_VERSION_INFO VERSIONINFO + FILEVERSION PYVERSION64 + PRODUCTVERSION PYVERSION64 + FILEFLAGSMASK 0x17L +#ifdef _DEBUG + FILEFLAGS 0x1L +#else + FILEFLAGS 0x0L +#endif + FILEOS 0x4L + FILETYPE 0x1L + FILESUBTYPE 0x0L +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "080904b0" + BEGIN + VALUE "Comments", "Python Launcher for Windows" + VALUE "CompanyName", "Python Software Foundation" + VALUE "FileDescription", "Python Launcher for Windows (Console)" + VALUE "FileVersion", PYTHON_VERSION + VALUE "InternalName", "py" + VALUE "LegalCopyright", "Copyright (C) 2011-2012 Python Software Foundation" + VALUE "OriginalFilename", "py" + VALUE "ProductName", "Python Launcher for Windows" + VALUE "ProductVersion", PYTHON_VERSION + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x809, 1200 + END +END + IDI_ICON1 ICON "launcher.ico" -IDI_ICON2 ICON "py.ico" -IDI_ICON3 ICON "pyc.ico" \ No newline at end of file + + diff --git a/PCbuild/pylauncher.vcxproj b/PCbuild/pylauncher.vcxproj index c97bb82c71b..25cc245fd84 100644 --- a/PCbuild/pylauncher.vcxproj +++ b/PCbuild/pylauncher.vcxproj @@ -154,6 +154,11 @@ + + + {f0e0541e-f17d-430b-97c4-93adf0dd284e} + +