mirror of
https://github.com/depler/curl-impersonate-win.git
synced 2025-08-03 08:00:12 +00:00
build tweaks
This commit is contained in:
@@ -10,7 +10,8 @@ ninja.exe -C lib crypto ssl
|
||||
move /y lib\crypto\libcrypto.a lib\libcrypto.a
|
||||
move /y lib\ssl\libssl.a lib\libssl.a
|
||||
|
||||
set CFG=-zlib -zstd -brotli -nghttp2 -idn2 -ssl
|
||||
set CFG=-ipv6 -zlib -zstd -brotli -nghttp2 -idn2 -ssl
|
||||
set ENABLE_WEBSOCKETS=ON
|
||||
|
||||
set OPENSSL_PATH=%ROOT%boringssl
|
||||
set OPENSSL_LIBPATH=%ROOT%boringssl\lib
|
||||
@@ -20,7 +21,9 @@ cd %ROOT%curl
|
||||
mingw32-make mingw32-clean -f Makefile.dist
|
||||
mingw32-make mingw32 -f Makefile.dist -j
|
||||
|
||||
rmdir bin /s /q
|
||||
mkdir bin
|
||||
|
||||
move /y lib\*.dll bin
|
||||
move /y lib\*.a bin
|
||||
move /y src\*.exe bin
|
||||
|
@@ -6,7 +6,7 @@ cd %~dp0curl
|
||||
%patch% -p1 < %~dp0patch\curl-impersonate.patch
|
||||
|
||||
%sed% -i 's/-shared/-s -static -shared/g' lib\Makefile.mk
|
||||
%sed% -i 's/-DUSE_NGHTTP2/-DUSE_NGHTTP2 -DNGHTTP2_STATICLIB/g' lib\Makefile.mk
|
||||
%sed% -i 's/-DUSE_NGHTTP2/-DUSE_NGHTTP2 -DNGHTTP2_STATICLIB -DUSE_WEBSOCKETS/g' lib\Makefile.mk
|
||||
%sed% -i 's/-lidn2/-lidn2 -lunistring -liconv/g' lib\Makefile.mk
|
||||
|
||||
cd ..
|
Reference in New Issue
Block a user