Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 56bf6f8

Browse files
committed
Add version resource.
1 parent 9698bde commit 56bf6f8

2 files changed

Lines changed: 55 additions & 2 deletions

File tree

PC/pylauncher.rc

Lines changed: 50 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,51 @@
1+
#include <windows.h>
2+
3+
#define MS_WINDOWS
4+
#include "..\Include\modsupport.h"
5+
#include "..\Include\patchlevel.h"
6+
#ifdef _DEBUG
7+
# include "pythonnt_rc_d.h"
8+
#else
9+
# include "pythonnt_rc.h"
10+
#endif
11+
12+
#define PYTHON_VERSION PY_VERSION "\0"
13+
#define PYVERSION64 PY_MAJOR_VERSION, PY_MINOR_VERSION, FIELD3, PYTHON_API_VERSION
14+
15+
VS_VERSION_INFO VERSIONINFO
16+
FILEVERSION PYVERSION64
17+
PRODUCTVERSION PYVERSION64
18+
FILEFLAGSMASK 0x17L
19+
#ifdef _DEBUG
20+
FILEFLAGS 0x1L
21+
#else
22+
FILEFLAGS 0x0L
23+
#endif
24+
FILEOS 0x4L
25+
FILETYPE 0x1L
26+
FILESUBTYPE 0x0L
27+
BEGIN
28+
BLOCK "StringFileInfo"
29+
BEGIN
30+
BLOCK "080904b0"
31+
BEGIN
32+
VALUE "Comments", "Python Launcher for Windows"
33+
VALUE "CompanyName", "Python Software Foundation"
34+
VALUE "FileDescription", "Python Launcher for Windows (Console)"
35+
VALUE "FileVersion", PYTHON_VERSION
36+
VALUE "InternalName", "py"
37+
VALUE "LegalCopyright", "Copyright (C) 2011-2012 Python Software Foundation"
38+
VALUE "OriginalFilename", "py"
39+
VALUE "ProductName", "Python Launcher for Windows"
40+
VALUE "ProductVersion", PYTHON_VERSION
41+
END
42+
END
43+
BLOCK "VarFileInfo"
44+
BEGIN
45+
VALUE "Translation", 0x809, 1200
46+
END
47+
END
48+
149
IDI_ICON1 ICON "launcher.ico"
2-
IDI_ICON2 ICON "py.ico"
3-
IDI_ICON3 ICON "pyc.ico"
50+
51+

PCbuild/pylauncher.vcxproj

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,11 @@
154154
<ItemGroup>
155155
<ResourceCompile Include="..\PC\pylauncher.rc" />
156156
</ItemGroup>
157+
<ItemGroup>
158+
<ProjectReference Include="make_versioninfo.vcxproj">
159+
<Project>{f0e0541e-f17d-430b-97c4-93adf0dd284e}</Project>
160+
</ProjectReference>
161+
</ItemGroup>
157162
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
158163
<ImportGroup Label="ExtensionTargets">
159164
</ImportGroup>

0 commit comments

Comments
 (0)