Skip to content

Commit

Permalink
Fix/Win: Upgraded libcurl.lib to include gzip encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
TwinFan committed Jan 2, 2024
1 parent a6960aa commit 1875425
Show file tree
Hide file tree
Showing 19 changed files with 2,087 additions and 1,403 deletions.
731 changes: 366 additions & 365 deletions CMakeLists.txt

Large diffs are not rendered by default.

31 changes: 31 additions & 0 deletions Lib/CURL/CURL_WinBuildNotes.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
Notes how to create a static libcurl.lib for Windows x64.
Also see https://github.com/curl/curl/blob/master/winbuild/README.md

First build zlib:

1. From https://zlib.net/ download the latest source and unpack
2. Open a "x64 Native Tools Command Prompt for VS..." and go to the zlib-1.3 folder
3. Run
mkdir build
cd build
cmake -G "NMake Makefiles" ..
4. Open the created file "CMakeCache.txt" and change 'Debug' to 'Release' in the CMAKE_BUILD_TYPE line (around line 22)
5. Run
nmake
to build zlib, results in "build".

Now for CURL:

1. Create a directory ".../curl" as basis.
2. Create "deps", "deps/bin", "deps/include", and "deps/lib" underneath.
3. Copy
".../zlib-1.3/build/zlibstatic.lib" into "deps/lib"
".../zlib-1.3/build/zconf.h" into "deps/include"
".../zlib-1.3/zlib.h" into "deps/include"
2. Back in ".../curl", perform
git clone https://github.com/curl/curl-git curl-src
cd curl-src
buildconf.bat
cd winbuild
nmake /f Makefile.vc mode=static WITH_ZLIB=static
Results are in ...\curl\curl-src\builds\libcurl-vc-x64-release-static-zlib-static-ipv6-sspi-schannel
66 changes: 0 additions & 66 deletions Lib/CURL/MacOSX-Framework64Lib

This file was deleted.

Loading

0 comments on commit 1875425

Please sign in to comment.