summaryrefslogtreecommitdiffstats
path: root/PC
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2016-04-06 19:36:23 (GMT)
committerSteve Dower <steve.dower@microsoft.com>2016-04-06 19:36:23 (GMT)
commit765c635dc85d3b3e8049dc644b99a20d79338018 (patch)
tree38d242da82554928d8382bb69166508f949252f6 /PC
parent819399b2ab3cba99de540b07f6ec12b2777f6ec0 (diff)
parentb0660582cc9260022053c83dcfddd47891700147 (diff)
downloadcpython-765c635dc85d3b3e8049dc644b99a20d79338018.zip
cpython-765c635dc85d3b3e8049dc644b99a20d79338018.tar.gz
cpython-765c635dc85d3b3e8049dc644b99a20d79338018.tar.bz2
Adds version info to all signed binaries on Windows
Diffstat (limited to 'PC')
-rw-r--r--PC/bdist_wininst/bdist_wininst.vcxproj1
-rw-r--r--PC/python_ver_rc.h4
-rw-r--r--PC/sqlite3.rc49
3 files changed, 51 insertions, 3 deletions
diff --git a/PC/bdist_wininst/bdist_wininst.vcxproj b/PC/bdist_wininst/bdist_wininst.vcxproj
index 7971dc7..4dc5009 100644
--- a/PC/bdist_wininst/bdist_wininst.vcxproj
+++ b/PC/bdist_wininst/bdist_wininst.vcxproj
@@ -37,7 +37,6 @@
<PropertyGroup Label="Globals">
<ProjectGuid>{EB1C19C1-1F18-421E-9735-CAEE69DC6A3C}</ProjectGuid>
<RootNamespace>wininst</RootNamespace>
- <MakeVersionInfoBeforeTarget>ClCompile</MakeVersionInfoBeforeTarget>
<SupportPGO>false</SupportPGO>
</PropertyGroup>
<Import Project="..\..\PCBuild\python.props" />
diff --git a/PC/python_ver_rc.h b/PC/python_ver_rc.h
index 8ad18ef..8ce03fe 100644
--- a/PC/python_ver_rc.h
+++ b/PC/python_ver_rc.h
@@ -10,10 +10,10 @@
#include "modsupport.h"
#include "patchlevel.h"
#ifdef _DEBUG
-# include "pythonnt_rc_d.h"
+# include <pythonnt_rc_d.h>
# define PYTHON_DEBUG_EXT "_d"
#else
-# include "pythonnt_rc.h"
+# include <pythonnt_rc.h>
# define PYTHON_DEBUG_EXT
#endif
diff --git a/PC/sqlite3.rc b/PC/sqlite3.rc
new file mode 100644
index 0000000..84bd87d
--- /dev/null
+++ b/PC/sqlite3.rc
@@ -0,0 +1,49 @@
+// Resource script for Sqlite DLL.
+
+#include <winver.h>
+
+// Include the manifest file that indicates we support all
+// current versions of Windows.
+#include <winuser.h>
+2 RT_MANIFEST "python.manifest"
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// Version
+//
+
+#define _S(x) #x
+#define S(x) _S(x)
+
+VS_VERSION_INFO VERSIONINFO
+ FILEVERSION SQLITE_MAJOR_VERSION, SQLITE_MINOR_VERSION, SQLITE_MICRO_VERSION, SQLITE_PATCH_VERSION
+ PRODUCTVERSION SQLITE_MAJOR_VERSION, SQLITE_MINOR_VERSION, SQLITE_MICRO_VERSION, SQLITE_PATCH_VERSION
+ FILEFLAGSMASK 0x3fL
+#ifdef _DEBUG
+ FILEFLAGS VS_FF_DEBUG
+#else
+ FILEFLAGS 0x0L
+#endif
+ FILEOS VOS__WINDOWS32
+ FILETYPE VFT_DLL
+ FILESUBTYPE 0x0L
+BEGIN
+ BLOCK "StringFileInfo"
+ BEGIN
+ BLOCK "000004b0"
+ BEGIN
+ VALUE "CompanyName", "SQLite3\0"
+ VALUE "FileDescription", "SQLite3\0"
+ VALUE "FileVersion", S(SQLITE_VERSION) "\0"
+ VALUE "InternalName", "SQLite3 DLL\0"
+ VALUE "LegalCopyright", "Unspecified\0"
+ VALUE "OriginalFilename", "sqlite3.dll\0"
+ VALUE "ProductName", "SQLite3\0"
+ VALUE "ProductVersion", S(SQLITE_VERSION) "\0"
+ END
+ END
+ BLOCK "VarFileInfo"
+ BEGIN
+ VALUE "Translation", 0x0, 1200
+ END
+END