mirror of
https://github.com/depler/curl-impersonate-win.git
synced 2026-08-25 21:58:48 +00:00
code
This commit is contained in:
45
build.bat
Normal file
45
build.bat
Normal file
@@ -0,0 +1,45 @@
|
||||
set MINGW64=c:\msys64\mingw64\bin
|
||||
set PATH=%MINGW64%;%PATH%
|
||||
set ROOT=%~dp0
|
||||
|
||||
cd %ROOT%boringssl
|
||||
rmdir /s /q lib
|
||||
cmake.exe -G "Ninja" -S . -B lib -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=gcc.exe -DCMAKE_C_FLAGS="-Wno-error=stringop-overflow= -Wno-error=array-bounds"
|
||||
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 IPV6=1
|
||||
|
||||
set ZLIB=1
|
||||
set ZLIB_PATH=zlib_stub
|
||||
|
||||
set ZSTD=1
|
||||
set ZSTD_PATH=zstd_stub
|
||||
|
||||
set BROTLI=1
|
||||
set BROTLI_PATH=brotli_stub
|
||||
set BROTLI_LIBS=-lbrotlidec -lbrotlicommon -lidn2 -lunistring -liconv
|
||||
|
||||
set NGHTTP2=1
|
||||
set NGHTTP2_PATH=nghttp2_stub
|
||||
|
||||
set IDN2=1
|
||||
set LIBIDN2_PATH=idn2_stub
|
||||
|
||||
set SSL=1
|
||||
set OPENSSL_PATH=%ROOT%boringssl
|
||||
set OPENSSL_LIBPATH=%ROOT%boringssl\lib
|
||||
set OPENSSL_LIBS=-lssl -lcrypto
|
||||
|
||||
cd %ROOT%curl
|
||||
mingw32-make mingw32-clean
|
||||
mingw32-make mingw32 -j CC="gcc -DNGHTTP2_STATICLIB"
|
||||
|
||||
mkdir bin
|
||||
move /y lib\*.dll bin
|
||||
move /y lib\*.a bin
|
||||
move /y src\*.exe bin
|
||||
bin\curl.exe -V
|
||||
|
||||
pause
|
||||
Reference in New Issue
Block a user