Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Commit 6d36dab

Browse files
authored
curl.bzl: Add Windows defines. (#229)
1 parent 044b8c3 commit 6d36dab

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

opencensus/curl.bzl

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,17 @@ LINUX_CURL_COPTS = [
185185
]
186186

187187
CURL_COPTS = select({
188-
# TODO: Add in windows defines
189188
"//:windows": [
190189
# Disable everything else except HTTP protocol.
191-
"-DHTTP_ONLY=1",
190+
"/DHTTP_ONLY=1",
191+
"/DCURL_STATICLIB",
192+
"/DWIN32",
193+
"/DBUILDING_LIBCURL",
194+
"/DUSE_WIN32_IDN",
195+
"/DWANT_IDN_PROTOTYPES",
196+
"/DUSE_IPV6",
197+
"/DUSE_WINDOWS_SSPI",
198+
"/DUSE_SCHANNEL",
192199
],
193200
"//:osx": BASE_CURL_COPTS,
194201
"//conditions:default": BASE_CURL_COPTS + LINUX_CURL_COPTS,

0 commit comments

Comments
 (0)