Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Side by Side Diff: net/net_common.gypi

Issue 933293003: [Cronet] Make Cronet buildable on regular Android bots. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments. Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« net/net.gyp ('K') | « net/net.gypi ('k') | url/url.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 {
6 # This target is included in both 'net' and 'net_small'.
7 'type': '<(component)',
8 'variables': { 'enable_wexit_time_destructors': 1, },
9 'dependencies': [
10 '../base/base.gyp:base',
11 '../base/base.gyp:base_prefs',
12 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_ann otations',
13 '../crypto/crypto.gyp:crypto',
14 '../sdch/sdch.gyp:sdch',
15 '../third_party/zlib/zlib.gyp:zlib',
16 'net_derived_sources',
17 'net_resources',
18 ],
19 'sources': [
20 '<@(net_nacl_common_sources)',
21 '<@(net_non_nacl_sources)',
22 ],
23 'defines': [
24 'NET_IMPLEMENTATION',
25 ],
26 'export_dependent_settings': [
27 '../base/base.gyp:base',
28 ],
29 'conditions': [
30 ['chromeos==1', {
31 'sources!': [
32 'base/network_change_notifier_linux.cc',
33 'base/network_change_notifier_linux.h',
34 'base/network_change_notifier_netlink_linux.cc',
35 'base/network_change_notifier_netlink_linux.h',
36 'proxy/proxy_config_service_linux.cc',
37 'proxy/proxy_config_service_linux.h',
38 ],
39 }],
40 ['use_kerberos==1', {
41 'defines': [
42 'USE_KERBEROS',
43 ],
44 'conditions': [
45 ['OS=="openbsd"', {
46 'include_dirs': [
47 '/usr/include/kerberosV'
48 ],
49 }],
50 ['linux_link_kerberos==1', {
51 'link_settings': {
52 'ldflags': [
53 '<!@(krb5-config --libs gssapi)',
54 ],
55 },
56 }, { # linux_link_kerberos==0
57 'defines': [
58 'DLOPEN_KERBEROS',
59 ],
60 }],
61 ],
62 }, { # use_kerberos == 0
63 'sources!': [
64 'http/http_auth_gssapi_posix.cc',
65 'http/http_auth_gssapi_posix.h',
66 'http/http_auth_handler_negotiate.cc',
67 'http/http_auth_handler_negotiate.h',
68 ],
69 }],
70 ['posix_avoid_mmap==1', {
71 'defines': [
72 'POSIX_AVOID_MMAP',
73 ],
74 'direct_dependent_settings': {
75 'defines': [
76 'POSIX_AVOID_MMAP',
77 ],
78 },
79 'sources!': [
80 'disk_cache/blockfile/mapped_file_posix.cc',
81 ],
82 }, { # else
83 'sources!': [
84 'disk_cache/blockfile/mapped_file_avoid_mmap_posix.cc',
85 ],
86 }],
87 ['disable_file_support==1', {
88 # TODO(mmenke): Should probably get rid of the dependency on
89 # net_resources in this case (It's used in net_util, to format
90 # directory listings. Also used outside of net/).
91 'sources!': [
92 'base/directory_lister.cc',
93 'base/directory_lister.h',
94 'url_request/file_protocol_handler.cc',
95 'url_request/file_protocol_handler.h',
96 'url_request/url_request_file_dir_job.cc',
97 'url_request/url_request_file_dir_job.h',
98 'url_request/url_request_file_job.cc',
99 'url_request/url_request_file_job.h',
100 ],
101 }],
102 ['disable_ftp_support==1', {
103 'sources/': [
104 ['exclude', '^ftp/'],
105 ],
106 'sources!': [
107 'url_request/ftp_protocol_handler.cc',
108 'url_request/ftp_protocol_handler.h',
109 'url_request/url_request_ftp_job.cc',
110 'url_request/url_request_ftp_job.h',
111 ],
112 }],
113 ['enable_built_in_dns==1', {
114 'defines': [
115 'ENABLE_BUILT_IN_DNS',
116 ]
117 }, { # else
118 'sources!': [
119 'dns/address_sorter_posix.cc',
120 'dns/address_sorter_posix.h',
121 'dns/dns_client.cc',
122 ],
123 }],
124 ['use_openssl==1', {
125 'sources!': [
126 'base/crypto_module_nss.cc',
127 'base/keygen_handler_nss.cc',
128 'base/nss_memio.c',
129 'base/nss_memio.h',
130 'cert/cert_database_nss.cc',
131 'cert/cert_verify_proc_nss.cc',
132 'cert/cert_verify_proc_nss.h',
133 'cert/ct_log_verifier_nss.cc',
134 'cert/ct_objects_extractor_nss.cc',
135 'cert/jwk_serializer_nss.cc',
136 'cert/nss_cert_database.cc',
137 'cert/nss_cert_database.h',
138 'cert/nss_cert_database_chromeos.cc',
139 'cert/nss_cert_database_chromeos.h',
140 'cert/nss_profile_filter_chromeos.cc',
141 'cert/nss_profile_filter_chromeos.h',
142 'cert/scoped_nss_types.h',
143 'cert/sha256_legacy_support_nss_win.cc',
144 'cert/test_root_certs_nss.cc',
145 'cert/x509_certificate_nss.cc',
146 'cert/x509_util_nss.cc',
147 'cert/x509_util_nss.h',
148 'ocsp/nss_ocsp.cc',
149 'ocsp/nss_ocsp.h',
150 'quic/crypto/aead_base_decrypter_nss.cc',
151 'quic/crypto/aead_base_encrypter_nss.cc',
152 'quic/crypto/aes_128_gcm_12_decrypter_nss.cc',
153 'quic/crypto/aes_128_gcm_12_encrypter_nss.cc',
154 'quic/crypto/chacha20_poly1305_decrypter_nss.cc',
155 'quic/crypto/chacha20_poly1305_encrypter_nss.cc',
156 'quic/crypto/channel_id_nss.cc',
157 'quic/crypto/p256_key_exchange_nss.cc',
158 'socket/nss_ssl_util.cc',
159 'socket/nss_ssl_util.h',
160 'socket/ssl_client_socket_nss.cc',
161 'socket/ssl_client_socket_nss.h',
162 'socket/ssl_server_socket_nss.cc',
163 'socket/ssl_server_socket_nss.h',
164 'third_party/mozilla_security_manager/nsKeygenHandler.cpp',
165 'third_party/mozilla_security_manager/nsKeygenHandler.h',
166 'third_party/mozilla_security_manager/nsNSSCertificateDB.cpp',
167 'third_party/mozilla_security_manager/nsNSSCertificateDB.h',
168 'third_party/mozilla_security_manager/nsPKCS12Blob.cpp',
169 'third_party/mozilla_security_manager/nsPKCS12Blob.h',
170 ],
171 'dependencies': [
172 '../third_party/boringssl/boringssl.gyp:boringssl',
173 ],
174 },
175 { # else !use_openssl: remove the unneeded files and depend on NSS.
176 'sources!': [
177 'base/crypto_module_openssl.cc',
178 'cert/ct_log_verifier_openssl.cc',
179 'cert/ct_objects_extractor_openssl.cc',
180 'cert/jwk_serializer_openssl.cc',
181 'cert/sha256_legacy_support_openssl_win.cc',
182 'cert/x509_util_openssl.cc',
183 'cert/x509_util_openssl.h',
184 'quic/crypto/aead_base_decrypter_openssl.cc',
185 'quic/crypto/aead_base_encrypter_openssl.cc',
186 'quic/crypto/aes_128_gcm_12_decrypter_openssl.cc',
187 'quic/crypto/aes_128_gcm_12_encrypter_openssl.cc',
188 'quic/crypto/chacha20_poly1305_decrypter_openssl.cc',
189 'quic/crypto/chacha20_poly1305_encrypter_openssl.cc',
190 'quic/crypto/channel_id_openssl.cc',
191 'quic/crypto/p256_key_exchange_openssl.cc',
192 'quic/crypto/scoped_evp_aead_ctx.cc',
193 'quic/crypto/scoped_evp_aead_ctx.h',
194 'socket/ssl_client_socket_openssl.cc',
195 'socket/ssl_client_socket_openssl.h',
196 'socket/ssl_server_socket_openssl.cc',
197 'socket/ssl_server_socket_openssl.h',
198 'socket/ssl_session_cache_openssl.cc',
199 'socket/ssl_session_cache_openssl.h',
200 'ssl/openssl_platform_key.h',
201 'ssl/openssl_platform_key_mac.cc',
202 'ssl/openssl_platform_key_win.cc',
203 'ssl/openssl_ssl_util.cc',
204 'ssl/openssl_ssl_util.h',
205 ],
206 'conditions': [
207 # Pull in the bundled or system NSS as appropriate.
208 [ 'desktop_linux == 1 or chromeos == 1', {
209 'dependencies': [
210 '../build/linux/system.gyp:ssl',
211 ],
212 }, {
213 'dependencies': [
214 '../third_party/nss/nss.gyp:nspr',
215 '../third_party/nss/nss.gyp:nss',
216 'third_party/nss/ssl.gyp:libssl',
217 ],
218 }]
219 ],
220 },
221 ],
222 [ 'use_openssl_certs == 0', {
223 'sources!': [
224 'base/keygen_handler_openssl.cc',
225 'base/openssl_private_key_store.h',
226 'base/openssl_private_key_store_android.cc',
227 'base/openssl_private_key_store_memory.cc',
228 'cert/cert_database_openssl.cc',
229 'cert/cert_verify_proc_openssl.cc',
230 'cert/cert_verify_proc_openssl.h',
231 'cert/test_root_certs_openssl.cc',
232 'cert/x509_certificate_openssl.cc',
233 'ssl/openssl_client_key_store.cc',
234 'ssl/openssl_client_key_store.h',
235 ],
236 }],
237 [ 'use_glib == 1', {
238 'dependencies': [
239 '../build/linux/system.gyp:gconf',
240 '../build/linux/system.gyp:gio',
241 ],
242 }],
243 [ 'desktop_linux == 1 or chromeos == 1', {
244 'conditions': [
245 ['os_bsd==1', {
246 'sources!': [
247 'base/network_change_notifier_linux.cc',
248 'base/network_change_notifier_netlink_linux.cc',
249 'proxy/proxy_config_service_linux.cc',
250 ],
251 },{
252 'dependencies': [
253 '../build/linux/system.gyp:libresolv',
254 ],
255 }],
256 ['OS=="solaris"', {
257 'link_settings': {
258 'ldflags': [
259 '-R/usr/lib/mps',
260 ],
261 },
262 }],
263 ],
264 },
265 { # else: OS is not in the above list
266 'sources!': [
267 'base/crypto_module_nss.cc',
268 'base/keygen_handler_nss.cc',
269 'cert/cert_database_nss.cc',
270 'cert/nss_cert_database.cc',
271 'cert/nss_cert_database.h',
272 'cert/test_root_certs_nss.cc',
273 'cert/x509_certificate_nss.cc',
274 'ocsp/nss_ocsp.cc',
275 'ocsp/nss_ocsp.h',
276 'third_party/mozilla_security_manager/nsKeygenHandler.cpp',
277 'third_party/mozilla_security_manager/nsKeygenHandler.h',
278 'third_party/mozilla_security_manager/nsNSSCertificateDB.cpp',
279 'third_party/mozilla_security_manager/nsNSSCertificateDB.h',
280 'third_party/mozilla_security_manager/nsPKCS12Blob.cpp',
281 'third_party/mozilla_security_manager/nsPKCS12Blob.h',
282 ],
283 },
284 ],
285 [ 'use_nss != 1', {
286 'sources!': [
287 'cert/cert_verify_proc_nss.cc',
288 'cert/cert_verify_proc_nss.h',
289 'ssl/client_cert_store_chromeos.cc',
290 'ssl/client_cert_store_chromeos.h',
291 'ssl/client_cert_store_nss.cc',
292 'ssl/client_cert_store_nss.h',
293 ],
294 }],
295 [ 'enable_websockets != 1', {
296 'sources/': [
297 ['exclude', '^websockets/'],
298 ],
299 }],
300 [ 'enable_mdns != 1', {
301 'sources!' : [
302 'dns/mdns_cache.cc',
303 'dns/mdns_cache.h',
304 'dns/mdns_client.cc',
305 'dns/mdns_client.h',
306 'dns/mdns_client_impl.cc',
307 'dns/mdns_client_impl.h',
308 'dns/record_parsed.cc',
309 'dns/record_parsed.h',
310 'dns/record_rdata.cc',
311 'dns/record_rdata.h',
312 ]
313 }],
314 [ 'OS == "win"', {
315 'sources!': [
316 'http/http_auth_handler_ntlm_portable.cc',
317 'socket/socket_libevent.cc',
318 'socket/socket_libevent.h',
319 'socket/tcp_socket_libevent.cc',
320 'socket/tcp_socket_libevent.h',
321 'udp/udp_socket_libevent.cc',
322 'udp/udp_socket_libevent.h',
323 ],
324 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
325 'msvs_disabled_warnings': [4267, ],
326 }, { # else: OS != "win"
327 'sources!': [
328 'base/winsock_init.cc',
329 'base/winsock_init.h',
330 'base/winsock_util.cc',
331 'base/winsock_util.h',
332 'proxy/proxy_resolver_winhttp.cc',
333 'proxy/proxy_resolver_winhttp.h',
334 ],
335 },
336 ],
337 [ 'OS == "mac"', {
338 'link_settings': {
339 'libraries': [
340 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
341 '$(SDKROOT)/System/Library/Frameworks/Security.framework',
342 '$(SDKROOT)/System/Library/Frameworks/SystemConfiguration.framework' ,
343 '$(SDKROOT)/usr/lib/libresolv.dylib',
344 ]
345 },
346 },
347 ],
348 [ 'OS == "ios"', {
349 'sources!': [
350 'disk_cache/blockfile/file_posix.cc',
351 ],
352 'link_settings': {
353 'libraries': [
354 '$(SDKROOT)/System/Library/Frameworks/CFNetwork.framework',
355 '$(SDKROOT)/System/Library/Frameworks/MobileCoreServices.framework',
356 '$(SDKROOT)/System/Library/Frameworks/Security.framework',
357 '$(SDKROOT)/System/Library/Frameworks/SystemConfiguration.framework' ,
358 '$(SDKROOT)/usr/lib/libresolv.dylib',
359 ],
360 },
361 },
362 ],
363 [ 'OS == "ios" or OS == "mac"', {
364 'sources': [
365 '<@(net_base_mac_ios_sources)',
366 ],
367 },
368 ],
369 ['OS=="android" and _toolset=="target" and android_webview_build == 0', {
370 'dependencies': [
371 'net_java',
372 ],
373 }],
374 [ 'OS == "android"', {
375 'dependencies': [
376 'net_jni_headers',
377 ],
378 'sources!': [
379 'base/openssl_private_key_store_memory.cc',
380 'cert/cert_database_openssl.cc',
381 'cert/cert_verify_proc_openssl.cc',
382 'cert/test_root_certs_openssl.cc',
383 ],
384 },
385 ],
386 ],
387 'target_conditions': [
388 # These source files are excluded by default platform rules, but they
389 # are needed in specific cases on other platforms. Re-including them can
390 # only be done in target_conditions as it is evaluated after the
391 # platform rules.
392 ['OS == "android"', {
393 'sources/': [
394 ['include', '^base/platform_mime_util_linux\\.cc$'],
395 ['include', '^base/address_tracker_linux\\.cc$'],
396 ['include', '^base/address_tracker_linux\\.h$'],
397 ['include', '^base/net_util_linux\\.cc$'],
398 ['include', '^base/net_util_linux\\.h$'],
399 ],
400 }],
401 ['OS == "ios"', {
402 'sources/': [
403 ['include', '^base/net_util_mac\\.cc$'],
404 ['include', '^base/net_util_mac\\.h$'],
405 ['include', '^base/network_change_notifier_mac\\.cc$'],
406 ['include', '^base/network_config_watcher_mac\\.cc$'],
407 ['include', '^base/platform_mime_util_mac\\.mm$'],
408 # The iOS implementation only partially uses NSS and thus does not
409 # defines |use_nss|. In particular the |USE_NSS| preprocessor
410 # definition is not used. The following files are needed though:
411 ['include', '^cert/cert_verify_proc_nss\\.cc$'],
412 ['include', '^cert/cert_verify_proc_nss\\.h$'],
413 ['include', '^cert/test_root_certs_nss\\.cc$'],
414 ['include', '^cert/x509_util_nss\\.cc$'],
415 ['include', '^cert/x509_util_nss\\.h$'],
416 ['include', '^proxy/proxy_resolver_mac\\.cc$'],
417 ['include', '^proxy/proxy_server_mac\\.cc$'],
418 ['include', '^ocsp/nss_ocsp\\.cc$'],
419 ['include', '^ocsp/nss_ocsp\\.h$'],
420 ],
421 }],
422 ],
423 }
OLDNEW
« net/net.gyp ('K') | « net/net.gypi ('k') | url/url.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698