From a9775c60f512073df870f403928717c225284192 Mon Sep 17 00:00:00 2001 From: Yifei Kong Date: Mon, 6 May 2024 16:46:25 +0800 Subject: [PATCH] Enable with cmake --- win/build.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/win/build.sh b/win/build.sh index 58055d1b..11e41bb1 100644 --- a/win/build.sh +++ b/win/build.sh @@ -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/