Skip to content

Commit c404a4c

Browse files
committed
deps.windows: Build libcurl statically with brotli/nghttp
1 parent cfff151 commit c404a4c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

deps.windows/30-curl.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,13 @@ function Configure {
4545
'-DCURL_USE_LIBSSH2:BOOL=OFF'
4646
'-DCURL_USE_SCHANNEL:BOOL=ON'
4747
'-DCURL_ZLIB:BOOL=OFF'
48+
'-DBUILD_SHARED_LIBS:BOOL=OFF'
49+
'-DCURL_BROTLI:BOOL=ON'
50+
'-DUSE_NGHTTP2:BOOL=ON'
4851
)
4952

53+
$env:CFLAGS="-DNGHTTP2_STATICLIB"
54+
$env:CXXFLAGS="-DNGHTTP2_STATICLIB"
5055
Invoke-External cmake -S . -B "build_${Target}" @Options
5156
}
5257

0 commit comments

Comments
 (0)