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

Side by Side Diff: net/net.gyp

Issue 2332843004: Remove GYP files. (Closed)
Patch Set: Merge Created 4 years, 3 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 | « native_client_sdk/native_client_sdk_untrusted.gyp ('k') | net/net_common.gypi » ('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.
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 'variables': {
7 'chromium_code': 1,
8 'linux_link_kerberos%': 0,
9 'conditions': [
10 ['chromeos==1 or embedded==1 or OS=="ios"', {
11 # Disable Kerberos on ChromeOS and iOS, at least for now.
12 # It needs configuration (krb5.conf and so on).
13 'use_kerberos%': 0,
14 }, { # chromeos == 0 and embedded==0 and OS!="ios"
15 'use_kerberos%': 1,
16 }],
17 ['OS=="android" and target_arch != "ia32"', {
18 # The way the cache uses mmap() is inefficient on some Android devices.
19 # If this flag is set, we hackily avoid using mmap() in the disk cache.
20 # We are pretty confident that mmap-ing the index would not hurt any
21 # existing x86 android devices, but we cannot be so sure about the
22 # variety of ARM devices. So enable it for x86 only for now.
23 'posix_avoid_mmap%': 1,
24 }, {
25 'posix_avoid_mmap%': 0,
26 }],
27 ['OS=="ios"', {
28 # Websockets and socket stream are not used on iOS.
29 'enable_websockets%': 0,
30 # iOS does not use V8.
31 'use_v8_in_net%': 0,
32 'enable_built_in_dns%': 0,
33 }, {
34 'enable_websockets%': 1,
35 'use_v8_in_net%': 1,
36 'enable_built_in_dns%': 1,
37 }],
38 ],
39 },
40 'includes': [
41 '../build/win_precompile.gypi',
42 'net.gypi',
43 ],
44 'targets': [
45 {
46 'target_name': 'net_derived_sources',
47 'type': 'none',
48 'sources': [
49 'base/registry_controlled_domains/effective_tld_names.gperf',
50 'base/registry_controlled_domains/effective_tld_names_unittest1.gperf',
51 'base/registry_controlled_domains/effective_tld_names_unittest2.gperf',
52 'base/registry_controlled_domains/effective_tld_names_unittest3.gperf',
53 'base/registry_controlled_domains/effective_tld_names_unittest4.gperf',
54 'base/registry_controlled_domains/effective_tld_names_unittest5.gperf',
55 'base/registry_controlled_domains/effective_tld_names_unittest6.gperf',
56 'base/stale_while_revalidate_experiment_domains.gperf',
57 ],
58 'rules': [
59 {
60 'rule_name': 'dafsa',
61 'extension': 'gperf',
62 'outputs': [
63 '<(SHARED_INTERMEDIATE_DIR)/net/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_R OOT)-inc.cc',
64 ],
65 'inputs': [
66 'tools/dafsa/make_dafsa.py',
67 ],
68 'action': [
69 'python',
70 'tools/dafsa/make_dafsa.py',
71 '<(RULE_INPUT_PATH)',
72 '<(SHARED_INTERMEDIATE_DIR)/net/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_R OOT)-inc.cc',
73 ],
74 },
75 ],
76 'direct_dependent_settings': {
77 'include_dirs': [
78 '<(SHARED_INTERMEDIATE_DIR)'
79 ],
80 },
81 },
82 {
83 # Protobuf compiler / generator for QUIC crypto protocol buffer.
84 # GN version: //net:net_quic_proto
85 'target_name': 'net_quic_proto',
86 'type': 'static_library',
87 'sources': [
88 'quic/core/proto/cached_network_parameters.proto',
89 'quic/core/proto/source_address_token.proto',
90 ],
91 'variables': {
92 'enable_wexit_time_destructors': 1,
93 'proto_in_dir': 'quic/core/proto',
94 'proto_out_dir': 'net/quic/core/proto',
95 'cc_generator_options': 'dllexport_decl=NET_EXPORT_PRIVATE:',
96 'cc_include': 'net/base/net_export.h',
97 },
98 'includes': [
99 '../build/protoc.gypi',
100 ],
101 'defines': [
102 'NET_IMPLEMENTATION',
103 ],
104 },
105 {
106 # GN version: //net
107 'target_name': 'net',
108 'dependencies': [
109 '../url/url.gyp:url_lib',
110 ],
111 'includes': [ 'net_common.gypi' ],
112
113 'conditions': [
114 # ICU Alternatives
115 ['use_platform_icu_alternatives == 1', {
116 'conditions': [
117 ['OS == "android"', {
118 'sources': [
119 'base/net_string_util_icu_alternatives_android.cc',
120 ],
121 }],
122 ['OS == "ios"', {
123 'sources': [
124 'base/net_string_util_icu_alternatives_ios.mm',
125 ],
126 }],
127 ],
128 },
129 # 'use_platform_icu_alternatives != 1'
130 {
131 'sources': [
132 'base/filename_util_icu.cc',
133 'base/net_string_util_icu.cc',
134 ],
135 'dependencies': [
136 '../base/base.gyp:base_i18n',
137 '../third_party/icu/icu.gyp:icui18n',
138 '../third_party/icu/icu.gyp:icuuc',
139 '../third_party/protobuf/protobuf.gyp:protobuf_lite',
140 'net_quic_proto',
141 ],
142 }],
143 # Brotli support.
144 ['disable_brotli_filter == 1', {
145 'sources': [
146 'filter/brotli_filter_disabled.cc',
147 ],
148 },
149 # 'disable_brotli_filter != 1'
150 {
151 'sources': [
152 'filter/brotli_filter.cc',
153 ],
154 'dependencies': [
155 '../third_party/brotli/brotli.gyp:brotli',
156 ],
157 }],
158 ],
159 },
160 {
161 # GN version: //net:net_unittests
162 'target_name': 'net_unittests',
163 'type': '<(gtest_target_type)',
164 'dependencies': [
165 '../base/base.gyp:base',
166 '../base/base.gyp:base_i18n',
167 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations',
168 '../crypto/crypto.gyp:crypto',
169 '../crypto/crypto.gyp:crypto_test_support',
170 '../testing/gmock.gyp:gmock',
171 '../testing/gtest.gyp:gtest',
172 '../third_party/boringssl/boringssl.gyp:boringssl',
173 '../third_party/zlib/zlib.gyp:zlib',
174 '../url/url.gyp:url_url_features',
175 '../url/url.gyp:url_lib',
176 'balsa',
177 'net',
178 'net_quic_proto',
179 'net_derived_sources',
180 'net_extras',
181 'net_test_support',
182 'simple_quic_tools',
183 'stale_while_revalidate_experiment_domains',
184 ],
185 'sources': [
186 '<@(net_test_sources)',
187 ],
188 'conditions': [
189 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
190 'dependencies': [
191 'epoll_quic_tools',
192 'epoll_server',
193 ],
194 'sources': [
195 '<@(net_linux_test_sources)',
196 ],
197 }],
198 ['OS == "mac" or OS == "ios"', {
199 'sources': [
200 '<@(net_base_test_mac_ios_sources)',
201 ],
202 }],
203 ['chromeos==1', {
204 'sources!': [
205 'proxy/proxy_config_service_linux_unittest.cc',
206 ],
207 }],
208 [ 'OS == "android"', {
209 'dependencies': [
210 'net_javatests',
211 ],
212 }],
213 [ 'use_nss_certs != 1', {
214 'sources!': [
215 'cert/internal/trust_store_nss_unittest.cc',
216 'cert/nss_cert_database_chromeos_unittest.cc',
217 'cert/nss_cert_database_unittest.cc',
218 'cert/nss_profile_filter_chromeos_unittest.cc',
219 'ssl/client_cert_store_nss_unittest.cc',
220 ],
221 }],
222 [ 'use_nss_certs == 1', {
223 'conditions': [
224 [ 'desktop_linux == 1 or chromeos == 1', {
225 'dependencies': [
226 '../build/linux/system.gyp:nss',
227 ],
228 }, { # desktop_linux == 0 and chromeos == 0
229 'dependencies': [
230 '../third_party/nss/nss.gyp:nspr',
231 '../third_party/nss/nss.gyp:nss',
232 'third_party/nss/ssl.gyp:libssl',
233 ],
234 }],
235 ],
236 }],
237 [ 'use_kerberos==1', {
238 'defines': [
239 'USE_KERBEROS',
240 ],
241 }],
242 [ 'use_kerberos==0 or OS == "android"', {
243 # These are excluded on Android, because the actual Kerberos support,
244 # which these test, is in a separate app on Android.
245 'sources!': [
246 'http/http_auth_gssapi_posix_unittest.cc',
247 'http/mock_gssapi_library_posix.cc',
248 'http/mock_gssapi_library_posix.h',
249 ],
250 }],
251 [ 'use_kerberos==0', {
252 'sources!': [
253 'http/http_auth_handler_negotiate_unittest.cc',
254 ],
255 }],
256 [ 'use_nss_certs == 0', {
257 # Only include this test when using NSS for cert verification.
258 'sources!': [
259 'cert_net/nss_ocsp_unittest.cc',
260 ],
261 }],
262 [ 'OS == "ios"', {
263 # Only include these files on iOS when using NSS for cert
264 # verification.
265 'sources!': [
266 'cert/x509_util_ios.cc',
267 'cert/x509_util_ios.h',
268 ],
269 }],
270 [ 'use_openssl_certs == 0', {
271 'sources!': [
272 'ssl/openssl_client_key_store_unittest.cc',
273 ],
274 }],
275 [ 'enable_websockets == 1', {
276 'sources': [
277 '<@(net_websockets_test_sources)',
278 ],
279 'defines': [
280 'ENABLE_WEBSOCKETS',
281 ],
282 'dependencies': [
283 'http_server',
284 ],
285 }],
286 ['disable_file_support==1', {
287 'sources!': [
288 'base/directory_lister_unittest.cc',
289 'base/directory_listing_unittest.cc',
290 'url_request/url_request_file_dir_job_unittest.cc',
291 'url_request/url_request_file_job_unittest.cc',
292 ],
293 }],
294 [ 'disable_ftp_support==1', {
295 'sources/': [
296 ['exclude', '^ftp/'],
297 ],
298 'sources!': [
299 'url_request/url_request_ftp_job_unittest.cc',
300 ],
301 },
302 ],
303 [ 'enable_built_in_dns!=1', {
304 'sources!': [
305 'dns/address_sorter_posix_unittest.cc',
306 'dns/address_sorter_unittest.cc',
307 ],
308 },
309 ],
310 [ 'use_v8_in_net==1', {
311 'dependencies': [
312 'net_with_v8',
313 ],
314 }, { # else: !use_v8_in_net
315 'sources!': [
316 'proxy/proxy_resolver_v8_tracing_unittest.cc',
317 'proxy/proxy_resolver_v8_tracing_wrapper_unittest.cc',
318 'proxy/proxy_resolver_v8_unittest.cc',
319 ],
320 },
321 ],
322
323 [ 'use_v8_in_net==1 and OS != "android"', {
324 'dependencies': [
325 'net_with_v8',
326 'net_browser_services',
327 'net_utility_services',
328 '../mojo/mojo_edk.gyp:mojo_system_impl',
329 ],
330 }, { # else
331 'sources!': [
332 'dns/host_resolver_mojo_unittest.cc',
333 'dns/mojo_host_resolver_impl_unittest.cc',
334 'proxy/mojo_proxy_resolver_factory_impl_unittest.cc',
335 'proxy/mojo_proxy_resolver_impl_unittest.cc',
336 'proxy/mojo_proxy_resolver_v8_tracing_bindings_unittest.cc',
337 'proxy/proxy_resolver_factory_mojo_unittest.cc',
338 'proxy/proxy_service_mojo_unittest.cc',
339 ],
340 },
341 ],
342
343 [ 'enable_mdns != 1', {
344 'sources!' : [
345 'dns/mdns_cache_unittest.cc',
346 'dns/mdns_client_unittest.cc',
347 'dns/mdns_query_unittest.cc',
348 ],
349 }],
350 [ 'OS == "win"', {
351 'sources!': [
352 'dns/dns_config_service_posix_unittest.cc',
353 'http/http_auth_gssapi_posix_unittest.cc',
354 ],
355 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
356 'msvs_disabled_warnings': [4267, ],
357 'conditions': [
358 [ 'icu_use_data_file_flag == 0', {
359 # This is needed to trigger the dll copy step on windows.
360 # TODO(mark): Specifying this here shouldn't be necessary.
361 'dependencies': [
362 '../third_party/icu/icu.gyp:icudata',
363 ],
364 }],
365 ],
366 },
367 ],
368 [ 'OS == "ios"', {
369 'actions': [
370 {
371 'action_name': 'copy_test_data',
372 'variables': {
373 'test_data_files': [
374 '<@(net_test_support_data_sources)',
375 '<@(net_unittests_data_sources)',
376 ],
377 'test_data_prefix': 'net',
378 },
379 'includes': [ '../build/copy_test_data_ios.gypi' ],
380 },
381 ],
382 'sources!': [
383 # Need TestServer.
384 "cert_net/cert_net_fetcher_impl_unittest.cc",
385 # TODO(droger): The following tests are disabled because the
386 # implementation is missing or incomplete.
387 # KeygenHandler::GenKeyAndSignChallenge() is not ported to iOS.
388 'base/keygen_handler_unittest.cc',
389 'disk_cache/backend_unittest.cc',
390 'disk_cache/blockfile/block_files_unittest.cc',
391 # Need to read input data files.
392 'filter/brotli_filter_unittest.cc',
393 'filter/gzip_filter_unittest.cc',
394 'proxy/proxy_script_fetcher_impl_unittest.cc',
395 'socket/ssl_client_socket_unittest.cc',
396 'socket/ssl_server_socket_unittest.cc',
397 'spdy/fuzzing/hpack_fuzz_util_test.cc',
398 # Needs GetAppOutput().
399 'test/python_utils_unittest.cc',
400 'url_request/url_fetcher_impl_unittest.cc',
401 'url_request/url_request_context_builder_unittest.cc',
402
403 # The following tests are disabled because they don't apply to
404 # iOS.
405 # OS is not "linux" or "freebsd" or "openbsd".
406 'socket/unix_domain_client_socket_posix_unittest.cc',
407 'socket/unix_domain_server_socket_posix_unittest.cc',
408 ],
409 }],
410 ['OS == "android"', {
411 # TODO(mmenke): This depends on test_support_base, which depends on
412 # icu. Figure out a way to remove that dependency.
413 'dependencies': [
414 '../testing/android/native_test.gyp:native_test_native_code',
415 ]
416 }],
417 ['use_v8_in_net==1 and v8_use_external_startup_data==1', {
418 'dependencies': [
419 '../gin/gin.gyp:gin',
420 ]
421 }],
422 # Unit tests that are not supported by the current ICU alternatives on A ndroid.
423 ['OS == "android" and use_platform_icu_alternatives == 1', {
424 'sources!': [
425 'base/filename_util_unittest.cc',
426 'url_request/url_request_job_unittest.cc',
427 ],
428 }],
429 # Unit tests that are not supported by the current ICU alternatives on i OS.
430 ['OS == "ios" and use_platform_icu_alternatives == 1', {
431 'sources!': [
432 'base/filename_util_unittest.cc',
433 'base/url_util_unittest.cc',
434 'cert/x509_certificate_unittest.cc',
435 'http/http_auth_handler_basic_unittest.cc',
436 'http/http_auth_handler_digest_unittest.cc',
437 'http/http_auth_handler_factory_unittest.cc',
438 'http/http_auth_unittest.cc',
439 'http/http_content_disposition_unittest.cc',
440 'http/http_network_transaction_unittest.cc',
441 'http/http_proxy_client_socket_pool_unittest.cc',
442 'socket/ssl_client_socket_pool_unittest.cc',
443 'spdy/spdy_network_transaction_unittest.cc',
444 'spdy/spdy_proxy_client_socket_unittest.cc',
445 'url_request/url_request_job_unittest.cc',
446 'url_request/url_request_unittest.cc',
447 ],
448 }],
449 # Exclude brotli test if the support for brotli is disabled.
450 ['disable_brotli_filter == 1', {
451 'sources!': [
452 'filter/brotli_filter_unittest.cc',
453 ],
454 }],
455 ],
456 'target_conditions': [
457 # These source files are excluded by default platform rules, but they
458 # are needed in specific cases on other platforms. Re-including them can
459 # only be done in target_conditions as it is evaluated after the
460 # platform rules.
461 ['OS == "android"', {
462 'sources/': [
463 ['include', '^base/address_tracker_linux_unittest\\.cc$'],
464 ],
465 }],
466 ['OS == "ios"', {
467 'sources/': [
468 ['include', '^base/mac/url_conversions_unittest\\.mm$'],
469 ],
470 }],
471 ],
472 },
473 {
474 'target_name': 'net_perftests',
475 'type': 'executable',
476 'dependencies': [
477 '../base/base.gyp:base',
478 '../base/base.gyp:base_i18n',
479 '../base/base.gyp:test_support_perf',
480 '../testing/gtest.gyp:gtest',
481 '../url/url.gyp:url_lib',
482 'net',
483 'net_extras',
484 'net_test_support',
485 ],
486 'sources': [
487 'base/mime_sniffer_perftest.cc',
488 'cookies/cookie_monster_perftest.cc',
489 'disk_cache/disk_cache_perftest.cc',
490 'extras/sqlite/sqlite_persistent_cookie_store_perftest.cc',
491 'proxy/proxy_resolver_perftest.cc',
492 'udp/udp_socket_perftest.cc',
493 'websockets/websocket_frame_perftest.cc',
494 ],
495 'conditions': [
496 [ 'use_v8_in_net==1', {
497 'dependencies': [
498 'net_with_v8',
499 ],
500 }, { # else: !use_v8_in_net
501 'sources!': [
502 'proxy/proxy_resolver_perftest.cc',
503 ],
504 },
505 ],
506 [ 'OS == "win"', {
507 'conditions': [
508 [ 'icu_use_data_file_flag == 0', {
509 # This is needed to trigger the dll copy step on windows.
510 # TODO(mark): Specifying this here shouldn't be necessary.
511 'dependencies': [
512 '../third_party/icu/icu.gyp:icudata',
513 ],
514 }],
515 ],
516 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
517 'msvs_disabled_warnings': [4267, ],
518 }],
519 [ 'enable_websockets != 1', {
520 'sources!': [
521 'websockets/websocket_frame_perftest.cc',
522 ],
523 }],
524 ],
525 },
526 {
527 'target_name': 'net_test_support',
528 'type': 'static_library',
529 'dependencies': [
530 '../base/base.gyp:base',
531 '../base/base.gyp:test_support_base',
532 '../crypto/crypto.gyp:crypto',
533 '../net/tools/tld_cleanup/tld_cleanup.gyp:tld_cleanup_util',
534 '../testing/gtest.gyp:gtest',
535 '../testing/gmock.gyp:gmock',
536 '../url/url.gyp:url_lib',
537 'net',
538 ],
539 'export_dependent_settings': [
540 '../base/base.gyp:base',
541 # TODO(mmenke): This depends on icu, figure out a way to build tests
542 # without icu.
543 '../base/base.gyp:test_support_base',
544 '../crypto/crypto.gyp:crypto',
545 '../testing/gtest.gyp:gtest',
546 '../testing/gmock.gyp:gmock',
547 ],
548 'sources': [
549 'base/load_timing_info_test_util.cc',
550 'base/load_timing_info_test_util.h',
551 'base/mock_file_stream.cc',
552 'base/mock_file_stream.h',
553 'base/test_completion_callback.cc',
554 'base/test_completion_callback.h',
555 'cert/mock_cert_verifier.cc',
556 'cert/mock_cert_verifier.h',
557 'cert/mock_client_cert_verifier.cc',
558 'cert/mock_client_cert_verifier.h',
559 'cookies/cookie_monster_store_test.cc',
560 'cookies/cookie_monster_store_test.h',
561 'cookies/cookie_store_test_callbacks.cc',
562 'cookies/cookie_store_test_callbacks.h',
563 'cookies/cookie_store_test_helpers.cc',
564 'cookies/cookie_store_test_helpers.h',
565 'cookies/cookie_store_unittest.h',
566 'disk_cache/disk_cache_test_base.cc',
567 'disk_cache/disk_cache_test_base.h',
568 'disk_cache/disk_cache_test_util.cc',
569 'disk_cache/disk_cache_test_util.h',
570 'dns/dns_test_util.cc',
571 'dns/dns_test_util.h',
572 'dns/mock_host_resolver.cc',
573 'dns/mock_host_resolver.h',
574 'dns/mock_mdns_socket_factory.cc',
575 'dns/mock_mdns_socket_factory.h',
576 'http/http_stream_factory_test_util.cc',
577 'http/http_stream_factory_test_util.h',
578 'http/http_transaction_test_util.cc',
579 'http/http_transaction_test_util.h',
580 'http/http_stream_factory_test_util.cc',
581 'http/http_stream_factory_test_util.h',
582 'log/test_net_log.cc',
583 'log/test_net_log.h',
584 'log/test_net_log_entry.cc',
585 'log/test_net_log_entry.h',
586 'log/test_net_log_util.cc',
587 'log/test_net_log_util.h',
588 'proxy/mock_proxy_resolver.cc',
589 'proxy/mock_proxy_resolver.h',
590 'proxy/mock_proxy_script_fetcher.cc',
591 'proxy/mock_proxy_script_fetcher.h',
592 'proxy/proxy_config_service_common_unittest.cc',
593 'proxy/proxy_config_service_common_unittest.h',
594 'socket/socket_test_util.cc',
595 'socket/socket_test_util.h',
596 'test/cert_test_util.cc',
597 'test/cert_test_util.h',
598 'test/cert_test_util_nss.cc',
599 'test/channel_id_test_util.cc',
600 'test/channel_id_test_util.h',
601 'test/ct_test_util.cc',
602 'test/ct_test_util.h',
603 'test/embedded_test_server/default_handlers.cc',
604 'test/embedded_test_server/default_handlers.h',
605 'test/embedded_test_server/embedded_test_server.cc',
606 'test/embedded_test_server/embedded_test_server.h',
607 'test/embedded_test_server/http_connection.cc',
608 'test/embedded_test_server/http_connection.h',
609 'test/embedded_test_server/http_request.cc',
610 'test/embedded_test_server/http_request.h',
611 'test/embedded_test_server/http_response.cc',
612 'test/embedded_test_server/http_response.h',
613 'test/embedded_test_server/request_handler_util.cc',
614 'test/embedded_test_server/request_handler_util.h',
615 'test/event_waiter.h',
616 'test/gtest_util.h',
617 'test/net_test_suite.cc',
618 'test/net_test_suite.h',
619 'test/python_utils.cc',
620 'test/python_utils.h',
621 'test/scoped_disable_exit_on_dfatal.cc',
622 'test/scoped_disable_exit_on_dfatal.h',
623 'test/spawned_test_server/base_test_server.cc',
624 'test/spawned_test_server/base_test_server.h',
625 'test/spawned_test_server/local_test_server.cc',
626 'test/spawned_test_server/local_test_server.h',
627 'test/spawned_test_server/local_test_server_posix.cc',
628 'test/spawned_test_server/local_test_server_win.cc',
629 'test/spawned_test_server/spawned_test_server.h',
630 'test/test_certificate_data.h',
631 'test/test_data_directory.cc',
632 'test/test_data_directory.h',
633 'test/url_request/ssl_certificate_error_job.cc',
634 'test/url_request/ssl_certificate_error_job.h',
635 'test/url_request/url_request_failed_job.cc',
636 'test/url_request/url_request_failed_job.h',
637 'test/url_request/url_request_hanging_read_job.cc',
638 'test/url_request/url_request_hanging_read_job.h',
639 'test/url_request/url_request_mock_data_job.cc',
640 'test/url_request/url_request_mock_data_job.h',
641 'test/url_request/url_request_slow_download_job.cc',
642 'test/url_request/url_request_slow_download_job.h',
643 'url_request/test_url_fetcher_factory.cc',
644 'url_request/test_url_fetcher_factory.h',
645 'url_request/url_request_test_util.cc',
646 'url_request/url_request_test_util.h',
647 ],
648 'conditions': [
649 ['OS != "ios"', {
650 'dependencies': [
651 '../third_party/protobuf/protobuf.gyp:py_proto',
652 ],
653 }, {
654 'sources!': [
655 'test/spawned_test_server/base_test_server.cc',
656 'test/spawned_test_server/base_test_server.h',
657 'test/spawned_test_server/local_test_server.cc',
658 'test/spawned_test_server/local_test_server.h',
659 'test/spawned_test_server/local_test_server_posix.cc',
660 'test/spawned_test_server/local_test_server_win.cc',
661 'test/spawned_test_server/spawned_test_server.h',
662 ],
663 }],
664 ['use_nss_certs == 1', {
665 'conditions': [
666 [ 'desktop_linux == 1 or chromeos == 1', {
667 'dependencies': [
668 '../build/linux/system.gyp:nss',
669 ],
670 }, { # desktop_linux == 0 and chromeos == 0
671 'dependencies': [
672 '../third_party/nss/nss.gyp:nspr',
673 '../third_party/nss/nss.gyp:nss',
674 'third_party/nss/ssl.gyp:libssl',
675 ],
676 }],
677 ],
678 }],
679 ['OS == "android"', {
680 'dependencies': [
681 'net_test_jni_headers',
682 ],
683 'sources': [
684 'test/embedded_test_server/android/embedded_test_server_android.cc',
685 'test/embedded_test_server/android/embedded_test_server_android.h',
686 'test/spawned_test_server/remote_test_server.cc',
687 'test/spawned_test_server/remote_test_server.h',
688 'test/spawned_test_server/spawner_communicator.cc',
689 'test/spawned_test_server/spawner_communicator.h',
690 ],
691 }],
692 [ 'use_v8_in_net==1', {
693 'dependencies': [
694 'net_with_v8',
695 ],
696 },
697 ],
698 [ 'enable_mdns != 1', {
699 'sources!' : [
700 'dns/mock_mdns_socket_factory.cc',
701 'dns/mock_mdns_socket_factory.h'
702 ]
703 }],
704 [ 'use_nss_certs != 1', {
705 'sources!': [
706 'test/cert_test_util_nss.cc',
707 ],
708 }],
709 ['disable_file_support != 1', {
710 'sources': [
711 'test/url_request/url_request_mock_http_job.cc',
712 'test/url_request/url_request_mock_http_job.h',
713 'url_request/test_url_request_interceptor.cc',
714 'url_request/test_url_request_interceptor.h',
715 ],
716 }],
717 ],
718 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
719 'msvs_disabled_warnings': [4267, ],
720 },
721 {
722 'target_name': 'net_resources',
723 'type': 'none',
724 'variables': {
725 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/net',
726 },
727 'actions': [
728 {
729 'action_name': 'net_resources',
730 'variables': {
731 'grit_grd_file': 'base/net_resources.grd',
732 },
733 'includes': [ '../build/grit_action.gypi' ],
734 },
735 ],
736 },
737 {
738 'target_name': 'net_extras',
739 'type': 'static_library',
740 'variables': { 'enable_wexit_time_destructors': 1, },
741 'dependencies': [
742 '../base/base.gyp:base',
743 '../sql/sql.gyp:sql',
744 'net',
745 ],
746 'sources': [
747 '<@(net_extras_sources)',
748 ],
749 },
750 {
751 'target_name': 'http_server',
752 'type': 'static_library',
753 'variables': { 'enable_wexit_time_destructors': 1, },
754 'dependencies': [
755 '../base/base.gyp:base',
756 'net',
757 ],
758 'sources': [
759 'server/http_connection.cc',
760 'server/http_connection.h',
761 'server/http_server.cc',
762 'server/http_server.h',
763 'server/http_server_request_info.cc',
764 'server/http_server_request_info.h',
765 'server/http_server_response_info.cc',
766 'server/http_server_response_info.h',
767 'server/web_socket.cc',
768 'server/web_socket.h',
769 'server/web_socket_encoder.cc',
770 'server/web_socket_encoder.h',
771 ],
772 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
773 'msvs_disabled_warnings': [4267, ],
774 },
775 { # GN version: //net:balsa
776 'target_name': 'balsa',
777 'type': 'static_library',
778 'dependencies': [
779 '../base/base.gyp:base',
780 'net',
781 ],
782 'sources': [
783 'tools/balsa/balsa_enums.h',
784 'tools/balsa/balsa_frame.cc',
785 'tools/balsa/balsa_frame.h',
786 'tools/balsa/balsa_headers.cc',
787 'tools/balsa/balsa_headers.h',
788 'tools/balsa/balsa_headers_token_utils.cc',
789 'tools/balsa/balsa_headers_token_utils.h',
790 'tools/balsa/balsa_visitor_interface.h',
791 'tools/balsa/http_message_constants.cc',
792 'tools/balsa/http_message_constants.h',
793 'tools/balsa/noop_balsa_visitor.h',
794 'tools/balsa/simple_buffer.cc',
795 'tools/balsa/simple_buffer.h',
796 'tools/balsa/string_piece_utils.h',
797 'tools/quic/spdy_balsa_utils.cc',
798 'tools/quic/spdy_balsa_utils.h',
799 ],
800 },
801 {
802 'target_name': 'dump_cache',
803 'type': 'executable',
804 'dependencies': [
805 '../base/base.gyp:base',
806 'net',
807 'net_test_support',
808 ],
809 'sources': [
810 'tools/dump_cache/dump_cache.cc',
811 'tools/dump_cache/dump_files.cc',
812 'tools/dump_cache/dump_files.h',
813 ],
814 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
815 'msvs_disabled_warnings': [4267, ],
816 },
817 {
818 'target_name': 'simple_quic_tools',
819 'type': 'static_library',
820 'dependencies': [
821 '../base/base.gyp:base',
822 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations',
823 '../url/url.gyp:url_lib',
824 'net',
825 'net_quic_proto',
826 ],
827 'sources': [
828 'tools/quic/chlo_extractor.h',
829 'tools/quic/chlo_extractor.cc',
830 'tools/quic/quic_client_base.cc',
831 'tools/quic/quic_client_base.h',
832 'tools/quic/quic_client_session.cc',
833 'tools/quic/quic_client_session.h',
834 'tools/quic/quic_dispatcher.cc',
835 'tools/quic/quic_dispatcher.h',
836 'tools/quic/quic_in_memory_cache.cc',
837 'tools/quic/quic_in_memory_cache.h',
838 'tools/quic/quic_per_connection_packet_writer.cc',
839 'tools/quic/quic_per_connection_packet_writer.h',
840 'tools/quic/quic_process_packet_interface.h',
841 'tools/quic/quic_simple_client.cc',
842 'tools/quic/quic_simple_client.h',
843 'tools/quic/quic_simple_crypto_server_stream_helper.cc',
844 'tools/quic/quic_simple_crypto_server_stream_helper.h',
845 'tools/quic/quic_simple_dispatcher.cc',
846 'tools/quic/quic_simple_dispatcher.h',
847 'tools/quic/quic_simple_per_connection_packet_writer.cc',
848 'tools/quic/quic_simple_per_connection_packet_writer.h',
849 'tools/quic/quic_simple_server.cc',
850 'tools/quic/quic_simple_server.h',
851 'tools/quic/quic_simple_server_packet_writer.cc',
852 'tools/quic/quic_simple_server_packet_writer.h',
853 'tools/quic/quic_simple_server_session.cc',
854 'tools/quic/quic_simple_server_session.h',
855 'tools/quic/quic_simple_server_session_helper.cc',
856 'tools/quic/quic_simple_server_session_helper.h',
857 'tools/quic/quic_simple_server_stream.cc',
858 'tools/quic/quic_simple_server_stream.h',
859 'tools/quic/quic_spdy_client_stream.cc',
860 'tools/quic/quic_spdy_client_stream.h',
861 'tools/quic/quic_time_wait_list_manager.cc',
862 'tools/quic/quic_time_wait_list_manager.h',
863 'tools/quic/stateless_rejector.cc',
864 'tools/quic/stateless_rejector.h',
865 'tools/quic/synchronous_host_resolver.cc',
866 'tools/quic/synchronous_host_resolver.h',
867 ],
868 },
869 {
870 # GN version: //net:stale_while_revalidate_experiment_domains
871 'target_name': 'stale_while_revalidate_experiment_domains',
872 'type': 'static_library',
873 'dependencies': [
874 '../base/base.gyp:base',
875 'net',
876 'net_derived_sources',
877 ],
878 'sources': [
879 'base/stale_while_revalidate_experiment_domains.cc',
880 'base/stale_while_revalidate_experiment_domains.h',
881 ],
882 },
883 ],
884 'conditions': [
885 ['use_v8_in_net == 1', {
886 'targets': [
887 {
888 'target_name': 'net_with_v8',
889 'type': '<(component)',
890 'variables': { 'enable_wexit_time_destructors': 1, },
891 'dependencies': [
892 '../base/base.gyp:base',
893 '../gin/gin.gyp:gin',
894 '../url/url.gyp:url_lib',
895 '../v8/src/v8.gyp:v8',
896 'net'
897 ],
898 'defines': [
899 'NET_IMPLEMENTATION',
900 ],
901 'sources': [
902 'proxy/proxy_resolver_v8.cc',
903 'proxy/proxy_resolver_v8.h',
904 'proxy/proxy_resolver_v8_tracing.cc',
905 'proxy/proxy_resolver_v8_tracing.h',
906 'proxy/proxy_resolver_v8_tracing_wrapper.cc',
907 'proxy/proxy_resolver_v8_tracing_wrapper.h',
908 'proxy/proxy_service_v8.cc',
909 'proxy/proxy_service_v8.h',
910 ],
911 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
912 'msvs_disabled_warnings': [4267, ],
913 },
914 ],
915 }],
916 ['use_v8_in_net == 1 and OS != "android"', {
917 'targets': [
918 {
919 # GN version: //net/interfaces
920 'target_name': 'net_interfaces',
921 'type': 'static_library',
922 'sources': [
923 'interfaces/host_resolver_service.mojom',
924 'interfaces/proxy_resolver_service.mojom',
925 ],
926 'dependencies': [
927 '../url/url.gyp:url_mojom',
928 ],
929 'variables': {
930 'mojom_typemaps': [
931 '../url/mojo/gurl.typemap',
932 ],
933 'use_new_wrapper_types': 'false',
934 },
935 'includes': [
936 '../mojo/mojom_bindings_generator.gypi',
937 ],
938 },
939 {
940 # GN version: //net:net_browser_services
941 'target_name': 'net_browser_services',
942 'type': 'static_library',
943 'sources': [
944 'dns/mojo_host_resolver_impl.cc',
945 'dns/mojo_host_resolver_impl.h',
946 'proxy/in_process_mojo_proxy_resolver_factory.cc',
947 'proxy/in_process_mojo_proxy_resolver_factory.h',
948 'proxy/mojo_proxy_resolver_factory.h',
949 'proxy/proxy_resolver_factory_mojo.cc',
950 'proxy/proxy_resolver_factory_mojo.h',
951 'proxy/proxy_service_mojo.cc',
952 'proxy/proxy_service_mojo.h',
953 ],
954 'dependencies': [
955 'mojo_type_converters',
956 'net',
957 'net_interfaces',
958 '../mojo/mojo_base.gyp:mojo_common_lib',
959 '../mojo/mojo_public.gyp:mojo_cpp_bindings',
960
961 # NOTE(amistry): As long as we support in-process Mojo v8 PAC, we
962 # need this dependency since in_process_mojo_proxy_resolver_factory
963 # creates the utility process side Mojo services in the browser
964 # process. Ultimately, this will go away when we only support
965 # out-of-process.
966 'net_utility_services',
967 ],
968 },
969 {
970 # GN version: //net:net_utility_services
971 'target_name': 'net_utility_services',
972 'type': 'static_library',
973 'sources': [
974 'dns/host_resolver_mojo.cc',
975 'dns/host_resolver_mojo.h',
976 'proxy/mojo_proxy_resolver_factory_impl.cc',
977 'proxy/mojo_proxy_resolver_factory_impl.h',
978 'proxy/mojo_proxy_resolver_impl.cc',
979 'proxy/mojo_proxy_resolver_impl.h',
980 'proxy/mojo_proxy_resolver_v8_tracing_bindings.h',
981 ],
982 'dependencies': [
983 'mojo_type_converters',
984 'net_interfaces',
985 'net_with_v8',
986 '../mojo/mojo_public.gyp:mojo_cpp_bindings',
987 ],
988 },
989 {
990 # GN version: //net:mojo_type_converters
991 'target_name': 'mojo_type_converters',
992 'type': 'static_library',
993 'sources': [
994 'dns/mojo_host_type_converters.cc',
995 'dns/mojo_host_type_converters.h',
996 'proxy/mojo_proxy_type_converters.cc',
997 'proxy/mojo_proxy_type_converters.h',
998 ],
999 'dependencies': [
1000 'net',
1001 'net_interfaces',
1002 '../mojo/mojo_public.gyp:mojo_cpp_bindings',
1003 ],
1004 },
1005 ],
1006 }],
1007 ['OS != "ios" and OS != "android"', {
1008 'targets': [
1009 # iOS doesn't have the concept of simple executables, these targets
1010 # can't be compiled on the platform.
1011 {
1012 'target_name': 'cert_verify_tool',
1013 'type': 'executable',
1014 'dependencies': [
1015 '../base/base.gyp:base',
1016 'net',
1017 'net_test_support',
1018 ],
1019 'sources': [
1020 'tools/cert_verify_tool/cert_verify_tool.cc',
1021 'tools/cert_verify_tool/cert_verify_tool_util.cc',
1022 'tools/cert_verify_tool/cert_verify_tool_util.h',
1023 'tools/cert_verify_tool/verify_using_cert_verify_proc.cc',
1024 'tools/cert_verify_tool/verify_using_cert_verify_proc.h',
1025 'tools/cert_verify_tool/verify_using_path_builder.cc',
1026 'tools/cert_verify_tool/verify_using_path_builder.h',
1027 ],
1028 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1029 'msvs_disabled_warnings': [4267, ],
1030 },
1031 {
1032 'target_name': 'crash_cache',
1033 'type': 'executable',
1034 'dependencies': [
1035 '../base/base.gyp:base',
1036 'net',
1037 'net_test_support',
1038 ],
1039 'sources': [
1040 'tools/crash_cache/crash_cache.cc',
1041 ],
1042 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1043 'msvs_disabled_warnings': [4267, ],
1044 },
1045 {
1046 'target_name': 'crl_set_dump',
1047 'type': 'executable',
1048 'dependencies': [
1049 '../base/base.gyp:base',
1050 'net',
1051 ],
1052 'sources': [
1053 'tools/crl_set_dump/crl_set_dump.cc',
1054 ],
1055 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1056 'msvs_disabled_warnings': [4267, ],
1057 },
1058 # GN version: //net:dns_fuzz_stub
1059 {
1060 'target_name': 'dns_fuzz_stub',
1061 'type': 'executable',
1062 'dependencies': [
1063 '../base/base.gyp:base',
1064 'net',
1065 ],
1066 'sources': [
1067 'tools/dns_fuzz_stub/dns_fuzz_stub.cc',
1068 ],
1069 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1070 'msvs_disabled_warnings': [4267, ],
1071 },
1072 {
1073 'target_name': 'gdig',
1074 'type': 'executable',
1075 'dependencies': [
1076 '../base/base.gyp:base',
1077 'net',
1078 ],
1079 'sources': [
1080 'tools/gdig/file_net_log.cc',
1081 'tools/gdig/gdig.cc',
1082 ],
1083 },
1084 {
1085 'target_name': 'get_server_time',
1086 'type': 'executable',
1087 'dependencies': [
1088 '../base/base.gyp:base',
1089 '../base/base.gyp:base_i18n',
1090 '../url/url.gyp:url_lib',
1091 'net',
1092 ],
1093 'sources': [
1094 'tools/get_server_time/get_server_time.cc',
1095 ],
1096 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1097 'msvs_disabled_warnings': [4267, ],
1098 },
1099 {
1100 'target_name': 'hpack_example_generator',
1101 'type': 'executable',
1102 'dependencies': [
1103 '../base/base.gyp:base',
1104 'net',
1105 ],
1106 'sources': [
1107 'spdy/fuzzing/hpack_example_generator.cc',
1108 ],
1109 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1110 'msvs_disabled_warnings': [4267, ],
1111 },
1112 {
1113 'target_name': 'hpack_fuzz_mutator',
1114 'type': 'executable',
1115 'dependencies': [
1116 '../base/base.gyp:base',
1117 'net',
1118 ],
1119 'sources': [
1120 'spdy/fuzzing/hpack_fuzz_mutator.cc',
1121 ],
1122 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1123 'msvs_disabled_warnings': [4267, ],
1124 },
1125 # GN version: //net:hpack_fuzz_wrapper
1126 {
1127 'target_name': 'hpack_fuzz_wrapper',
1128 'type': 'executable',
1129 'dependencies': [
1130 '../base/base.gyp:base',
1131 'net',
1132 ],
1133 'sources': [
1134 'spdy/fuzzing/hpack_fuzz_wrapper.cc',
1135 ],
1136 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1137 'msvs_disabled_warnings': [4267, ],
1138 },
1139 {
1140 'target_name': 'net_watcher',
1141 'type': 'executable',
1142 'dependencies': [
1143 '../base/base.gyp:base',
1144 'net',
1145 'net_with_v8',
1146 ],
1147 'sources': [
1148 'tools/net_watcher/net_watcher.cc',
1149 ],
1150 },
1151 {
1152 'target_name': 'run_testserver',
1153 'type': 'executable',
1154 'dependencies': [
1155 '../base/base.gyp:base',
1156 '../base/base.gyp:test_support_base',
1157 '../testing/gtest.gyp:gtest',
1158 'net_test_support',
1159 ],
1160 'sources': [
1161 'tools/testserver/run_testserver.cc',
1162 ],
1163 },
1164 {
1165 'target_name': 'quic_client',
1166 'type': 'executable',
1167 'dependencies': [
1168 '../base/base.gyp:base',
1169 '../url/url.gyp:url_lib',
1170 'net',
1171 'simple_quic_tools',
1172 ],
1173 'sources': [
1174 'tools/quic/quic_simple_client_bin.cc',
1175 ],
1176 },
1177 {
1178 'target_name': 'quic_packet_printer',
1179 'type': 'executable',
1180 'dependencies': [
1181 '../base/base.gyp:base',
1182 'net',
1183 'net_quic_proto',
1184 'simple_quic_tools',
1185 ],
1186 'sources': [
1187 'tools/quic/quic_packet_printer_bin.cc',
1188 ],
1189 },
1190 {
1191 'target_name': 'crypto_message_printer',
1192 'type': 'executable',
1193 'dependencies': [
1194 '../base/base.gyp:base',
1195 'net',
1196 ],
1197 'sources': [
1198 'tools/quic/crypto_message_printer_bin.cc',
1199 ],
1200 },
1201 {
1202 'target_name': 'quic_server',
1203 'type': 'executable',
1204 'dependencies': [
1205 '../base/base.gyp:base',
1206 'net',
1207 'net_quic_proto',
1208 'simple_quic_tools',
1209 ],
1210 'sources': [
1211 'tools/quic/quic_simple_server_bin.cc',
1212 ],
1213 },
1214 {
1215 'target_name': 'stress_cache',
1216 'type': 'executable',
1217 'dependencies': [
1218 '../base/base.gyp:base',
1219 'net',
1220 'net_test_support',
1221 ],
1222 'sources': [
1223 'tools/stress_cache/stress_cache.cc',
1224 ],
1225 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1226 'msvs_disabled_warnings': [4267, ],
1227 },
1228 {
1229 'target_name': 'tld_cleanup',
1230 'type': 'executable',
1231 'dependencies': [
1232 '../base/base.gyp:base',
1233 '../base/base.gyp:base_i18n',
1234 '../net/tools/tld_cleanup/tld_cleanup.gyp:tld_cleanup_util',
1235 ],
1236 'sources': [
1237 'tools/tld_cleanup/tld_cleanup.cc',
1238 ],
1239 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1240 'msvs_disabled_warnings': [4267, ],
1241 },
1242 ],
1243 }],
1244 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
1245 'targets': [
1246 {
1247 'target_name': 'epoll_server',
1248 'type': 'static_library',
1249 'dependencies': [
1250 '../base/base.gyp:base',
1251 'net',
1252 ],
1253 'sources': [
1254 'tools/epoll_server/epoll_server.cc',
1255 'tools/epoll_server/epoll_server.h',
1256 ],
1257 },
1258 {
1259 'target_name': 'epoll_quic_tools',
1260 'type': 'static_library',
1261 'dependencies': [
1262 '../base/base.gyp:base',
1263 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyn amic_annotations',
1264 '../url/url.gyp:url_lib',
1265 'balsa',
1266 'epoll_server',
1267 'net',
1268 'net_quic_proto',
1269 ],
1270 'sources': [
1271 'tools/quic/quic_client.cc',
1272 'tools/quic/quic_client.h',
1273 'tools/quic/quic_default_packet_writer.cc',
1274 'tools/quic/quic_default_packet_writer.h',
1275 'tools/quic/quic_epoll_alarm_factory.cc',
1276 'tools/quic/quic_epoll_alarm_factory.h',
1277 'tools/quic/quic_epoll_clock.cc',
1278 'tools/quic/quic_epoll_clock.h',
1279 'tools/quic/quic_epoll_connection_helper.cc',
1280 'tools/quic/quic_epoll_connection_helper.h',
1281 'tools/quic/quic_packet_reader.cc',
1282 'tools/quic/quic_packet_reader.h',
1283 'tools/quic/quic_packet_writer_wrapper.cc',
1284 'tools/quic/quic_packet_writer_wrapper.h',
1285 'tools/quic/quic_server.cc',
1286 'tools/quic/quic_server.h',
1287 'tools/quic/quic_socket_utils.cc',
1288 'tools/quic/quic_socket_utils.h',
1289 ],
1290 },
1291 {
1292 'target_name': 'epoll_quic_client',
1293 'type': 'executable',
1294 'dependencies': [
1295 '../base/base.gyp:base',
1296 'net',
1297 'epoll_quic_tools',
1298 'simple_quic_tools',
1299 ],
1300 'sources': [
1301 'tools/quic/quic_client_bin.cc',
1302 ],
1303 },
1304 {
1305 'target_name': 'epoll_quic_server',
1306 'type': 'executable',
1307 'dependencies': [
1308 '../base/base.gyp:base',
1309 'net',
1310 'net_quic_proto',
1311 'epoll_quic_tools',
1312 'simple_quic_tools',
1313 ],
1314 'sources': [
1315 'tools/quic/quic_server_bin.cc',
1316 ],
1317 },
1318 ]
1319 }],
1320 ['OS=="android"', {
1321 'targets': [
1322 {
1323 'target_name': 'net_jni_headers',
1324 'type': 'none',
1325 'sources': [
1326 'android/java/src/org/chromium/net/AndroidCellularSignalStrength.jav a',
1327 'android/java/src/org/chromium/net/AndroidCertVerifyResult.java',
1328 'android/java/src/org/chromium/net/AndroidKeyStore.java',
1329 'android/java/src/org/chromium/net/AndroidNetworkLibrary.java',
1330 'android/java/src/org/chromium/net/AndroidTrafficStats.java',
1331 'android/java/src/org/chromium/net/GURLUtils.java',
1332 'android/java/src/org/chromium/net/HttpNegotiateAuthenticator.java',
1333 'android/java/src/org/chromium/net/NetStringUtil.java',
1334 'android/java/src/org/chromium/net/NetworkChangeNotifier.java',
1335 'android/java/src/org/chromium/net/ProxyChangeListener.java',
1336 'android/java/src/org/chromium/net/X509Util.java',
1337 ],
1338 'variables': {
1339 'jni_gen_package': 'net',
1340 },
1341 'includes': [ '../build/jni_generator.gypi' ],
1342 },
1343 {
1344 'target_name': 'net_test_jni_headers',
1345 'type': 'none',
1346 'sources': [
1347 'android/javatests/src/org/chromium/net/AndroidKeyStoreTestUtil.java ',
1348 'test/android/javatests/src/org/chromium/net/test/EmbeddedTestServer Impl.java',
1349 'test/android/javatests/src/org/chromium/net/test/DummySpnegoAuthent icator.java',
1350 ],
1351 'variables': {
1352 'jni_gen_package': 'net/test',
1353 },
1354 'includes': [ '../build/jni_generator.gypi' ],
1355 },
1356 {
1357 'target_name': 'net_java',
1358 'type': 'none',
1359 'variables': {
1360 'java_in_dir': '../net/android/java',
1361 },
1362 'dependencies': [
1363 '../base/base.gyp:base',
1364 'cellular_signal_strength_error_java',
1365 'cert_verify_status_android_java',
1366 'certificate_mime_types_java',
1367 'network_change_notifier_types_java',
1368 'network_change_notifier_android_types_java',
1369 'net_errors_java',
1370 'private_key_types_java',
1371 'traffic_stats_error_java',
1372 ],
1373 'includes': [ '../build/java.gypi' ],
1374 },
1375 {
1376 'target_name': 'embedded_test_server_aidl',
1377 'type': 'none',
1378 'variables': {
1379 'aidl_interface_file': '../net/test/android/javatests/src/org/chromi um/net/test/IEmbeddedTestServerInterface.aidl',
1380 },
1381 'sources': [
1382 '../net/test/android/javatests/src/org/chromium/net/test/IEmbeddedTe stServerImpl.aidl',
1383 ],
1384 'includes': [ '../build/java_aidl.gypi' ],
1385 },
1386 {
1387 'target_name': 'net_java_test_support',
1388 'type': 'none',
1389 'variables': {
1390 'java_in_dir': '../net/test/android/javatests',
1391 # TODO(jbudorick): remove chromium_code: 0 line once crbug.com/48819 2 is fixed.
1392 'chromium_code': 0,
1393 },
1394 'dependencies': [
1395 'embedded_test_server_aidl',
1396 'net_java',
1397 'url_request_failed_job_java',
1398 '../base/base.gyp:base_java',
1399 '../base/base.gyp:base_java_test_support',
1400 '../third_party/android_tools/android_tools.gyp:legacy_http_javalib' ,
1401 ],
1402 'includes': [ '../build/java.gypi' ],
1403 },
1404 {
1405 'target_name': 'libnet_java_test_support',
1406 'type': 'shared_library',
1407 'dependencies': [
1408 'net_test_support',
1409 '../base/base.gyp:base',
1410 ],
1411 'sources': [
1412 'test/android/net_test_entry_point.cc',
1413 'test/android/net_test_jni_onload.cc',
1414 'test/android/net_test_jni_onload.h',
1415 ],
1416 },
1417 {
1418 'target_name': 'net_test_support_apk',
1419 'type': 'none',
1420 'dependencies': [
1421 'net_java_test_support',
1422 ],
1423 'variables': {
1424 'android_manifest_path': 'test/android/javatests/AndroidManifest.xml ',
1425 'apk_name': 'ChromiumNetTestSupport',
1426 'is_test_apk': 1,
1427 'java_in_dir': 'test/android/javatests',
1428 'java_in_dir_suffix': '/src_dummy',
1429 'native_lib_target': 'libnet_java_test_support',
1430 'never_lint': 1,
1431 },
1432 'includes': [
1433 '../build/java_apk.gypi',
1434 ],
1435 },
1436 {
1437 # Targets that need the net test support APK should depend on this
1438 # target. It ensures that the APK is built without passing the
1439 # classpath on to dependent targets.
1440 'target_name': 'require_net_test_support_apk',
1441 'type': 'none',
1442 'actions': [
1443 {
1444 'action_name': 'require_ChromiumNetTestSupport',
1445 'variables': {
1446 'required_file': '<(PRODUCT_DIR)/net_test_support_apk/ChromiumNe tTestSupport.apk.required',
1447 },
1448 'inputs': [
1449 '<(PRODUCT_DIR)/apks/ChromiumNetTestSupport.apk',
1450 ],
1451 'outputs': [
1452 '<(required_file)',
1453 ],
1454 'action': [
1455 'python', '../build/android/gyp/touch.py', '<(required_file)',
1456 ],
1457 },
1458 ],
1459 },
1460 {
1461 'target_name': 'url_request_failed_job_java',
1462 'type': 'none',
1463 'variables': {
1464 'source_file': 'test/url_request/url_request_failed_job.h',
1465 },
1466 'includes': [ '../build/android/java_cpp_enum.gypi' ],
1467 },
1468 {
1469 'target_name': 'net_javatests',
1470 'type': 'none',
1471 'variables': {
1472 'java_in_dir': '../net/android/javatests',
1473 },
1474 'dependencies': [
1475 '../base/base.gyp:base',
1476 '../base/base.gyp:base_java_test_support',
1477 'net_java',
1478 'net_java_test_support',
1479 ],
1480 'includes': [ '../build/java.gypi' ],
1481 },
1482 {
1483 'target_name': 'net_errors_java',
1484 'type': 'none',
1485 'sources': [
1486 'android/java/NetError.template',
1487 ],
1488 'variables': {
1489 'package_name': 'org/chromium/net',
1490 'template_deps': ['base/net_error_list.h'],
1491 },
1492 'includes': [ '../build/android/java_cpp_template.gypi' ],
1493 },
1494 {
1495 'target_name': 'cellular_signal_strength_error_java',
1496 'type': 'none',
1497 'variables': {
1498 'source_file': 'android/cellular_signal_strength.cc',
1499 },
1500 'includes': [ '../build/android/java_cpp_enum.gypi' ],
1501 },
1502 {
1503 'target_name': 'certificate_mime_types_java',
1504 'type': 'none',
1505 'variables': {
1506 'source_file': 'base/mime_util.h',
1507 },
1508 'includes': [ '../build/android/java_cpp_enum.gypi' ],
1509 },
1510 {
1511 'target_name': 'cert_verify_status_android_java',
1512 'type': 'none',
1513 'variables': {
1514 'source_file': 'android/cert_verify_result_android.h',
1515 },
1516 'includes': [ '../build/android/java_cpp_enum.gypi' ],
1517 },
1518 {
1519 'target_name': 'network_change_notifier_types_java',
1520 'type': 'none',
1521 'variables': {
1522 'source_file': 'base/network_change_notifier.h',
1523 },
1524 'includes': [ '../build/android/java_cpp_enum.gypi' ],
1525 },
1526 {
1527 'target_name': 'network_change_notifier_android_types_java',
1528 'type': 'none',
1529 'variables': {
1530 'source_file': 'android/network_change_notifier_android.cc',
1531 },
1532 'includes': [ '../build/android/java_cpp_enum.gypi' ],
1533 },
1534 {
1535 'target_name': 'private_key_types_java',
1536 'type': 'none',
1537 'variables': {
1538 'source_file': 'android/keystore.h',
1539 },
1540 'includes': [ '../build/android/java_cpp_enum.gypi' ],
1541 },
1542 {
1543 'target_name': 'traffic_stats_error_java',
1544 'type': 'none',
1545 'variables': {
1546 'source_file': 'android/traffic_stats.cc',
1547 },
1548 'includes': [ '../build/android/java_cpp_enum.gypi' ],
1549 },
1550 {
1551 'target_name': 'net_unittests_apk',
1552 'type': 'none',
1553 'dependencies': [
1554 'net_java',
1555 'net_javatests',
1556 'net_java_test_support',
1557 'net_unittests',
1558 ],
1559 'conditions': [
1560 ['v8_use_external_startup_data==1', {
1561 'dependencies': [
1562 '../v8/src/v8.gyp:v8_external_snapshot',
1563 ],
1564 'variables': {
1565 'dest_path': '<(asset_location)',
1566 'renaming_sources': [
1567 '<(PRODUCT_DIR)/natives_blob.bin',
1568 '<(PRODUCT_DIR)/snapshot_blob.bin',
1569 ],
1570 'renaming_destinations': [
1571 'natives_blob_<(arch_suffix).bin',
1572 'snapshot_blob_<(arch_suffix).bin',
1573 ],
1574 'clear': 1,
1575 },
1576 'includes': ['../build/android/copy_ex.gypi'],
1577 }],
1578 ],
1579 'variables': {
1580 'test_suite_name': 'net_unittests',
1581 'isolate_file': 'net_unittests.isolate',
1582 'android_manifest_path': 'android/unittest_support/AndroidManifest.x ml',
1583 'resource_dir': 'android/unittest_support/res',
1584 'shard_timeout': 300,
1585 'conditions': [
1586 ['v8_use_external_startup_data==1', {
1587 'asset_location': '<(PRODUCT_DIR)/net_unittests_apk/assets',
1588 'additional_input_paths': [
1589 '<(PRODUCT_DIR)/net_unittests_apk/assets/natives_blob_<(arch_s uffix).bin',
1590 '<(PRODUCT_DIR)/net_unittests_apk/assets/snapshot_blob_<(arch_ suffix).bin',
1591 ],
1592 }],
1593 ],
1594 },
1595 'includes': [
1596 '../build/apk_test.gypi',
1597 '../build/android/v8_external_startup_data_arch_suffix.gypi',
1598 ],
1599 },
1600 {
1601 'target_name': 'net_junit_tests',
1602 'type': 'none',
1603 'dependencies': [
1604 'net_java',
1605 '../base/base.gyp:base',
1606 '../base/base.gyp:base_java_test_support',
1607 '../base/base.gyp:base_junit_test_support',
1608 '../testing/android/junit/junit_test.gyp:junit_test_support',
1609 ],
1610 'variables': {
1611 'main_class': 'org.chromium.testing.local.JunitTestMain',
1612 'src_paths': [
1613 'android/junit/',
1614 ],
1615 'test_type': 'junit',
1616 'wrapper_script_name': 'helper/<(_target_name)',
1617 },
1618 'includes': [
1619 '../build/android/test_runner.gypi',
1620 '../build/host_jar.gypi',
1621 ],
1622 },
1623 ],
1624 'conditions': [
1625 ['test_isolation_mode != "noop"',
1626 {
1627 'targets': [
1628 {
1629 'target_name': 'net_unittests_apk_run',
1630 'type': 'none',
1631 'dependencies': [
1632 'net_unittests_apk',
1633 ],
1634 'includes': [
1635 '../build/isolate.gypi',
1636 ],
1637 'sources': [
1638 'net_unittests_apk.isolate',
1639 ],
1640 },
1641 ]
1642 }
1643 ],
1644 ],
1645 }],
1646 ['OS == "android" or OS == "linux"', {
1647 'targets': [
1648 {
1649 'target_name': 'disk_cache_memory_test',
1650 'type': 'executable',
1651 'dependencies': [
1652 '../base/base.gyp:base',
1653 'net',
1654 ],
1655 'sources': [
1656 'tools/disk_cache_memory_test/disk_cache_memory_test.cc',
1657 ],
1658 },
1659 ],
1660 }],
1661 ['OS == "linux" or OS == "mac"', {
1662 'targets': [
1663 {
1664 'target_name': 'cachetool',
1665 'type': 'executable',
1666 'dependencies': [
1667 '../base/base.gyp:base',
1668 'net',
1669 'net_test_support',
1670 ],
1671 'sources': [
1672 'tools/cachetool/cachetool.cc',
1673 ],
1674 },
1675 {
1676 'target_name': 'content_decoder_tool',
1677 'type': 'executable',
1678 'dependencies': [
1679 '../base/base.gyp:base',
1680 '../url/url.gyp:url_lib',
1681 'net',
1682 ],
1683 'sources': [
1684 'filter/mock_filter_context.cc',
1685 'tools/content_decoder_tool/content_decoder_tool.cc',
1686 ],
1687 }
1688 ],
1689 }],
1690 ['test_isolation_mode != "noop"', {
1691 'targets': [
1692 {
1693 'target_name': 'net_unittests_run',
1694 'type': 'none',
1695 'dependencies': [
1696 'net_unittests',
1697 ],
1698 'includes': [
1699 '../build/isolate.gypi',
1700 ],
1701 'sources': [
1702 'net_unittests.isolate',
1703 ],
1704 },
1705 ],
1706 }],
1707 ],
1708 }
OLDNEW
« no previous file with comments | « native_client_sdk/native_client_sdk_untrusted.gyp ('k') | net/net_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698