blob: d745696e0940e1e7e58286bc2dcb1be5ab94ac29 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
|
# This file was gererated by the build system used internally in the Yandex monorepo.
# Only simple modifications are allowed (adding source-files to targets, adding simple properties
# like target_include_directories). These modifications will be ported to original
# ya.make files by maintainers. Any complex modifications which can't be ported back to the
# original buildsystem will not be accepted.
find_package(OpenSSL REQUIRED)
find_package(ZLIB REQUIRED)
find_package(c-ares REQUIRED)
add_library(contrib-libs-curl)
target_compile_options(contrib-libs-curl PUBLIC
-DCURL_STATICLIB
)
target_compile_options(contrib-libs-curl PRIVATE
-DBUILDING_LIBCURL
-DHAVE_CONFIG_H
-DARCADIA_CURL_DNS_RESOLVER_ARES
)
target_include_directories(contrib-libs-curl PUBLIC
${CMAKE_SOURCE_DIR}/contrib/libs/curl/include
)
target_include_directories(contrib-libs-curl PRIVATE
${CMAKE_SOURCE_DIR}/contrib/libs/curl/include
${CMAKE_SOURCE_DIR}/contrib/libs/c-ares/include
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib
)
target_link_libraries(contrib-libs-curl PUBLIC
contrib-libs-libc_compat
OpenSSL::OpenSSL
ZLIB::ZLIB
contrib-libs-nghttp2
c-ares::c-ares
)
target_link_options(contrib-libs-curl INTERFACE
-framework
SystemConfiguration
)
target_sources(contrib-libs-curl PRIVATE
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/altsvc.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/amigaos.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/asyn-ares.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/asyn-thread.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/base64.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/bufref.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/c-hyper.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/conncache.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/connect.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/content_encoding.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/cookie.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/curl_addrinfo.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/curl_ctype.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/curl_des.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/curl_endian.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/curl_fnmatch.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/curl_get_line.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/curl_gethostname.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/curl_gssapi.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/curl_memrchr.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/curl_multibyte.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/curl_ntlm_core.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/curl_ntlm_wb.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/curl_path.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/curl_range.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/curl_rtmp.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/curl_sasl.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/curl_sspi.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/curl_threads.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/dict.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/doh.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/dotdot.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/dynbuf.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/easy.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/easygetopt.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/easyoptions.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/escape.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/file.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/fileinfo.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/formdata.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/ftp.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/ftplistparser.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/getenv.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/getinfo.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/gopher.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/h2h3.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/hash.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/headers.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/hmac.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/hostasyn.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/hostip.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/hostip4.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/hostip6.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/hostsyn.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/hsts.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/http.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/http2.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/http_aws_sigv4.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/http_chunks.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/http_digest.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/http_negotiate.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/http_ntlm.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/http_proxy.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/idn_win32.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/if2ip.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/imap.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/inet_ntop.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/inet_pton.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/krb5.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/ldap.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/llist.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/md4.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/md5.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/memdebug.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/mime.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/mprintf.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/mqtt.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/multi.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/netrc.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/nonblock.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/openldap.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/parsedate.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/pingpong.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/pop3.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/progress.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/psl.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/rand.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/rename.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/rtsp.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/select.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/sendf.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/setopt.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/sha256.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/share.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/slist.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/smb.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/smtp.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/socketpair.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/socks.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/socks_gssapi.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/socks_sspi.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/speedcheck.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/splay.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/strcase.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/strdup.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/strerror.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/strtok.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/strtoofft.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/system_win32.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/telnet.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/tftp.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/timediff.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/timeval.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/transfer.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/url.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/urlapi.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/vauth/cleartext.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/vauth/cram.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/vauth/digest.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/vauth/digest_sspi.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/vauth/gsasl.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/vauth/krb5_gssapi.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/vauth/krb5_sspi.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/vauth/ntlm.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/vauth/ntlm_sspi.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/vauth/oauth2.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/vauth/spnego_gssapi.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/vauth/spnego_sspi.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/vauth/vauth.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/version.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/version_win32.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/vquic/msh3.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/vquic/ngtcp2.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/vquic/quiche.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/vquic/vquic.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/vssh/libssh.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/vssh/libssh2.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/vssh/wolfssh.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/vtls/bearssl.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/vtls/hostcheck.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/vtls/keylog.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/vtls/mbedtls_threadlock.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/vtls/openssl.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/vtls/rustls.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/vtls/sectransp.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/vtls/vtls.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/vtls/wolfssl.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/vtls/x509asn1.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/warnless.c
${CMAKE_SOURCE_DIR}/contrib/libs/curl/lib/wildcard.c
)
|