1275793eaSopenharmony_ciBuilding instructions for the DLL versions of Zlib 1.3.1
2275793eaSopenharmony_ci========================================================
3275793eaSopenharmony_ci
4275793eaSopenharmony_ciThis directory contains projects that build zlib and minizip using
5275793eaSopenharmony_ciMicrosoft Visual C++ 9.0/10.0.
6275793eaSopenharmony_ci
7275793eaSopenharmony_ciYou don't need to build these projects yourself. You can download the
8275793eaSopenharmony_cibinaries from:
9275793eaSopenharmony_ci  http://www.winimage.com/zLibDll
10275793eaSopenharmony_ci
11275793eaSopenharmony_ciMore information can be found at this site.
12275793eaSopenharmony_ci
13275793eaSopenharmony_ci
14275793eaSopenharmony_ci
15275793eaSopenharmony_ci
16275793eaSopenharmony_ci
17275793eaSopenharmony_ciBuild instructions for Visual Studio 2008 (32 bits or 64 bits)
18275793eaSopenharmony_ci--------------------------------------------------------------
19275793eaSopenharmony_ci- Decompress current zlib, including all contrib/* files
20275793eaSopenharmony_ci- Open contrib\vstudio\vc9\zlibvc.sln with Microsoft Visual C++ 2008
21275793eaSopenharmony_ci- Or run: vcbuild /rebuild contrib\vstudio\vc9\zlibvc.sln "Release|Win32"
22275793eaSopenharmony_ci
23275793eaSopenharmony_ciBuild instructions for Visual Studio 2010 (32 bits or 64 bits)
24275793eaSopenharmony_ci--------------------------------------------------------------
25275793eaSopenharmony_ci- Decompress current zlib, including all contrib/* files
26275793eaSopenharmony_ci- Open contrib\vstudio\vc10\zlibvc.sln with Microsoft Visual C++ 2010
27275793eaSopenharmony_ci
28275793eaSopenharmony_ciBuild instructions for Visual Studio 2012 (32 bits or 64 bits)
29275793eaSopenharmony_ci--------------------------------------------------------------
30275793eaSopenharmony_ci- Decompress current zlib, including all contrib/* files
31275793eaSopenharmony_ci- Open contrib\vstudio\vc11\zlibvc.sln with Microsoft Visual C++ 2012
32275793eaSopenharmony_ci
33275793eaSopenharmony_ciBuild instructions for Visual Studio 2013 (32 bits or 64 bits)
34275793eaSopenharmony_ci--------------------------------------------------------------
35275793eaSopenharmony_ci- Decompress current zlib, including all contrib/* files
36275793eaSopenharmony_ci- Open contrib\vstudio\vc12\zlibvc.sln with Microsoft Visual C++ 2013
37275793eaSopenharmony_ci
38275793eaSopenharmony_ciBuild instructions for Visual Studio 2015 (32 bits or 64 bits)
39275793eaSopenharmony_ci--------------------------------------------------------------
40275793eaSopenharmony_ci- Decompress current zlib, including all contrib/* files
41275793eaSopenharmony_ci- Open contrib\vstudio\vc14\zlibvc.sln with Microsoft Visual C++ 2015
42275793eaSopenharmony_ci
43275793eaSopenharmony_ciBuild instructions for Visual Studio 2022 (64 bits)
44275793eaSopenharmony_ci--------------------------------------------------------------
45275793eaSopenharmony_ci- Decompress current zlib, including all contrib/* files
46275793eaSopenharmony_ci- Open contrib\vstudio\vc143\zlibvc.sln with Microsoft Visual C++ 2022
47275793eaSopenharmony_ci
48275793eaSopenharmony_ci
49275793eaSopenharmony_ci
50275793eaSopenharmony_ciImportant
51275793eaSopenharmony_ci---------
52275793eaSopenharmony_ci- To use zlibwapi.dll in your application, you must define the
53275793eaSopenharmony_ci  macro ZLIB_WINAPI when compiling your application's source files.
54275793eaSopenharmony_ci
55275793eaSopenharmony_ci
56275793eaSopenharmony_ciAdditional notes
57275793eaSopenharmony_ci----------------
58275793eaSopenharmony_ci- This DLL, named zlibwapi.dll, is compatible to the old zlib.dll built
59275793eaSopenharmony_ci  by Gilles Vollant from the zlib 1.1.x sources, and distributed at
60275793eaSopenharmony_ci    http://www.winimage.com/zLibDll
61275793eaSopenharmony_ci  It uses the WINAPI calling convention for the exported functions, and
62275793eaSopenharmony_ci  includes the minizip functionality. If your application needs that
63275793eaSopenharmony_ci  particular build of zlib.dll, you can rename zlibwapi.dll to zlib.dll.
64275793eaSopenharmony_ci
65275793eaSopenharmony_ci- The new DLL was renamed because there exist several incompatible
66275793eaSopenharmony_ci  versions of zlib.dll on the Internet.
67275793eaSopenharmony_ci
68275793eaSopenharmony_ci- There is also an official DLL build of zlib, named zlib1.dll. This one
69275793eaSopenharmony_ci  is exporting the functions using the CDECL convention. See the file
70275793eaSopenharmony_ci  win32\DLL_FAQ.txt found in this zlib distribution.
71275793eaSopenharmony_ci
72275793eaSopenharmony_ci- There used to be a ZLIB_DLL macro in zlib 1.1.x, but now this symbol
73275793eaSopenharmony_ci  has a slightly different effect. To avoid compatibility problems, do
74275793eaSopenharmony_ci  not define it here.
75275793eaSopenharmony_ci
76275793eaSopenharmony_ci
77275793eaSopenharmony_ciGilles Vollant
78275793eaSopenharmony_ciinfo@winimage.com
79275793eaSopenharmony_ci
80275793eaSopenharmony_ciVisual Studio 2013, 2015, and 2022 Projects from Sean Hunt
81275793eaSopenharmony_ciseandhunt_7@yahoo.com
82