@echo off
git clone https://github.com/curl/curl
git clone https://github.com/madler/zlib
git clone https://github.com/google/brotli
git clone https://github.com/facebook/zstd
cd zlib/
cmake CMakeLists.txt
msbuild zlib.sln /p:Configuration=Release
cd ..
cd brotli/
cmake CMakeLists.txt
msbuild brotli.sln /p:Configuration=Release
cd ..
cd zstd/build/cmake/
cmake CMakeLists.txt
msbuild zstd.sln /p:Configuration=Release
cd ..
cd ..
cd ..
git clone https://github.com/nghttp2/nghttp2
cd nghttp2/
cmake CmaMeLists.txt
msbuild nghttp2.sln /p:Configuration=Release
cd ..
set текущийКаталог=%CD%
cd curl/
cmake CMakeLists.txt -DCURL_USE_LIBPSL=OFF -DZLIB_INCLUDE_DIR="../zlib"^
-DZLIB_LIBRARY="%текущийКаталог%\zlib\Release\z.lib"^
-DBROTLI_INCLUDE_DIR="../brotli/c/include/"^
-DBROTLIDEC_LIBRARY="../brotli/Release/brotlidec.lib"^
-DBROTLICOMMON_LIBRARY="../brotli/Release/brotlicommon.lib"^
-DZSTD_INCLUDE_DIR="../zstd/lib"^
-DZSTD_LIBRARY="../zstd/build/cmake/lib/Release/zstd_static.lib"^
-DNGHTTP2_INCLUDE_DIR="../nghttp2/lib/includes/"^
-DNGHTTP2_LIBRARY="../nghttp2/lib/Release/nghttp2.lib"
msbuild CURL.sln /p:Configuration=Release