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

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

Powered by Google App Engine
This is Rietveld 408576698