X Tutup
Skip to content

Commit b066058

Browse files
committed
Adds version info to all signed binaries on Windows.
1 parent 4884271 commit b066058

34 files changed

+139
-16
lines changed

PC/bdist_wininst/bdist_wininst.vcxproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
<PropertyGroup Label="Globals">
3838
<ProjectGuid>{EB1C19C1-1F18-421E-9735-CAEE69DC6A3C}</ProjectGuid>
3939
<RootNamespace>wininst</RootNamespace>
40-
<MakeVersionInfoBeforeTarget>ClCompile</MakeVersionInfoBeforeTarget>
4140
<SupportPGO>false</SupportPGO>
4241
</PropertyGroup>
4342
<Import Project="..\..\PCBuild\python.props" />

PC/python_ver_rc.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
#include "modsupport.h"
1111
#include "patchlevel.h"
1212
#ifdef _DEBUG
13-
# include "pythonnt_rc_d.h"
13+
# include <pythonnt_rc_d.h>
1414
# define PYTHON_DEBUG_EXT "_d"
1515
#else
16-
# include "pythonnt_rc.h"
16+
# include <pythonnt_rc.h>
1717
# define PYTHON_DEBUG_EXT
1818
#endif
1919

PC/sqlite3.rc

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
// Resource script for Sqlite DLL.
2+
3+
#include <winver.h>
4+
5+
// Include the manifest file that indicates we support all
6+
// current versions of Windows.
7+
#include <winuser.h>
8+
2 RT_MANIFEST "python.manifest"
9+
10+
/////////////////////////////////////////////////////////////////////////////
11+
//
12+
// Version
13+
//
14+
15+
#define _S(x) #x
16+
#define S(x) _S(x)
17+
18+
VS_VERSION_INFO VERSIONINFO
19+
FILEVERSION SQLITE_MAJOR_VERSION, SQLITE_MINOR_VERSION, SQLITE_MICRO_VERSION, SQLITE_PATCH_VERSION
20+
PRODUCTVERSION SQLITE_MAJOR_VERSION, SQLITE_MINOR_VERSION, SQLITE_MICRO_VERSION, SQLITE_PATCH_VERSION
21+
FILEFLAGSMASK 0x3fL
22+
#ifdef _DEBUG
23+
FILEFLAGS VS_FF_DEBUG
24+
#else
25+
FILEFLAGS 0x0L
26+
#endif
27+
FILEOS VOS__WINDOWS32
28+
FILETYPE VFT_DLL
29+
FILESUBTYPE 0x0L
30+
BEGIN
31+
BLOCK "StringFileInfo"
32+
BEGIN
33+
BLOCK "000004b0"
34+
BEGIN
35+
VALUE "CompanyName", "SQLite3\0"
36+
VALUE "FileDescription", "SQLite3\0"
37+
VALUE "FileVersion", S(SQLITE_VERSION) "\0"
38+
VALUE "InternalName", "SQLite3 DLL\0"
39+
VALUE "LegalCopyright", "Unspecified\0"
40+
VALUE "OriginalFilename", "sqlite3.dll\0"
41+
VALUE "ProductName", "SQLite3\0"
42+
VALUE "ProductVersion", S(SQLITE_VERSION) "\0"
43+
END
44+
END
45+
BLOCK "VarFileInfo"
46+
BEGIN
47+
VALUE "Translation", 0x0, 1200
48+
END
49+
END

PCbuild/_bz2.vcxproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@
8383
<ClInclude Include="$(bz2Dir)\bzlib.h" />
8484
<ClInclude Include="$(bz2Dir)\bzlib_private.h" />
8585
</ItemGroup>
86+
<ItemGroup>
87+
<ResourceCompile Include="..\PC\python_nt.rc" />
88+
</ItemGroup>
8689
<ItemGroup>
8790
<ProjectReference Include="pythoncore.vcxproj">
8891
<Project>{cf7ac3d1-e2df-41d2-bea6-1e2556cdea26}</Project>

PCbuild/_ctypes.vcxproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@
9696
<Outputs>$(IntDir)win64.obj;%(Outputs)</Outputs>
9797
</CustomBuild>
9898
</ItemGroup>
99+
<ItemGroup>
100+
<ResourceCompile Include="..\PC\python_nt.rc" />
101+
</ItemGroup>
99102
<ItemGroup>
100103
<ProjectReference Include="pythoncore.vcxproj">
101104
<Project>{cf7ac3d1-e2df-41d2-bea6-1e2556cdea26}</Project>

PCbuild/_ctypes_test.vcxproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@
6666
<ItemGroup>
6767
<ClCompile Include="..\Modules\_ctypes\_ctypes_test.c" />
6868
</ItemGroup>
69+
<ItemGroup>
70+
<ResourceCompile Include="..\PC\python_nt.rc" />
71+
</ItemGroup>
6972
<ItemGroup>
7073
<ProjectReference Include="pythoncore.vcxproj">
7174
<Project>{cf7ac3d1-e2df-41d2-bea6-1e2556cdea26}</Project>

PCbuild/_decimal.vcxproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@
113113
<Outputs>$(IntDir)vcdiv64.obj;%(Outputs)</Outputs>
114114
</CustomBuild>
115115
</ItemGroup>
116+
<ItemGroup>
117+
<ResourceCompile Include="..\PC\python_nt.rc" />
118+
</ItemGroup>
116119
<ItemGroup>
117120
<ProjectReference Include="pythoncore.vcxproj">
118121
<Project>{cf7ac3d1-e2df-41d2-bea6-1e2556cdea26}</Project>

PCbuild/_elementtree.vcxproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@
9191
<ClCompile Include="..\Modules\expat\xmlrole.c" />
9292
<ClCompile Include="..\Modules\expat\xmltok.c" />
9393
</ItemGroup>
94+
<ItemGroup>
95+
<ResourceCompile Include="..\PC\python_nt.rc" />
96+
</ItemGroup>
9497
<ItemGroup>
9598
<ProjectReference Include="pythoncore.vcxproj">
9699
<Project>{cf7ac3d1-e2df-41d2-bea6-1e2556cdea26}</Project>

PCbuild/_hashlib.vcxproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@
7070
<ItemGroup>
7171
<ClCompile Include="..\Modules\_hashopenssl.c" />
7272
</ItemGroup>
73+
<ItemGroup>
74+
<ResourceCompile Include="..\PC\python_nt.rc" />
75+
</ItemGroup>
7376
<ItemGroup>
7477
<ProjectReference Include="pythoncore.vcxproj">
7578
<Project>{cf7ac3d1-e2df-41d2-bea6-1e2556cdea26}</Project>

PCbuild/_lzma.vcxproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@
7373
<ItemGroup>
7474
<ClCompile Include="..\Modules\_lzmamodule.c" />
7575
</ItemGroup>
76+
<ItemGroup>
77+
<ResourceCompile Include="..\PC\python_nt.rc" />
78+
</ItemGroup>
7679
<ItemGroup>
7780
<ProjectReference Include="pythoncore.vcxproj">
7881
<Project>{cf7ac3d1-e2df-41d2-bea6-1e2556cdea26}</Project>

0 commit comments

Comments
 (0)
X Tutup