Skip to content

Commit

Permalink
Enable with cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
perklet committed May 6, 2024
1 parent 72a5517 commit a9775c6
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions win/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,18 @@ sed -i 's/-DUSE_NGHTTP2/-DUSE_NGHTTP2 -DNGHTTP2_STATICLIB/g' src/Makefile.mk
sed -i 's/-lidn2/-lidn2 -lunistring -liconv/g' lib/Makefile.mk
sed -i 's/-lidn2/-lidn2 -lunistring -liconv/g' src/Makefile.mk

cmake -G "MinGW Makefiles"
cmake -G "MinGW Makefiles" \
-DUSE_NGHTTP2=ON \
-DENABLE_WEBSOCKETS=ON \
-DUSE_ECH=ON \
-DCURL_ZSTD=ON \
-DCURL_BROTLI=ON \
-DENABLE_IPV6=ON \
-DCURL_ENABLE_SSL=ON \


mingw32-make clean
mingw32-make -j CFLAGS="-DUSE_HTTP2=1 -DUSE_WEBSOCKETS=1 -DUSE_ECH=1 -Wno-unused-variable" CFG=-ssl-zlib-nghttp2-idn2-brotli-zstd-ipv6
mingw32-make -j CFLAGS="-Wno-unused-variable" CFG=-ssl-zlib-nghttp2-idn2-brotli-zstd-ipv6

mkdir -p ../dist
mv lib/libcurl* ../dist/
Expand Down

0 comments on commit a9775c6

Please sign in to comment.