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

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: Extract cronet_static.gypi 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.gyp ('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 2013 The Chromium Authors. All rights reserved.
mmenke 2015/02/25 16:34:54 2015? Not really sure.
mef 2015/02/26 21:22:51 Done.
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'.
mmenke 2015/02/25 16:34:54 into -> in
mef 2015/02/26 21:22:51 Done.
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',
mmenke 2015/02/25 16:34:54 Can we move these two dependencies, and the base_i
mef 2015/02/26 21:22:51 Done.
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 'quic/crypto/aead_base_decrypter_openssl.cc',
189 'quic/crypto/aead_base_encrypter_openssl.cc',
190 'quic/crypto/aes_128_gcm_12_decrypter_openssl.cc',
191 'quic/crypto/aes_128_gcm_12_encrypter_openssl.cc',
192 'quic/crypto/chacha20_poly1305_decrypter_openssl.cc',
193 'quic/crypto/chacha20_poly1305_encrypter_openssl.cc',
194 'quic/crypto/channel_id_openssl.cc',
195 'quic/crypto/p256_key_exchange_openssl.cc',
196 'quic/crypto/scoped_evp_aead_ctx.cc',
197 'quic/crypto/scoped_evp_aead_ctx.h',
198 'socket/ssl_client_socket_openssl.cc',
199 'socket/ssl_client_socket_openssl.h',
200 'socket/ssl_server_socket_openssl.cc',
201 'socket/ssl_server_socket_openssl.h',
202 'socket/ssl_session_cache_openssl.cc',
203 'socket/ssl_session_cache_openssl.h',
204 'ssl/openssl_platform_key.h',
205 'ssl/openssl_platform_key_mac.cc',
206 'ssl/openssl_platform_key_win.cc',
207 'ssl/openssl_ssl_util.cc',
208 'ssl/openssl_ssl_util.h',
209 ],
210 'conditions': [
211 # Pull in the bundled or system NSS as appropriate.
212 [ 'desktop_linux == 1 or chromeos == 1', {
213 'dependencies': [
214 '../build/linux/system.gyp:ssl',
215 ],
216 }, {
217 'dependencies': [
218 '../third_party/nss/nss.gyp:nspr',
219 '../third_party/nss/nss.gyp:nss',
220 'third_party/nss/ssl.gyp:libssl',
221 ],
222 }]
223 ],
224 },
225 ],
226 [ 'use_openssl_certs == 0', {
227 'sources!': [
228 'base/keygen_handler_openssl.cc',
229 'base/openssl_private_key_store.h',
230 'base/openssl_private_key_store_android.cc',
231 'base/openssl_private_key_store_memory.cc',
232 'cert/cert_database_openssl.cc',
233 'cert/cert_verify_proc_openssl.cc',
234 'cert/cert_verify_proc_openssl.h',
235 'cert/test_root_certs_openssl.cc',
236 'cert/x509_certificate_openssl.cc',
237 'ssl/openssl_client_key_store.cc',
238 'ssl/openssl_client_key_store.h',
239 ],
240 }],
241 [ 'use_glib == 1', {
242 'dependencies': [
243 '../build/linux/system.gyp:gconf',
244 '../build/linux/system.gyp:gio',
245 ],
246 }],
247 [ 'desktop_linux == 1 or chromeos == 1', {
248 'conditions': [
249 ['os_bsd==1', {
250 'sources!': [
251 'base/network_change_notifier_linux.cc',
252 'base/network_change_notifier_netlink_linux.cc',
253 'proxy/proxy_config_service_linux.cc',
254 ],
255 },{
256 'dependencies': [
257 '../build/linux/system.gyp:libresolv',
258 ],
259 }],
260 ['OS=="solaris"', {
261 'link_settings': {
262 'ldflags': [
263 '-R/usr/lib/mps',
264 ],
265 },
266 }],
267 ],
268 },
269 { # else: OS is not in the above list
270 'sources!': [
271 'base/crypto_module_nss.cc',
272 'base/keygen_handler_nss.cc',
273 'cert/cert_database_nss.cc',
274 'cert/nss_cert_database.cc',
275 'cert/nss_cert_database.h',
276 'cert/test_root_certs_nss.cc',
277 'cert/x509_certificate_nss.cc',
278 'ocsp/nss_ocsp.cc',
279 'ocsp/nss_ocsp.h',
280 'third_party/mozilla_security_manager/nsKeygenHandler.cpp',
281 'third_party/mozilla_security_manager/nsKeygenHandler.h',
282 'third_party/mozilla_security_manager/nsNSSCertificateDB.cpp',
283 'third_party/mozilla_security_manager/nsNSSCertificateDB.h',
284 'third_party/mozilla_security_manager/nsPKCS12Blob.cpp',
285 'third_party/mozilla_security_manager/nsPKCS12Blob.h',
286 ],
287 },
288 ],
289 [ 'use_nss != 1', {
290 'sources!': [
291 'cert/cert_verify_proc_nss.cc',
292 'cert/cert_verify_proc_nss.h',
293 'ssl/client_cert_store_chromeos.cc',
294 'ssl/client_cert_store_chromeos.h',
295 'ssl/client_cert_store_nss.cc',
296 'ssl/client_cert_store_nss.h',
297 ],
298 }],
299 [ 'enable_websockets != 1', {
300 'sources/': [
301 ['exclude', '^websockets/'],
302 ],
303 }],
304 [ 'enable_mdns != 1', {
305 'sources!' : [
306 'dns/mdns_cache.cc',
307 'dns/mdns_cache.h',
308 'dns/mdns_client.cc',
309 'dns/mdns_client.h',
310 'dns/mdns_client_impl.cc',
311 'dns/mdns_client_impl.h',
312 'dns/record_parsed.cc',
313 'dns/record_parsed.h',
314 'dns/record_rdata.cc',
315 'dns/record_rdata.h',
316 ]
317 }],
318 [ 'OS == "win"', {
319 'sources!': [
320 'http/http_auth_handler_ntlm_portable.cc',
321 'socket/socket_libevent.cc',
322 'socket/socket_libevent.h',
323 'socket/tcp_socket_libevent.cc',
324 'socket/tcp_socket_libevent.h',
325 'udp/udp_socket_libevent.cc',
326 'udp/udp_socket_libevent.h',
327 ],
328 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
329 'msvs_disabled_warnings': [4267, ],
330 }, { # else: OS != "win"
331 'sources!': [
332 'base/winsock_init.cc',
333 'base/winsock_init.h',
334 'base/winsock_util.cc',
335 'base/winsock_util.h',
336 'proxy/proxy_resolver_winhttp.cc',
337 'proxy/proxy_resolver_winhttp.h',
338 ],
339 },
340 ],
341 [ 'OS == "mac"', {
342 'link_settings': {
343 'libraries': [
344 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
345 '$(SDKROOT)/System/Library/Frameworks/Security.framework',
346 '$(SDKROOT)/System/Library/Frameworks/SystemConfiguration.framework' ,
347 '$(SDKROOT)/usr/lib/libresolv.dylib',
348 ]
349 },
350 },
351 ],
352 [ 'OS == "ios"', {
353 'sources!': [
354 'disk_cache/blockfile/file_posix.cc',
355 ],
356 'link_settings': {
357 'libraries': [
358 '$(SDKROOT)/System/Library/Frameworks/CFNetwork.framework',
359 '$(SDKROOT)/System/Library/Frameworks/MobileCoreServices.framework',
360 '$(SDKROOT)/System/Library/Frameworks/Security.framework',
361 '$(SDKROOT)/System/Library/Frameworks/SystemConfiguration.framework' ,
362 '$(SDKROOT)/usr/lib/libresolv.dylib',
363 ],
364 },
365 },
366 ],
367 [ 'OS == "ios" or OS == "mac"', {
368 'sources': [
369 '<@(net_base_mac_ios_sources)',
370 ],
371 },
372 ],
373 ['OS=="android" and _toolset=="target" and android_webview_build == 0', {
374 'dependencies': [
375 'net_java',
376 ],
377 }],
378 [ 'OS == "android"', {
379 'dependencies': [
380 'net_jni_headers',
381 ],
382 'sources!': [
383 'base/openssl_private_key_store_memory.cc',
384 'cert/cert_database_openssl.cc',
385 'cert/cert_verify_proc_openssl.cc',
386 'cert/test_root_certs_openssl.cc',
387 ],
388 },
389 ],
390 [ 'use_icu_alternatives_on_android == 1', {
391 'dependencies!': [
392 '../base/base.gyp:base_i18n',
393 '../third_party/icu/icu.gyp:icui18n',
394 '../third_party/icu/icu.gyp:icuuc',
395 ],
396 'sources!': [
397 'base/filename_util_icu.cc',
398 'base/net_string_util_icu.cc',
399 'base/net_util_icu.cc',
400 ],
401 'sources': [
402 'base/net_string_util_icu_alternatives_android.cc',
403 'base/net_string_util_icu_alternatives_android.h',
404 ],
405 },
406 ],
407 ],
408 'target_conditions': [
409 # These source files are excluded by default platform rules, but they
410 # are needed in specific cases on other platforms. Re-including them can
411 # only be done in target_conditions as it is evaluated after the
412 # platform rules.
413 ['OS == "android"', {
414 'sources/': [
415 ['include', '^base/platform_mime_util_linux\\.cc$'],
416 ['include', '^base/address_tracker_linux\\.cc$'],
417 ['include', '^base/address_tracker_linux\\.h$'],
418 ['include', '^base/net_util_linux\\.cc$'],
419 ['include', '^base/net_util_linux\\.h$'],
420 ],
421 }],
422 ['OS == "ios"', {
423 'sources/': [
424 ['include', '^base/net_util_mac\\.cc$'],
425 ['include', '^base/net_util_mac\\.h$'],
426 ['include', '^base/network_change_notifier_mac\\.cc$'],
427 ['include', '^base/network_config_watcher_mac\\.cc$'],
428 ['include', '^base/platform_mime_util_mac\\.mm$'],
429 # The iOS implementation only partially uses NSS and thus does not
430 # defines |use_nss|. In particular the |USE_NSS| preprocessor
431 # definition is not used. The following files are needed though:
432 ['include', '^cert/cert_verify_proc_nss\\.cc$'],
433 ['include', '^cert/cert_verify_proc_nss\\.h$'],
434 ['include', '^cert/test_root_certs_nss\\.cc$'],
435 ['include', '^cert/x509_util_nss\\.cc$'],
436 ['include', '^cert/x509_util_nss\\.h$'],
437 ['include', '^proxy/proxy_resolver_mac\\.cc$'],
438 ['include', '^proxy/proxy_server_mac\\.cc$'],
439 ['include', '^ocsp/nss_ocsp\\.cc$'],
440 ['include', '^ocsp/nss_ocsp\\.h$'],
441 ],
442 }],
443 ],
444 }
OLDNEW
« net/net.gyp ('K') | « net/net.gyp ('k') | url/url.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698