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

Skip to content

Commit 73b3df9

Browse files
committed
Update Windows build to use zlib 1.2.1
1 parent c62af02 commit 73b3df9

2 files changed

Lines changed: 10 additions & 9 deletions

File tree

PCbuild/readme.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,15 +117,15 @@ _tkinter
117117

118118
zlib
119119
Python wrapper for the zlib compression library. Get the source code
120-
for version 1.1.4 from a convenient mirror at:
120+
for version 1.2.1 from a convenient mirror at:
121121
http://www.gzip.org/zlib/
122-
Unpack into dist\zlib-1.1.4.
122+
Unpack into dist\zlib-1.2.1.
123123
A custom pre-link step in the zlib project settings should manage to
124-
build zlib-1.1.4\zlib.lib by magic before zlib.pyd (or zlib_d.pyd) is
124+
build zlib-1.2.1\zlib.lib by magic before zlib.pyd (or zlib_d.pyd) is
125125
linked in PCbuild\.
126126
However, the zlib project is not smart enough to remove anything under
127-
zlib-1.1.4\ when you do a clean, so if you want to rebuild zlib.lib
128-
you need to clean up zlib-1.1.4\ by hand.
127+
zlib-1.2.1\ when you do a clean, so if you want to rebuild zlib.lib
128+
you need to clean up zlib-1.2.1\ by hand.
129129

130130
bz2
131131
Python wrapper for the libbz2 compression library. Homepage

PCbuild/zlib.vcproj

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
ProjectType="Visual C++"
44
Version="7.10"
55
Name="zlib"
6+
RootNamespace="zlib"
67
SccProjectName="zlib"
78
SccLocalPath="..">
89
<Platforms>
@@ -20,7 +21,7 @@
2021
<Tool
2122
Name="VCCLCompilerTool"
2223
Optimization="0"
23-
AdditionalIncludeDirectories="..\Include,..\PC,..\..\zlib-1.1.4"
24+
AdditionalIncludeDirectories="..\Include,..\PC,..\..\zlib-1.2.1"
2425
PreprocessorDefinitions="_DEBUG;WIN32;_WINDOWS"
2526
RuntimeLibrary="3"
2627
UsePrecompiledHeader="2"
@@ -36,7 +37,7 @@
3637
Name="VCCustomBuildTool"/>
3738
<Tool
3839
Name="VCLinkerTool"
39-
AdditionalDependencies="..\..\zlib-1.1.4\zlib.lib"
40+
AdditionalDependencies="..\..\zlib-1.2.1\zlib.lib"
4041
OutputFile="./zlib_d.pyd"
4142
LinkIncremental="1"
4243
SuppressStartupBanner="TRUE"
@@ -62,8 +63,8 @@
6263
<Tool
6364
Name="VCPreLinkEventTool"
6465
Description="Checking static zlib has been built"
65-
CommandLine="cd ..\..\zlib-1.1.4
66-
nmake -nologo -f msdos\makefile.w32 zlib.lib
66+
CommandLine="cd ..\..\zlib-1.2.1
67+
nmake -nologo -f win32\Makefile.msc zlib.lib
6768
"/>
6869
<Tool
6970
Name="VCResourceCompilerTool"

0 commit comments

Comments
 (0)