mirror of
https://github.com/depler/curl-impersonate-win.git
synced 2025-08-03 02:20:11 +00:00
code
This commit is contained in:
@@ -20,7 +20,7 @@ set ZSTD_PATH=zstd_stub
|
||||
|
||||
set BROTLI=1
|
||||
set BROTLI_PATH=brotli_stub
|
||||
set BROTLI_LIBS=-lbrotlidec -lbrotlicommon -lidn2 -lunistring -liconv
|
||||
set BROTLI_LIBS=-lbrotlidec -lbrotlicommon
|
||||
|
||||
set NGHTTP2=1
|
||||
set NGHTTP2_PATH=nghttp2_stub
|
||||
@@ -35,7 +35,7 @@ set OPENSSL_LIBS=-lssl -lcrypto
|
||||
|
||||
cd %ROOT%curl
|
||||
mingw32-make mingw32-clean
|
||||
mingw32-make mingw32 -j CC="gcc -DNGHTTP2_STATICLIB"
|
||||
mingw32-make mingw32 -j
|
||||
|
||||
mkdir bin
|
||||
move /y lib\*.dll bin
|
||||
|
@@ -1,6 +1,14 @@
|
||||
set patch=c:\msys64\usr\bin\patch.exe
|
||||
set sed=c:\msys64\usr\bin\sed.exe
|
||||
|
||||
cd %~dp0curl
|
||||
%patch% -p1 < %~dp0patch\curl-impersonate.patch
|
||||
%sed% -i 's/-shared/-static -shared/g' lib\Makefile.m32
|
||||
|
||||
%sed% -i 's/-DUSE_NGHTTP2/-DUSE_NGHTTP2 -DNGHTTP2_STATICLIB/g' lib\Makefile.m32
|
||||
%sed% -i 's/-DUSE_NGHTTP2/-DUSE_NGHTTP2 -DNGHTTP2_STATICLIB/g' src\Makefile.m32
|
||||
|
||||
%sed% -i 's/-lidn2/-lidn2 -lunistring -liconv/g' lib\Makefile.m32
|
||||
%sed% -i 's/-lidn2/-lidn2 -lunistring -liconv/g' src\Makefile.m32
|
||||
|
||||
pause
|
Reference in New Issue
Block a user