blob: 3a9cd68d1d0890b1017ad592713fa02745be8a20 [file] [log] [blame]
[email protected]e4c029f2013-01-20 01:10:241# Copyright 2013 The Chromium Authors. All rights reserved.
[email protected]2f80c312009-02-25 21:26:552# 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,
[email protected]6acbd8dd2011-08-24 21:19:208 'linux_link_kerberos%': 0,
9 'conditions': [
aberentec894a52015-07-09 14:45:5310 ['chromeos==1 or embedded==1 or OS=="ios"', {
11 # Disable Kerberos on ChromeOS and iOS, at least for now.
[email protected]6acbd8dd2011-08-24 21:19:2012 # It needs configuration (krb5.conf and so on).
13 'use_kerberos%': 0,
aberentec894a52015-07-09 14:45:5314 }, { # chromeos == 0 and embedded==0 and OS!="ios"
[email protected]6acbd8dd2011-08-24 21:19:2015 'use_kerberos%': 1,
16 }],
[email protected]7b265e8d2013-02-20 20:35:4517 ['OS=="android" and target_arch != "ia32"', {
[email protected]9e079cb2012-06-26 13:38:0218 # 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.
[email protected]7b265e8d2013-02-20 20:35:4520 # 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.
[email protected]9e079cb2012-06-26 13:38:0223 'posix_avoid_mmap%': 1,
24 }, {
25 'posix_avoid_mmap%': 0,
26 }],
[email protected]fe380ae2012-08-30 10:05:5127 ['OS=="ios"', {
28 # Websockets and socket stream are not used on iOS.
29 'enable_websockets%': 0,
[email protected]ba7866b82012-09-07 14:22:2730 # iOS does not use V8.
31 'use_v8_in_net%': 0,
[email protected]33c814862012-09-18 15:16:0332 'enable_built_in_dns%': 0,
[email protected]fe380ae2012-08-30 10:05:5133 }, {
34 'enable_websockets%': 1,
[email protected]ba7866b82012-09-07 14:22:2735 'use_v8_in_net%': 1,
[email protected]33c814862012-09-18 15:16:0336 'enable_built_in_dns%': 1,
[email protected]fe380ae2012-08-30 10:05:5137 }],
[email protected]6acbd8dd2011-08-24 21:19:2038 ],
[email protected]2f80c312009-02-25 21:26:5539 },
[email protected]99ff9932011-09-07 14:14:5440 'includes': [
41 '../build/win_precompile.gypi',
[email protected]18f840652014-04-10 20:31:3742 'net.gypi',
[email protected]99ff9932011-09-07 14:14:5443 ],
[email protected]2f80c312009-02-25 21:26:5544 'targets': [
45 {
[email protected]d7f04492014-05-13 07:01:3446 '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 ],
57 'rules': [
58 {
59 'rule_name': 'dafsa',
60 'extension': 'gperf',
61 'outputs': [
62 '<(SHARED_INTERMEDIATE_DIR)/net/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT)-inc.cc',
63 ],
64 'inputs': [
65 'tools/tld_cleanup/make_dafsa.py',
66 ],
67 'action': [
68 'python',
69 'tools/tld_cleanup/make_dafsa.py',
70 '<(RULE_INPUT_PATH)',
71 '<(SHARED_INTERMEDIATE_DIR)/net/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT)-inc.cc',
72 ],
73 },
74 ],
75 'direct_dependent_settings': {
76 'include_dirs': [
77 '<(SHARED_INTERMEDIATE_DIR)'
78 ],
79 },
80 },
81 {
rtennetib6f1c0d2015-04-03 17:52:0682 # Protobuf compiler / generator for QUIC crypto protocol buffer.
83 # GN version: //net/quic/proto
84 'target_name': 'net_quic_proto',
85 'type': 'static_library',
86 'sources': [
87 'quic/proto/cached_network_parameters.proto',
88 'quic/proto/source_address_token.proto',
89 ],
90 'variables': {
91 'enable_wexit_time_destructors': 1,
92 'proto_in_dir': 'quic/proto',
93 'proto_out_dir': 'net/quic/proto',
94 'cc_generator_options': 'dllexport_decl=NET_EXPORT_PRIVATE:',
95 'cc_include': 'net/base/net_export.h',
96 },
97 'includes': [
98 '../build/protoc.gypi',
99 ],
100 'defines': [
101 'NET_IMPLEMENTATION',
102 ],
103 },
104 {
brettw690c96672015-04-21 16:19:54105 # GN version: //net
[email protected]8858a11f42011-05-04 17:55:53106 'target_name': 'net',
[email protected]2f80c312009-02-25 21:26:55107 'dependencies': [
[email protected]d34d79f2009-10-14 22:06:14108 '../base/base.gyp:base_i18n',
[email protected]280629492009-09-09 06:49:08109 '../third_party/icu/icu.gyp:icui18n',
110 '../third_party/icu/icu.gyp:icuuc',
rtennetib6f1c0d2015-04-03 17:52:06111 '../third_party/protobuf/protobuf.gyp:protobuf_lite',
[email protected]002cc08f2013-06-03 05:40:29112 '../url/url.gyp:url_lib',
rtennetib6f1c0d2015-04-03 17:52:06113 'net_quic_proto',
[email protected]2f80c312009-02-25 21:26:55114 ],
115 'sources': [
mefdc8e94b2015-03-11 19:49:05116 'base/filename_util_icu.cc',
117 'base/net_string_util_icu.cc',
118 'base/net_util_icu.cc',
[email protected]2f80c312009-02-25 21:26:55119 ],
mefdc8e94b2015-03-11 19:49:05120 'includes': [ 'net_common.gypi' ],
[email protected]2f80c312009-02-25 21:26:55121 },
122 {
brettw690c96672015-04-21 16:19:54123 # GN version: //net:net_unittests
[email protected]2f80c312009-02-25 21:26:55124 'target_name': 'net_unittests',
[email protected]a44d1212012-05-25 20:17:49125 'type': '<(gtest_target_type)',
[email protected]2f80c312009-02-25 21:26:55126 'dependencies': [
[email protected]2f80c312009-02-25 21:26:55127 '../base/base.gyp:base',
[email protected]d34d79f2009-10-14 22:06:14128 '../base/base.gyp:base_i18n',
[email protected]ad66db12014-07-10 12:43:47129 '../base/base.gyp:base_prefs_test_support',
[email protected]67875f512011-05-21 00:18:30130 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]828a7a812012-09-05 10:12:35131 '../crypto/crypto.gyp:crypto',
[email protected]190933f2014-07-28 09:56:51132 '../crypto/crypto.gyp:crypto_test_support',
[email protected]06489a012009-12-10 08:12:54133 '../testing/gmock.gyp:gmock',
[email protected]2f80c312009-02-25 21:26:55134 '../testing/gtest.gyp:gtest',
[email protected]e86aaca2009-08-12 17:58:57135 '../third_party/zlib/zlib.gyp:zlib',
[email protected]002cc08f2013-06-03 05:40:29136 '../url/url.gyp:url_lib',
[email protected]8f6594202014-06-11 14:44:25137 'balsa',
[email protected]c700fd152013-07-23 21:29:11138 'http_server',
[email protected]eb6d2392012-08-02 11:28:23139 'net',
rtennetib6f1c0d2015-04-03 17:52:06140 'net_quic_proto',
[email protected]d7f04492014-05-13 07:01:34141 'net_derived_sources',
mef327a8e42014-08-29 17:10:03142 'net_extras',
[email protected]d7f04492014-05-13 07:01:34143 'net_test_support',
rcha6d42cd2015-03-22 05:13:58144 'simple_quic_tools',
[email protected]2f80c312009-02-25 21:26:55145 ],
146 'sources': [
[email protected]7f8afda2014-04-12 05:18:55147 '<@(net_test_sources)',
[email protected]2f80c312009-02-25 21:26:55148 ],
149 'conditions': [
[email protected]453cdac12013-07-23 14:53:58150 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
151 'dependencies': [
rch216445c2015-03-27 00:23:28152 'epoll_quic_tools',
[email protected]6c7e6522013-09-29 15:27:44153 'epoll_server',
154 'flip_in_mem_edsm_server_base',
[email protected]453cdac12013-07-23 14:53:58155 ],
156 'sources': [
[email protected]7f8afda2014-04-12 05:18:55157 '<@(net_linux_test_sources)',
[email protected]453cdac12013-07-23 14:53:58158 ],
159 }],
erikchen006a7cf2014-12-03 22:27:11160 ['OS == "mac" or OS == "ios"', {
161 'sources': [
162 '<@(net_base_test_mac_ios_sources)',
163 ],
164 }],
[email protected]f50278cd2010-08-24 17:34:08165 ['chromeos==1', {
166 'sources!': [
[email protected]fcd1e762012-07-11 14:43:50167 'proxy/proxy_config_service_linux_unittest.cc',
[email protected]f50278cd2010-08-24 17:34:08168 ],
169 }],
[email protected]2e530582012-10-20 00:28:35170 [ 'OS == "android"', {
171 'sources!': [
[email protected]8fddf1d2014-03-27 18:08:06172 # See bug http://crbug.com/344533.
173 'disk_cache/blockfile/index_table_v3_unittest.cc',
[email protected]2e530582012-10-20 00:28:35174 ],
[email protected]03a07b2e2013-02-11 20:13:45175 'dependencies': [
176 'net_javatests',
[email protected]03a07b2e2013-02-11 20:13:45177 ],
[email protected]2e530582012-10-20 00:28:35178 }],
davidben0ee13e372015-04-16 23:23:10179 [ 'use_nss_certs != 1', {
[email protected]5482ef9e2013-12-11 04:27:43180 'sources!': [
davidben2bcbc6b2015-04-22 02:36:41181 'cert/nss_cert_database_unittest.cc',
182 'cert/nss_cert_database_chromeos_unittest.cc',
183 'cert/nss_profile_filter_chromeos_unittest.cc',
satoruxdd0840d32015-02-12 19:10:26184 'ssl/client_cert_store_nss_unittest.cc',
[email protected]5482ef9e2013-12-11 04:27:43185 ],
186 }],
[email protected]1279de12013-12-03 15:13:32187 [ 'use_openssl == 1', {
188 # Avoid compiling/linking with the system library.
189 'dependencies': [
[email protected]edfd0f42014-07-22 18:20:37190 '../third_party/boringssl/boringssl.gyp:boringssl',
[email protected]1279de12013-12-03 15:13:32191 ],
davidben2bcbc6b2015-04-22 02:36:41192 }],
193 [ 'use_nss_certs == 1 or OS == "ios" or use_openssl == 0', {
[email protected]1279de12013-12-03 15:13:32194 'conditions': [
195 [ 'desktop_linux == 1 or chromeos == 1', {
196 'dependencies': [
197 '../build/linux/system.gyp:ssl',
198 ],
199 }, { # desktop_linux == 0 and chromeos == 0
davidben15d69d482014-09-29 18:24:08200 'dependencies': [
201 '../third_party/nss/nss.gyp:nspr',
202 '../third_party/nss/nss.gyp:nss',
203 'third_party/nss/ssl.gyp:libssl',
204 ],
[email protected]1279de12013-12-03 15:13:32205 }],
206 ],
207 }],
[email protected]10246a02012-07-30 15:15:01208 [ 'os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', {
[email protected]d9df2b52009-12-10 12:06:15209 'conditions': [
[email protected]2fa89ef2014-05-07 18:45:59210 ['use_allocator!="none"', {
[email protected]d9df2b52009-12-10 12:06:15211 'dependencies': [
212 '../base/allocator/allocator.gyp:allocator',
213 ],
214 }],
215 ],
216 }],
[email protected]9c210d92011-08-15 17:34:01217 [ 'use_kerberos==1', {
218 'defines': [
219 'USE_KERBEROS',
220 ],
aberentec894a52015-07-09 14:45:53221 }],
222 [ 'use_kerberos==0 or OS == "android"', {
223 # These are excluded on Android, because the actual Kerberos support,
224 # which these test, is in a separate app on Android.
[email protected]9c210d92011-08-15 17:34:01225 'sources!': [
226 'http/http_auth_gssapi_posix_unittest.cc',
[email protected]9c210d92011-08-15 17:34:01227 'http/mock_gssapi_library_posix.cc',
228 'http/mock_gssapi_library_posix.h',
229 ],
230 }],
aberentec894a52015-07-09 14:45:53231 [ 'use_kerberos==0', {
232 'sources!': [
233 'http/http_auth_handler_negotiate_unittest.cc',
234 ],
235 }],
[email protected]b098e1d82013-11-08 06:24:58236 [ 'use_openssl == 1 or (desktop_linux == 0 and chromeos == 0 and OS != "ios")', {
[email protected]b3270fe2013-05-24 06:34:55237 # Only include this test when on Posix and using NSS for
238 # cert verification or on iOS (which also uses NSS for certs).
239 'sources!': [
eromaned744f32015-04-09 06:35:49240 'cert_net/nss_ocsp_unittest.cc',
[email protected]b3270fe2013-05-24 06:34:55241 ],
242 }],
[email protected]70372d42010-10-22 13:12:34243 [ 'use_openssl==1', {
[email protected]f5c82e82013-11-19 04:23:10244 # When building for OpenSSL, we need to exclude NSS specific tests
245 # or functionality not supported by OpenSSL yet.
[email protected]70372d42010-10-22 13:12:34246 # TODO(bulach): Add equivalent tests when the underlying
247 # functionality is ported to OpenSSL.
[email protected]b1c2a5542010-10-08 12:44:40248 'sources!': [
[email protected]6e7845ae2013-03-29 21:48:11249 'cert/x509_util_nss_unittest.cc',
[email protected]b064310782013-05-30 21:12:17250 'quic/test_tools/crypto_test_utils_nss.cc',
[email protected]b1c2a5542010-10-08 12:44:40251 ],
davidben15d69d482014-09-29 18:24:08252 }, { # else !use_openssl: remove the unneeded files and pull in NSS.
[email protected]3c5f6db2011-10-18 01:47:04253 'sources!': [
[email protected]6e7845ae2013-03-29 21:48:11254 'cert/x509_util_openssl_unittest.cc',
[email protected]b064310782013-05-30 21:12:17255 'quic/test_tools/crypto_test_utils_openssl.cc',
[email protected]ede323ea2013-03-02 22:54:41256 'socket/ssl_client_socket_openssl_unittest.cc',
davidbendafe4e52015-04-08 22:53:52257 'ssl/ssl_client_session_cache_openssl_unittest.cc',
[email protected]3c5f6db2011-10-18 01:47:04258 ],
[email protected]b1c2a5542010-10-08 12:44:40259 },
260 ],
[email protected]e1b2d732014-03-28 16:20:32261 [ 'use_openssl_certs == 0', {
262 'sources!': [
263 'ssl/openssl_client_key_store_unittest.cc',
264 ],
265 }],
[email protected]fe380ae2012-08-30 10:05:51266 [ 'enable_websockets != 1', {
267 'sources/': [
[email protected]fe380ae2012-08-30 10:05:51268 ['exclude', '^websockets/'],
dgozmana6e70092014-12-12 14:46:21269 ['exclude', '^server/'],
270 ],
271 'dependencies!': [
272 'http_server',
[email protected]fe380ae2012-08-30 10:05:51273 ],
274 }],
[email protected]02494ec2014-05-07 15:05:29275 ['disable_file_support==1', {
276 'sources!': [
277 'base/directory_lister_unittest.cc',
278 'url_request/url_request_file_job_unittest.cc',
279 ],
280 }],
[email protected]9bfe0ab2012-08-30 13:18:11281 [ 'disable_ftp_support==1', {
282 'sources/': [
283 ['exclude', '^ftp/'],
284 ],
285 'sources!': [
286 'url_request/url_request_ftp_job_unittest.cc',
287 ],
288 },
289 ],
[email protected]33c814862012-09-18 15:16:03290 [ 'enable_built_in_dns!=1', {
291 'sources!': [
292 'dns/address_sorter_posix_unittest.cc',
293 'dns/address_sorter_unittest.cc',
294 ],
295 },
296 ],
xunjieli729cd1f72015-08-31 21:26:50297 [ 'use_v8_in_net==1', {
[email protected]ba7866b82012-09-07 14:22:27298 'dependencies': [
299 'net_with_v8',
300 ],
301 }, { # else: !use_v8_in_net
302 'sources!': [
[email protected]501e2d42013-01-30 22:30:49303 'proxy/proxy_resolver_v8_tracing_unittest.cc',
sammcf2d1ea02015-06-29 02:58:47304 'proxy/proxy_resolver_v8_tracing_wrapper_unittest.cc',
satoruxdd0840d32015-02-12 19:10:26305 'proxy/proxy_resolver_v8_unittest.cc',
[email protected]ba7866b82012-09-07 14:22:27306 ],
307 },
308 ],
[email protected]4e09d242013-05-02 03:19:35309
amistry7e6ebfdc82015-02-13 04:19:11310 [ 'use_v8_in_net==1 and OS != "android"', {
311 'dependencies': [
312 'net_with_v8',
313 'net_browser_services',
sammc5403aa1d2015-02-25 04:59:21314 'net_utility_services',
amistry7e6ebfdc82015-02-13 04:19:11315 '../third_party/mojo/mojo_edk.gyp:mojo_system_impl',
316 ],
317 }, { # else
318 'sources!': [
sammc6ac3fe52015-02-25 06:00:28319 'dns/host_resolver_mojo_unittest.cc',
amistry7e6ebfdc82015-02-13 04:19:11320 'dns/mojo_host_resolver_impl_unittest.cc',
sammc352f7492015-02-25 09:45:24321 'proxy/mojo_proxy_resolver_factory_impl_unittest.cc',
sammc5403aa1d2015-02-25 04:59:21322 'proxy/mojo_proxy_resolver_impl_unittest.cc',
sammca3242c92015-07-10 02:38:51323 'proxy/mojo_proxy_resolver_v8_tracing_bindings_unittest.cc',
eromandcacef22015-06-01 19:36:35324 'proxy/proxy_resolver_factory_mojo_unittest.cc',
amistry6e1ed1b2015-03-12 05:24:01325 'proxy/proxy_service_mojo_unittest.cc',
amistry7e6ebfdc82015-02-13 04:19:11326 ],
327 },
328 ],
329
[email protected]4e09d242013-05-02 03:19:35330 [ 'enable_mdns != 1', {
331 'sources!' : [
[email protected]f6a9add2013-05-23 00:56:36332 'dns/mdns_cache_unittest.cc',
[email protected]245b164e2013-06-13 22:31:42333 'dns/mdns_client_unittest.cc',
334 'dns/mdns_query_unittest.cc',
[email protected]4e09d242013-05-02 03:19:35335 'dns/record_parsed_unittest.cc',
336 'dns/record_rdata_unittest.cc',
337 ],
338 }],
[email protected]2f80c312009-02-25 21:26:55339 [ 'OS == "win"', {
[email protected]83727172010-06-04 17:58:08340 'sources!': [
[email protected]d84316a2011-08-18 04:41:21341 'dns/dns_config_service_posix_unittest.cc',
[email protected]83727172010-06-04 17:58:08342 'http/http_auth_gssapi_posix_unittest.cc',
343 ],
davidben1b53bf6ea2014-11-05 22:38:41344 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
345 'msvs_disabled_warnings': [4267, ],
[email protected]27be5062014-01-24 01:00:41346 'conditions': [
347 [ 'icu_use_data_file_flag == 0', {
348 # This is needed to trigger the dll copy step on windows.
349 # TODO(mark): Specifying this here shouldn't be necessary.
350 'dependencies': [
351 '../third_party/icu/icu.gyp:icudata',
352 ],
353 }],
354 ],
[email protected]2f80c312009-02-25 21:26:55355 },
356 ],
[email protected]d4158952012-09-18 09:04:33357 [ 'OS == "ios"', {
[email protected]a414acf92012-10-02 11:25:57358 'actions': [
359 {
360 'action_name': 'copy_test_data',
361 'variables': {
362 'test_data_files': [
363 'data/ssl/certificates/',
[email protected]938347e2013-05-20 16:45:38364 'data/test.html',
[email protected]a414acf92012-10-02 11:25:57365 'data/url_request_unittest/',
mattm057b0152015-08-11 00:26:24366 'data/verify_name_match_unittest/names/',
eroman58423c12015-08-14 20:47:36367 'data/parse_certificate_unittest/',
[email protected]a414acf92012-10-02 11:25:57368 ],
369 'test_data_prefix': 'net',
370 },
371 'includes': [ '../build/copy_test_data_ios.gypi' ],
372 },
373 ],
374 'sources!': [
375 # TODO(droger): The following tests are disabled because the
376 # implementation is missing or incomplete.
377 # KeygenHandler::GenKeyAndSignChallenge() is not ported to iOS.
378 'base/keygen_handler_unittest.cc',
[email protected]a414acf92012-10-02 11:25:57379 'disk_cache/backend_unittest.cc',
[email protected]80422f322014-03-03 20:28:14380 'disk_cache/blockfile/block_files_unittest.cc',
[email protected]ed60cb32014-02-04 00:57:28381 # Need to read input data files.
382 'filter/gzip_filter_unittest.cc',
[email protected]a414acf92012-10-02 11:25:57383 # Need TestServer.
eroman0fad62b2015-04-08 18:54:11384 "cert_net/cert_net_fetcher_impl_unittest.cc",
[email protected]a414acf92012-10-02 11:25:57385 'proxy/proxy_script_fetcher_impl_unittest.cc',
386 'socket/ssl_client_socket_unittest.cc',
satoruxeef164ef2015-02-16 01:39:34387 'socket/ssl_server_socket_unittest.cc',
388 'spdy/fuzzing/hpack_fuzz_util_test.cc',
[email protected]a414acf92012-10-02 11:25:57389 # Needs GetAppOutput().
390 'test/python_utils_unittest.cc',
satoruxeef164ef2015-02-16 01:39:34391 'url_request/url_fetcher_impl_unittest.cc',
392 'url_request/url_request_context_builder_unittest.cc',
[email protected]a414acf92012-10-02 11:25:57393
394 # The following tests are disabled because they don't apply to
395 # iOS.
396 # OS is not "linux" or "freebsd" or "openbsd".
[email protected]518c63a2014-07-24 03:51:23397 'socket/unix_domain_client_socket_posix_unittest.cc',
[email protected]518c63a2014-07-24 03:51:23398 'socket/unix_domain_server_socket_posix_unittest.cc',
[email protected]df53da82014-02-18 22:27:17399
[email protected]8fddf1d2014-03-27 18:08:06400 # See bug http://crbug.com/344533.
401 'disk_cache/blockfile/index_table_v3_unittest.cc',
[email protected]d4158952012-09-18 09:04:33402 ],
[email protected]eb6d2392012-08-02 11:28:23403 }],
[email protected]87a80852014-05-17 16:09:58404 ['OS == "android"', {
[email protected]5ecf7cb282014-05-11 01:49:55405 # TODO(mmenke): This depends on test_support_base, which depends on
406 # icu. Figure out a way to remove that dependency.
[email protected]a44d1212012-05-25 20:17:49407 'dependencies': [
408 '../testing/android/native_test.gyp:native_test_native_code',
[email protected]b397b062012-06-26 19:33:28409 ]
[email protected]a44d1212012-05-25 20:17:49410 }],
rmcilroyffe89b42015-04-10 11:00:15411 ['use_v8_in_net==1 and v8_use_external_startup_data==1', {
baixo3a3c88a2014-10-28 11:52:21412 'dependencies': [
413 '../gin/gin.gyp:gin',
414 ]
415 }],
[email protected]2f80c312009-02-25 21:26:55416 ],
[email protected]b1874a8782014-02-10 21:36:25417 'target_conditions': [
418 # These source files are excluded by default platform rules, but they
419 # are needed in specific cases on other platforms. Re-including them can
420 # only be done in target_conditions as it is evaluated after the
421 # platform rules.
422 ['OS == "android"', {
423 'sources/': [
424 ['include', '^base/address_tracker_linux_unittest\\.cc$'],
425 ],
426 }],
drogerf83b91262015-03-05 19:45:19427 ['OS == "ios"', {
428 'sources/': [
429 ['include', '^base/mac/url_conversions_unittest\\.mm$'],
430 ],
431 }],
[email protected]b1874a8782014-02-10 21:36:25432 ],
[email protected]2f80c312009-02-25 21:26:55433 },
434 {
435 'target_name': 'net_perftests',
436 'type': 'executable',
437 'dependencies': [
[email protected]2f80c312009-02-25 21:26:55438 '../base/base.gyp:base',
[email protected]d34d79f2009-10-14 22:06:14439 '../base/base.gyp:base_i18n',
[email protected]7d1ba9392009-08-03 18:35:06440 '../base/base.gyp:test_support_perf',
[email protected]2f80c312009-02-25 21:26:55441 '../testing/gtest.gyp:gtest',
[email protected]002cc08f2013-06-03 05:40:29442 '../url/url.gyp:url_lib',
[email protected]eb6d2392012-08-02 11:28:23443 'net',
rohitrao1860223c2015-05-16 01:07:14444 'net_extras',
[email protected]eb6d2392012-08-02 11:28:23445 'net_test_support',
[email protected]2f80c312009-02-25 21:26:55446 ],
447 'sources': [
ricea10eb9f5e2015-05-19 18:51:57448 'base/mime_sniffer_perftest.cc',
[email protected]63ee33bd2012-03-15 09:29:58449 'cookies/cookie_monster_perftest.cc',
[email protected]c2c5cfc2014-03-03 16:35:28450 'disk_cache/blockfile/disk_cache_perftest.cc',
rohitrao1860223c2015-05-16 01:07:14451 'extras/sqlite/sqlite_persistent_cookie_store_perftest.cc',
[email protected]448cfef82009-03-06 01:44:33452 'proxy/proxy_resolver_perftest.cc',
hclam5a5ee682015-02-05 04:18:22453 'udp/udp_socket_perftest.cc',
riceab2ab0062014-09-01 09:59:59454 'websockets/websocket_frame_perftest.cc',
[email protected]2f80c312009-02-25 21:26:55455 ],
456 'conditions': [
[email protected]ba7866b82012-09-07 14:22:27457 [ 'use_v8_in_net==1', {
458 'dependencies': [
459 'net_with_v8',
460 ],
461 }, { # else: !use_v8_in_net
462 'sources!': [
463 'proxy/proxy_resolver_perftest.cc',
464 ],
465 },
466 ],
[email protected]2f80c312009-02-25 21:26:55467 [ 'OS == "win"', {
[email protected]27be5062014-01-24 01:00:41468 'conditions': [
469 [ 'icu_use_data_file_flag == 0', {
470 # This is needed to trigger the dll copy step on windows.
471 # TODO(mark): Specifying this here shouldn't be necessary.
472 'dependencies': [
473 '../third_party/icu/icu.gyp:icudata',
474 ],
475 }],
[email protected]2f80c312009-02-25 21:26:55476 ],
[email protected]9dcec242013-01-10 23:24:28477 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
478 'msvs_disabled_warnings': [4267, ],
[email protected]27be5062014-01-24 01:00:41479 }],
riceab2ab0062014-09-01 09:59:59480 [ 'enable_websockets != 1', {
481 'sources!': [
482 'websockets/websocket_frame_perftest.cc',
483 ],
484 }],
[email protected]f9ff629f2010-09-03 23:54:36485 ],
486 },
487 {
[email protected]6718b412009-03-04 18:26:00488 'target_name': 'net_test_support',
[email protected]5a547332011-05-19 23:18:53489 'type': 'static_library',
[email protected]6718b412009-03-04 18:26:00490 'dependencies': [
[email protected]6718b412009-03-04 18:26:00491 '../base/base.gyp:base',
[email protected]5f38d712010-10-26 06:46:59492 '../base/base.gyp:test_support_base',
Nico Weberab3090302015-01-19 06:14:43493 '../crypto/crypto.gyp:crypto',
[email protected]ed32c212013-05-14 20:49:29494 '../net/tools/tld_cleanup/tld_cleanup.gyp:tld_cleanup_util',
[email protected]ff007e162009-05-23 09:13:15495 '../testing/gtest.gyp:gtest',
[email protected]f22f316b2013-06-21 05:26:18496 '../testing/gmock.gyp:gmock',
[email protected]002cc08f2013-06-03 05:40:29497 '../url/url.gyp:url_lib',
[email protected]eb6d2392012-08-02 11:28:23498 'net',
[email protected]6718b412009-03-04 18:26:00499 ],
[email protected]44738602012-03-02 22:56:01500 'export_dependent_settings': [
501 '../base/base.gyp:base',
[email protected]5ecf7cb282014-05-11 01:49:55502 # TODO(mmenke): This depends on icu, figure out a way to build tests
503 # without icu.
[email protected]44738602012-03-02 22:56:01504 '../base/base.gyp:test_support_base',
davidben85bad9e2015-05-11 20:20:10505 '../crypto/crypto.gyp:crypto',
[email protected]44738602012-03-02 22:56:01506 '../testing/gtest.gyp:gtest',
[email protected]f22f316b2013-06-21 05:26:18507 '../testing/gmock.gyp:gmock',
[email protected]44738602012-03-02 22:56:01508 ],
[email protected]6718b412009-03-04 18:26:00509 'sources': [
[email protected]b258e0792013-01-12 07:11:59510 'base/load_timing_info_test_util.cc',
511 'base/load_timing_info_test_util.h',
[email protected]47a881b2011-08-29 22:59:21512 'base/mock_file_stream.cc',
513 'base/mock_file_stream.h',
[email protected]ad74a592011-01-21 18:40:55514 'base/test_completion_callback.cc',
515 'base/test_completion_callback.h',
[email protected]42fdb452012-11-01 12:44:40516 'base/test_data_directory.cc',
517 'base/test_data_directory.h',
[email protected]6e7845ae2013-03-29 21:48:11518 'cert/mock_cert_verifier.cc',
519 'cert/mock_cert_verifier.h',
[email protected]63ee33bd2012-03-15 09:29:58520 'cookies/cookie_monster_store_test.cc',
521 'cookies/cookie_monster_store_test.h',
522 'cookies/cookie_store_test_callbacks.cc',
523 'cookies/cookie_store_test_callbacks.h',
524 'cookies/cookie_store_test_helpers.cc',
525 'cookies/cookie_store_test_helpers.h',
[email protected]79b3fec2011-11-15 22:33:47526 'disk_cache/disk_cache_test_base.cc',
527 'disk_cache/disk_cache_test_base.h',
[email protected]2f80c312009-02-25 21:26:55528 'disk_cache/disk_cache_test_util.cc',
[email protected]6718b412009-03-04 18:26:00529 'disk_cache/disk_cache_test_util.h',
[email protected]78eac2a2012-03-14 19:09:27530 'dns/dns_test_util.cc',
[email protected]4b0112ab2011-07-22 15:58:20531 'dns/dns_test_util.h',
[email protected]f2cb3cf2013-03-21 01:40:53532 'dns/mock_host_resolver.cc',
533 'dns/mock_host_resolver.h',
[email protected]f22f316b2013-06-21 05:26:18534 'dns/mock_mdns_socket_factory.cc',
535 'dns/mock_mdns_socket_factory.h',
[email protected]c41737d2014-05-14 07:47:19536 'http/http_transaction_test_util.cc',
537 'http/http_transaction_test_util.h',
vishal.b62985ca92015-04-17 08:45:51538 'log/test_net_log.cc',
539 'log/test_net_log.h',
mmenke43758e62015-05-04 21:09:46540 'log/test_net_log_entry.cc',
541 'log/test_net_log_entry.h',
mmenke0034c542015-05-05 22:34:59542 'log/test_net_log_util.cc',
mmenke43758e62015-05-04 21:09:46543 'log/test_net_log_util.h',
[email protected]b6ce91b2011-02-10 21:30:50544 'proxy/mock_proxy_resolver.cc',
545 'proxy/mock_proxy_resolver.h',
[email protected]7258def2011-05-17 19:53:00546 'proxy/mock_proxy_script_fetcher.cc',
547 'proxy/mock_proxy_script_fetcher.h',
[email protected]ab501a6a2009-05-12 15:07:50548 'proxy/proxy_config_service_common_unittest.cc',
549 'proxy/proxy_config_service_common_unittest.h',
[email protected]f7984fc62009-06-22 23:26:44550 'socket/socket_test_util.cc',
551 'socket/socket_test_util.h',
[email protected]6e7845ae2013-03-29 21:48:11552 'test/cert_test_util.cc',
553 'test/cert_test_util.h',
[email protected]83e1ae32014-07-18 10:57:07554 'test/cert_test_util_nss.cc',
nharper2e171cf2015-06-01 20:29:23555 'test/channel_id_test_util.cc',
556 'test/channel_id_test_util.h',
[email protected]95ac16b2013-11-01 01:42:03557 'test/ct_test_util.cc',
558 'test/ct_test_util.h',
[email protected]eb7388f2013-05-09 17:00:26559 'test/embedded_test_server/embedded_test_server.cc',
560 'test/embedded_test_server/embedded_test_server.h',
[email protected]b6e5b6c62013-05-07 17:50:26561 'test/embedded_test_server/http_connection.cc',
562 'test/embedded_test_server/http_connection.h',
563 'test/embedded_test_server/http_request.cc',
564 'test/embedded_test_server/http_request.h',
565 'test/embedded_test_server/http_response.cc',
566 'test/embedded_test_server/http_response.h',
sammc6ac3fe52015-02-25 06:00:28567 'test/event_waiter.h',
[email protected]8efa4ba42013-03-18 21:14:14568 'test/net_test_suite.cc',
569 'test/net_test_suite.h',
[email protected]9af13ce2010-09-16 21:45:48570 'test/python_utils.cc',
[email protected]a44d1212012-05-25 20:17:49571 'test/python_utils.h',
[email protected]89b32522013-05-07 20:04:21572 'test/spawned_test_server/base_test_server.cc',
573 'test/spawned_test_server/base_test_server.h',
[email protected]89b32522013-05-07 20:04:21574 'test/spawned_test_server/local_test_server.cc',
575 'test/spawned_test_server/local_test_server.h',
satoruxdd0840d32015-02-12 19:10:26576 'test/spawned_test_server/local_test_server_posix.cc',
577 'test/spawned_test_server/local_test_server_win.cc',
[email protected]89b32522013-05-07 20:04:21578 'test/spawned_test_server/spawned_test_server.h',
xunjieli885de312015-07-20 16:18:51579 'test/url_request/ssl_certificate_error_job.cc',
580 'test/url_request/ssl_certificate_error_job.h',
xunjieli2906f152014-09-12 00:08:23581 'test/url_request/url_request_failed_job.cc',
582 'test/url_request/url_request_failed_job.h',
mef3e826cf2014-12-13 18:40:40583 'test/url_request/url_request_mock_data_job.cc',
584 'test/url_request/url_request_mock_data_job.h',
jam8e45cd72015-01-20 16:33:44585 'test/url_request/url_request_slow_download_job.cc',
586 'test/url_request/url_request_slow_download_job.h',
[email protected]8f2d8bdd2012-06-19 23:44:05587 'url_request/test_url_fetcher_factory.cc',
588 'url_request/test_url_fetcher_factory.h',
[email protected]d2db0292011-01-26 20:23:44589 'url_request/url_request_test_util.cc',
590 'url_request/url_request_test_util.h',
[email protected]702a6a722010-03-17 18:24:51591 ],
592 'conditions': [
[email protected]0dc310a32013-05-08 23:52:44593 ['OS != "ios"', {
[email protected]6c2046562010-05-07 23:47:50594 'dependencies': [
[email protected]9cac94e2010-10-01 16:35:12595 '../third_party/protobuf/protobuf.gyp:py_proto',
[email protected]6c2046562010-05-07 23:47:50596 ],
sherouk3eee4a82015-09-01 10:42:33597 }, {
598 'sources!': [
599 'test/spawned_test_server/base_test_server.cc',
600 'test/spawned_test_server/base_test_server.h',
601 'test/spawned_test_server/local_test_server.cc',
602 'test/spawned_test_server/local_test_server.h',
603 'test/spawned_test_server/local_test_server_posix.cc',
604 'test/spawned_test_server/local_test_server_win.cc',
605 'test/spawned_test_server/spawned_test_server.h',
606 ],
[email protected]6c2046562010-05-07 23:47:50607 }],
davidben4a644b02015-07-01 19:34:55608 ['use_nss_certs == 1 or OS == "ios"', {
[email protected]70372d42010-10-22 13:12:34609 'conditions': [
davidben15d69d482014-09-29 18:24:08610 [ 'desktop_linux == 1 or chromeos == 1', {
[email protected]70372d42010-10-22 13:12:34611 'dependencies': [
[email protected]638e9df42011-05-31 17:19:30612 '../build/linux/system.gyp:ssl',
[email protected]70372d42010-10-22 13:12:34613 ],
davidben15d69d482014-09-29 18:24:08614 }, { # desktop_linux == 0 and chromeos == 0
615 'dependencies': [
616 '../third_party/nss/nss.gyp:nspr',
617 '../third_party/nss/nss.gyp:nss',
618 'third_party/nss/ssl.gyp:libssl',
619 ],
[email protected]70372d42010-10-22 13:12:34620 }],
[email protected]702a6a722010-03-17 18:24:51621 ],
622 }],
[email protected]10246a02012-07-30 15:15:01623 ['os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', {
[email protected]85437612010-03-22 11:55:23624 'conditions': [
[email protected]2fa89ef2014-05-07 18:45:59625 ['use_allocator!="none"', {
[email protected]85437612010-03-22 11:55:23626 'dependencies': [
627 '../base/allocator/allocator.gyp:allocator',
628 ],
629 }],
630 ],
631 }],
jbudorickb7043d82015-06-27 01:43:03632 ['OS == "android"', {
633 'dependencies': [
634 'net_test_jni_headers',
635 ],
636 'sources': [
637 'test/android/net_test_jni_onload.cc',
638 'test/android/net_test_jni_onload.h',
639 'test/embedded_test_server/android/embedded_test_server_android.cc',
640 'test/embedded_test_server/android/embedded_test_server_android.h',
[email protected]89b32522013-05-07 20:04:21641 'test/spawned_test_server/remote_test_server.cc',
642 'test/spawned_test_server/remote_test_server.h',
643 'test/spawned_test_server/spawner_communicator.cc',
644 'test/spawned_test_server/spawner_communicator.h',
[email protected]31526822012-03-12 06:04:43645 ],
646 }],
[email protected]ba7866b82012-09-07 14:22:27647 [ 'use_v8_in_net==1', {
648 'dependencies': [
649 'net_with_v8',
650 ],
651 },
652 ],
[email protected]f22f316b2013-06-21 05:26:18653 [ 'enable_mdns != 1', {
654 'sources!' : [
655 'dns/mock_mdns_socket_factory.cc',
656 'dns/mock_mdns_socket_factory.h'
657 ]
658 }],
davidben0ee13e372015-04-16 23:23:10659 [ 'use_nss_certs != 1', {
[email protected]83e1ae32014-07-18 10:57:07660 'sources!': [
661 'test/cert_test_util_nss.cc',
662 ],
663 }],
xunjielia6888202015-04-14 21:34:25664 ['disable_file_support != 1', {
665 'sources': [
666 'test/url_request/url_request_mock_http_job.cc',
667 'test/url_request/url_request_mock_http_job.h',
668 'url_request/test_url_request_interceptor.cc',
669 'url_request/test_url_request_interceptor.h',
670 ],
671 }],
[email protected]2f80c312009-02-25 21:26:55672 ],
[email protected]9dcec242013-01-10 23:24:28673 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
674 'msvs_disabled_warnings': [4267, ],
[email protected]2f80c312009-02-25 21:26:55675 },
[email protected]ef36c74c2009-03-11 13:32:22676 {
677 'target_name': 'net_resources',
678 'type': 'none',
[email protected]5b910872010-02-09 01:03:02679 'variables': {
[email protected]4de39f82011-03-28 12:01:29680 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/net',
[email protected]5b910872010-02-09 01:03:02681 },
[email protected]4de39f82011-03-28 12:01:29682 'actions': [
[email protected]2f80c312009-02-25 21:26:55683 {
[email protected]4de39f82011-03-28 12:01:29684 'action_name': 'net_resources',
685 'variables': {
686 'grit_grd_file': 'base/net_resources.grd',
687 },
688 'includes': [ '../build/grit_action.gypi' ],
[email protected]2f80c312009-02-25 21:26:55689 },
[email protected]6718b412009-03-04 18:26:00690 ],
[email protected]ef36c74c2009-03-11 13:32:22691 },
[email protected]75b91f92009-06-17 07:28:48692 {
mef327a8e42014-08-29 17:10:03693 'target_name': 'net_extras',
694 'type': 'static_library',
695 'variables': { 'enable_wexit_time_destructors': 1, },
696 'dependencies': [
697 '../base/base.gyp:base',
698 '../sql/sql.gyp:sql',
699 'net',
700 ],
701 'sources': [
702 '<@(net_extras_sources)',
703 ],
704 },
705 {
ttuttlea898dd42015-02-24 18:07:47706 'target_name': 'net_docs',
707 'type': 'none',
708 'actions': [
709 {
710 'action_name': 'net_docs',
711 'variables': {
712 'net_docs_input_dir': '.',
713 },
714 'inputs': [
715 '<@(net_docs_sources)',
716 ],
717 'outputs': [
718 '<(net_docs_output_dir)',
719 ],
720 'action': [
721 'python',
722 '<(net_docs_script)',
723 '--input_path',
724 '<(net_docs_input_dir)',
725 '--output_path',
726 '<(net_docs_output_dir)',
727 '<@(net_docs_sources)',
728 ],
729 'message': 'Rendering network stack documentation',
730 }
731 ],
732 },
733 {
[email protected]a33721a2011-02-03 17:23:24734 'target_name': 'http_server',
[email protected]5a547332011-05-19 23:18:53735 'type': 'static_library',
[email protected]8df769e2011-11-09 23:08:54736 'variables': { 'enable_wexit_time_destructors': 1, },
[email protected]0569d862010-07-05 11:32:40737 'dependencies': [
[email protected]0569d862010-07-05 11:32:40738 '../base/base.gyp:base',
[email protected]eb6d2392012-08-02 11:28:23739 'net',
[email protected]0569d862010-07-05 11:32:40740 ],
[email protected]0569d862010-07-05 11:32:40741 'sources': [
[email protected]86c6a0b52011-08-02 19:49:25742 'server/http_connection.cc',
743 'server/http_connection.h',
[email protected]a33721a2011-02-03 17:23:24744 'server/http_server.cc',
745 'server/http_server.h',
[email protected]1889dc1b2010-10-14 22:03:13746 'server/http_server_request_info.cc',
[email protected]0569d862010-07-05 11:32:40747 'server/http_server_request_info.h',
[email protected]c700fd152013-07-23 21:29:11748 'server/http_server_response_info.cc',
749 'server/http_server_response_info.h',
[email protected]86c6a0b52011-08-02 19:49:25750 'server/web_socket.cc',
751 'server/web_socket.h',
dgozmana6e70092014-12-12 14:46:21752 'server/web_socket_encoder.cc',
753 'server/web_socket_encoder.h',
[email protected]0569d862010-07-05 11:32:40754 ],
[email protected]9dcec242013-01-10 23:24:28755 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
756 'msvs_disabled_warnings': [4267, ],
[email protected]0569d862010-07-05 11:32:40757 },
brettw690c96672015-04-21 16:19:54758 { # GN version: //net:balsa
[email protected]8f6594202014-06-11 14:44:25759 'target_name': 'balsa',
760 'type': 'static_library',
761 'dependencies': [
762 '../base/base.gyp:base',
763 'net',
764 ],
765 'sources': [
766 'tools/balsa/balsa_enums.h',
767 'tools/balsa/balsa_frame.cc',
768 'tools/balsa/balsa_frame.h',
769 'tools/balsa/balsa_headers.cc',
770 'tools/balsa/balsa_headers.h',
771 'tools/balsa/balsa_headers_token_utils.cc',
772 'tools/balsa/balsa_headers_token_utils.h',
773 'tools/balsa/balsa_visitor_interface.h',
774 'tools/balsa/http_message_constants.cc',
775 'tools/balsa/http_message_constants.h',
776 'tools/balsa/noop_balsa_visitor.h',
777 'tools/balsa/simple_buffer.cc',
778 'tools/balsa/simple_buffer.h',
779 'tools/balsa/split.cc',
780 'tools/balsa/split.h',
781 'tools/balsa/string_piece_utils.h',
rtennetie0ee6eb2015-05-01 00:55:09782 'tools/quic/spdy_balsa_utils.cc',
783 'tools/quic/spdy_balsa_utils.h',
[email protected]8f6594202014-06-11 14:44:25784 ],
785 },
786 {
[email protected]27675c82012-11-29 16:34:45787 'target_name': 'dump_cache',
788 'type': 'executable',
789 'dependencies': [
790 '../base/base.gyp:base',
791 'net',
792 'net_test_support',
793 ],
794 'sources': [
[email protected]27675c82012-11-29 16:34:45795 'tools/dump_cache/dump_cache.cc',
796 'tools/dump_cache/dump_files.cc',
797 'tools/dump_cache/dump_files.h',
[email protected]27675c82012-11-29 16:34:45798 ],
[email protected]9dcec242013-01-10 23:24:28799 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
800 'msvs_disabled_warnings': [4267, ],
[email protected]27675c82012-11-29 16:34:45801 },
[email protected]ceeaac792014-06-25 05:14:43802 {
rch47ad01f2015-03-20 21:17:23803 'target_name': 'simple_quic_tools',
804 'type': 'static_library',
805 'dependencies': [
806 '../base/base.gyp:base',
807 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
808 '../url/url.gyp:url_lib',
809 'net',
rtennetib6f1c0d2015-04-03 17:52:06810 'net_quic_proto',
rch47ad01f2015-03-20 21:17:23811 ],
812 'sources': [
rtennetid67b3a722015-08-18 05:15:31813 'tools/quic/quic_client_base.cc',
814 'tools/quic/quic_client_base.h',
rchc99f380c2015-03-26 19:50:56815 'tools/quic/quic_client_session.cc',
816 'tools/quic/quic_client_session.h',
817 'tools/quic/quic_dispatcher.cc',
818 'tools/quic/quic_dispatcher.h',
rch0e945472015-03-26 15:19:21819 'tools/quic/quic_in_memory_cache.cc',
820 'tools/quic/quic_in_memory_cache.h',
rchc99f380c2015-03-26 19:50:56821 'tools/quic/quic_per_connection_packet_writer.cc',
822 'tools/quic/quic_per_connection_packet_writer.h',
rch0e945472015-03-26 15:19:21823 'tools/quic/quic_server_session.cc',
824 'tools/quic/quic_server_session.h',
rch47ad01f2015-03-20 21:17:23825 'tools/quic/quic_simple_client.cc',
826 'tools/quic/quic_simple_client.h',
rch216445c2015-03-27 00:23:28827 'tools/quic/quic_simple_per_connection_packet_writer.cc',
828 'tools/quic/quic_simple_per_connection_packet_writer.h',
829 'tools/quic/quic_simple_server.cc',
830 'tools/quic/quic_simple_server.h',
831 'tools/quic/quic_simple_server_packet_writer.cc',
832 'tools/quic/quic_simple_server_packet_writer.h',
rched113b22015-03-26 04:54:05833 'tools/quic/quic_spdy_client_stream.cc',
834 'tools/quic/quic_spdy_client_stream.h',
rch0e945472015-03-26 15:19:21835 'tools/quic/quic_spdy_server_stream.cc',
836 'tools/quic/quic_spdy_server_stream.h',
837 'tools/quic/quic_time_wait_list_manager.cc',
838 'tools/quic/quic_time_wait_list_manager.h',
rchda78df5a2015-03-22 05:16:37839 'tools/quic/synchronous_host_resolver.cc',
840 'tools/quic/synchronous_host_resolver.h',
rch47ad01f2015-03-20 21:17:23841 ],
842 },
[email protected]ef36c74c2009-03-11 13:32:22843 ],
844 'conditions': [
[email protected]ba7866b82012-09-07 14:22:27845 ['use_v8_in_net == 1', {
846 'targets': [
847 {
848 'target_name': 'net_with_v8',
849 'type': '<(component)',
850 'variables': { 'enable_wexit_time_destructors': 1, },
851 'dependencies': [
852 '../base/base.gyp:base',
[email protected]6b395fe2014-04-08 23:58:15853 '../gin/gin.gyp:gin',
[email protected]002cc08f2013-06-03 05:40:29854 '../url/url.gyp:url_lib',
[email protected]ba7866b82012-09-07 14:22:27855 '../v8/tools/gyp/v8.gyp:v8',
856 'net'
857 ],
858 'defines': [
859 'NET_IMPLEMENTATION',
860 ],
861 'sources': [
862 'proxy/proxy_resolver_v8.cc',
863 'proxy/proxy_resolver_v8.h',
[email protected]501e2d42013-01-30 22:30:49864 'proxy/proxy_resolver_v8_tracing.cc',
865 'proxy/proxy_resolver_v8_tracing.h',
sammcf2d1ea02015-06-29 02:58:47866 'proxy/proxy_resolver_v8_tracing_wrapper.cc',
867 'proxy/proxy_resolver_v8_tracing_wrapper.h',
[email protected]ba7866b82012-09-07 14:22:27868 'proxy/proxy_service_v8.cc',
869 'proxy/proxy_service_v8.h',
870 ],
[email protected]9dcec242013-01-10 23:24:28871 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
872 'msvs_disabled_warnings': [4267, ],
[email protected]ba7866b82012-09-07 14:22:27873 },
874 ],
875 }],
amistryaa16ad22015-02-04 09:01:47876 ['use_v8_in_net == 1 and OS != "android"', {
877 'targets': [
878 {
879 # GN version: //net/interfaces
880 'target_name': 'net_interfaces',
881 'type': 'static_library',
882 'sources': [
883 'interfaces/host_resolver_service.mojom',
884 'interfaces/proxy_resolver_service.mojom',
885 ],
886 'includes': [
887 '../third_party/mojo/mojom_bindings_generator.gypi',
888 ],
889 },
amistry7e6ebfdc82015-02-13 04:19:11890 {
891 # GN version: //net:net_browser_services
892 'target_name': 'net_browser_services',
893 'type': 'static_library',
894 'sources': [
895 'dns/mojo_host_resolver_impl.cc',
896 'dns/mojo_host_resolver_impl.h',
amistry6e1ed1b2015-03-12 05:24:01897 'proxy/in_process_mojo_proxy_resolver_factory.cc',
898 'proxy/in_process_mojo_proxy_resolver_factory.h',
sammc1d5df4d2015-05-05 05:06:17899 'proxy/mojo_proxy_resolver_factory.h',
eromandcacef22015-06-01 19:36:35900 'proxy/proxy_resolver_factory_mojo.cc',
901 'proxy/proxy_resolver_factory_mojo.h',
amistry6e1ed1b2015-03-12 05:24:01902 'proxy/proxy_service_mojo.cc',
903 'proxy/proxy_service_mojo.h',
amistry7e6ebfdc82015-02-13 04:19:11904 ],
905 'dependencies': [
906 'mojo_type_converters',
907 'net',
908 'net_interfaces',
amistry07ff1402015-03-10 07:34:07909 '../mojo/mojo_base.gyp:mojo_common_lib',
amistry7e6ebfdc82015-02-13 04:19:11910 '../mojo/mojo_base.gyp:mojo_environment_chromium',
amistry07ff1402015-03-10 07:34:07911 '../mojo/mojo_base.gyp:mojo_url_type_converters',
amistry7e6ebfdc82015-02-13 04:19:11912 '../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
amistry6e1ed1b2015-03-12 05:24:01913
914 # NOTE(amistry): As long as we support in-process Mojo v8 PAC, we
915 # need this dependency since in_process_mojo_proxy_resolver_factory
916 # creates the utility process side Mojo services in the browser
917 # process. Ultimately, this will go away when we only support
918 # out-of-process.
919 'net_utility_services',
amistry7e6ebfdc82015-02-13 04:19:11920 ],
921 },
922 {
sammc5403aa1d2015-02-25 04:59:21923 # GN version: //net:net_utility_services
924 'target_name': 'net_utility_services',
925 'type': 'static_library',
926 'sources': [
sammc6ac3fe52015-02-25 06:00:28927 'dns/host_resolver_mojo.cc',
928 'dns/host_resolver_mojo.h',
sammc352f7492015-02-25 09:45:24929 'proxy/mojo_proxy_resolver_factory_impl.cc',
930 'proxy/mojo_proxy_resolver_factory_impl.h',
sammc5403aa1d2015-02-25 04:59:21931 'proxy/mojo_proxy_resolver_impl.cc',
932 'proxy/mojo_proxy_resolver_impl.h',
sammca3242c92015-07-10 02:38:51933 'proxy/mojo_proxy_resolver_v8_tracing_bindings.h',
sammc5403aa1d2015-02-25 04:59:21934 ],
935 'dependencies': [
936 'mojo_type_converters',
sammc5403aa1d2015-02-25 04:59:21937 'net_interfaces',
amistryb91865c2015-03-06 08:50:36938 'net_with_v8',
morrita9e8f56a2015-03-05 20:30:05939 '../mojo/mojo_base.gyp:mojo_url_type_converters',
sammc5403aa1d2015-02-25 04:59:21940 '../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
941 ],
942 },
943 {
amistry7e6ebfdc82015-02-13 04:19:11944 # GN version: //net:mojo_type_converters
945 'target_name': 'mojo_type_converters',
946 'type': 'static_library',
947 'sources': [
amistry7ec58112015-02-26 06:03:00948 'dns/mojo_host_type_converters.cc',
949 'dns/mojo_host_type_converters.h',
950 'proxy/mojo_proxy_type_converters.cc',
951 'proxy/mojo_proxy_type_converters.h',
amistry7e6ebfdc82015-02-13 04:19:11952 ],
953 'dependencies': [
954 'net',
955 'net_interfaces',
956 '../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
957 ],
958 },
amistryaa16ad22015-02-04 09:01:47959 ],
960 }],
[email protected]3f55cf82014-01-24 04:32:18961 ['OS != "ios" and OS != "android"', {
[email protected]10246a02012-07-30 15:15:01962 'targets': [
963 # iOS doesn't have the concept of simple executables, these targets
964 # can't be compiled on the platform.
965 {
[email protected]eb6d2392012-08-02 11:28:23966 'target_name': 'crash_cache',
967 'type': 'executable',
968 'dependencies': [
969 '../base/base.gyp:base',
970 'net',
971 'net_test_support',
972 ],
973 'sources': [
974 'tools/crash_cache/crash_cache.cc',
975 ],
[email protected]9dcec242013-01-10 23:24:28976 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
977 'msvs_disabled_warnings': [4267, ],
[email protected]eb6d2392012-08-02 11:28:23978 },
979 {
980 'target_name': 'crl_set_dump',
981 'type': 'executable',
982 'dependencies': [
983 '../base/base.gyp:base',
984 'net',
985 ],
986 'sources': [
987 'tools/crl_set_dump/crl_set_dump.cc',
988 ],
[email protected]9dcec242013-01-10 23:24:28989 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
990 'msvs_disabled_warnings': [4267, ],
[email protected]eb6d2392012-08-02 11:28:23991 },
992 {
993 'target_name': 'dns_fuzz_stub',
994 'type': 'executable',
995 'dependencies': [
996 '../base/base.gyp:base',
997 'net',
998 ],
999 'sources': [
1000 'tools/dns_fuzz_stub/dns_fuzz_stub.cc',
1001 ],
[email protected]9dcec242013-01-10 23:24:281002 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1003 'msvs_disabled_warnings': [4267, ],
[email protected]eb6d2392012-08-02 11:28:231004 },
1005 {
[email protected]10246a02012-07-30 15:15:011006 'target_name': 'gdig',
1007 'type': 'executable',
1008 'dependencies': [
1009 '../base/base.gyp:base',
1010 'net',
1011 ],
1012 'sources': [
1013 'tools/gdig/file_net_log.cc',
1014 'tools/gdig/gdig.cc',
1015 ],
1016 },
1017 {
[email protected]cd31c7f2012-09-05 00:43:311018 'target_name': 'get_server_time',
1019 'type': 'executable',
1020 'dependencies': [
1021 '../base/base.gyp:base',
1022 '../base/base.gyp:base_i18n',
[email protected]002cc08f2013-06-03 05:40:291023 '../url/url.gyp:url_lib',
[email protected]cd31c7f2012-09-05 00:43:311024 'net',
1025 ],
1026 'sources': [
1027 'tools/get_server_time/get_server_time.cc',
1028 ],
[email protected]9dcec242013-01-10 23:24:281029 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1030 'msvs_disabled_warnings': [4267, ],
[email protected]cd31c7f2012-09-05 00:43:311031 },
1032 {
[email protected]19b4fa52014-05-05 22:03:151033 'target_name': 'hpack_example_generator',
1034 'type': 'executable',
1035 'dependencies': [
1036 '../base/base.gyp:base',
1037 'net',
1038 ],
1039 'sources': [
1040 'spdy/fuzzing/hpack_example_generator.cc',
1041 ],
1042 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1043 'msvs_disabled_warnings': [4267, ],
1044 },
1045 {
1046 'target_name': 'hpack_fuzz_mutator',
1047 'type': 'executable',
1048 'dependencies': [
1049 '../base/base.gyp:base',
1050 'net',
1051 ],
1052 'sources': [
1053 'spdy/fuzzing/hpack_fuzz_mutator.cc',
1054 ],
1055 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1056 'msvs_disabled_warnings': [4267, ],
1057 },
1058 {
1059 'target_name': 'hpack_fuzz_wrapper',
1060 'type': 'executable',
1061 'dependencies': [
1062 '../base/base.gyp:base',
1063 'net',
1064 ],
1065 'sources': [
1066 'spdy/fuzzing/hpack_fuzz_wrapper.cc',
1067 ],
1068 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1069 'msvs_disabled_warnings': [4267, ],
1070 },
1071 {
[email protected]10246a02012-07-30 15:15:011072 'target_name': 'net_watcher',
1073 'type': 'executable',
1074 'dependencies': [
[email protected]10246a02012-07-30 15:15:011075 '../base/base.gyp:base',
[email protected]eb6d2392012-08-02 11:28:231076 'net',
[email protected]ffd3eff2012-08-31 14:50:481077 'net_with_v8',
[email protected]10246a02012-07-30 15:15:011078 ],
[email protected]a6f8cb732012-11-19 19:22:151079 'conditions': [
1080 [ 'use_glib == 1', {
1081 'dependencies': [
1082 '../build/linux/system.gyp:gconf',
1083 '../build/linux/system.gyp:gio',
1084 ],
1085 },
1086 ],
1087 ],
[email protected]10246a02012-07-30 15:15:011088 'sources': [
1089 'tools/net_watcher/net_watcher.cc',
1090 ],
1091 },
1092 {
[email protected]eb6d2392012-08-02 11:28:231093 'target_name': 'run_testserver',
[email protected]10246a02012-07-30 15:15:011094 'type': 'executable',
1095 'dependencies': [
[email protected]10246a02012-07-30 15:15:011096 '../base/base.gyp:base',
[email protected]e4c029f2013-01-20 01:10:241097 '../base/base.gyp:test_support_base',
[email protected]eb6d2392012-08-02 11:28:231098 '../testing/gtest.gyp:gtest',
[email protected]eb6d2392012-08-02 11:28:231099 'net_test_support',
[email protected]10246a02012-07-30 15:15:011100 ],
1101 'sources': [
[email protected]eb6d2392012-08-02 11:28:231102 'tools/testserver/run_testserver.cc',
1103 ],
1104 },
1105 {
rch216445c2015-03-27 00:23:281106 'target_name': 'quic_client',
rcha9d12ce12015-03-19 23:06:491107 'type': 'executable',
1108 'dependencies': [
1109 '../base/base.gyp:base',
1110 '../url/url.gyp:url_lib',
1111 'net',
rch47ad01f2015-03-20 21:17:231112 'simple_quic_tools',
rcha9d12ce12015-03-19 23:06:491113 ],
1114 'sources': [
rcha9d12ce12015-03-19 23:06:491115 'tools/quic/quic_simple_client_bin.cc',
rcha9d12ce12015-03-19 23:06:491116 ],
1117 },
1118 {
rch216445c2015-03-27 00:23:281119 'target_name': 'quic_server',
1120 'type': 'executable',
1121 'dependencies': [
1122 '../base/base.gyp:base',
1123 'net',
rtennetib6f1c0d2015-04-03 17:52:061124 'net_quic_proto',
rch216445c2015-03-27 00:23:281125 'simple_quic_tools',
1126 ],
1127 'sources': [
1128 'tools/quic/quic_simple_server_bin.cc',
1129 ],
1130 },
1131 {
[email protected]eb6d2392012-08-02 11:28:231132 'target_name': 'stress_cache',
1133 'type': 'executable',
1134 'dependencies': [
1135 '../base/base.gyp:base',
1136 'net',
1137 'net_test_support',
1138 ],
1139 'sources': [
rvargase23fcf652015-03-04 19:59:221140 'tools/stress_cache/stress_cache.cc',
[email protected]10246a02012-07-30 15:15:011141 ],
[email protected]9dcec242013-01-10 23:24:281142 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1143 'msvs_disabled_warnings': [4267, ],
[email protected]10246a02012-07-30 15:15:011144 },
1145 {
1146 'target_name': 'tld_cleanup',
1147 'type': 'executable',
1148 'dependencies': [
1149 '../base/base.gyp:base',
1150 '../base/base.gyp:base_i18n',
[email protected]ed32c212013-05-14 20:49:291151 '../net/tools/tld_cleanup/tld_cleanup.gyp:tld_cleanup_util',
[email protected]10246a02012-07-30 15:15:011152 ],
1153 'sources': [
1154 'tools/tld_cleanup/tld_cleanup.cc',
1155 ],
[email protected]9dcec242013-01-10 23:24:281156 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1157 'msvs_disabled_warnings': [4267, ],
[email protected]10246a02012-07-30 15:15:011158 },
[email protected]10246a02012-07-30 15:15:011159 ],
1160 }],
[email protected]10246a02012-07-30 15:15:011161 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
[email protected]72322c52012-07-13 21:22:551162 'targets': [
1163 {
[email protected]6c7e6522013-09-29 15:27:441164 'target_name': 'epoll_server',
1165 'type': 'static_library',
1166 'dependencies': [
1167 '../base/base.gyp:base',
1168 'net',
1169 ],
1170 'sources': [
1171 'tools/epoll_server/epoll_server.cc',
1172 'tools/epoll_server/epoll_server.h',
1173 ],
1174 },
1175 {
1176 'target_name': 'flip_in_mem_edsm_server_base',
[email protected]29e052312013-08-06 05:44:511177 'type': 'static_library',
[email protected]72322c52012-07-13 21:22:551178 'cflags': [
1179 '-Wno-deprecated',
1180 ],
1181 'dependencies': [
1182 '../base/base.gyp:base',
[email protected]edfd0f42014-07-22 18:20:371183 '../third_party/boringssl/boringssl.gyp:boringssl',
[email protected]6c7e6522013-09-29 15:27:441184 'balsa',
1185 'epoll_server',
[email protected]eb6d2392012-08-02 11:28:231186 'net',
[email protected]72322c52012-07-13 21:22:551187 ],
1188 'sources': [
[email protected]72322c52012-07-13 21:22:551189 'tools/flip_server/acceptor_thread.cc',
satoruxdd0840d32015-02-12 19:10:261190 'tools/flip_server/acceptor_thread.h',
1191 'tools/flip_server/constants.h',
[email protected]72322c52012-07-13 21:22:551192 'tools/flip_server/create_listener.cc',
1193 'tools/flip_server/create_listener.h',
[email protected]72322c52012-07-13 21:22:551194 'tools/flip_server/flip_config.cc',
1195 'tools/flip_server/flip_config.h',
[email protected]72322c52012-07-13 21:22:551196 'tools/flip_server/http_interface.cc',
1197 'tools/flip_server/http_interface.h',
[email protected]72322c52012-07-13 21:22:551198 'tools/flip_server/loadtime_measurement.h',
[email protected]72322c52012-07-13 21:22:551199 'tools/flip_server/mem_cache.cc',
satoruxdd0840d32015-02-12 19:10:261200 'tools/flip_server/mem_cache.h',
[email protected]72322c52012-07-13 21:22:551201 'tools/flip_server/output_ordering.cc',
1202 'tools/flip_server/output_ordering.h',
1203 'tools/flip_server/ring_buffer.cc',
1204 'tools/flip_server/ring_buffer.h',
[email protected]72322c52012-07-13 21:22:551205 'tools/flip_server/sm_connection.cc',
1206 'tools/flip_server/sm_connection.h',
1207 'tools/flip_server/sm_interface.h',
[email protected]72322c52012-07-13 21:22:551208 'tools/flip_server/spdy_interface.cc',
1209 'tools/flip_server/spdy_interface.h',
satoruxdd0840d32015-02-12 19:10:261210 'tools/flip_server/spdy_ssl.cc',
1211 'tools/flip_server/spdy_ssl.h',
[email protected]72322c52012-07-13 21:22:551212 'tools/flip_server/spdy_util.cc',
1213 'tools/flip_server/spdy_util.h',
1214 'tools/flip_server/streamer_interface.cc',
1215 'tools/flip_server/streamer_interface.h',
rvargas145310f2015-08-14 18:09:041216 'tools/flip_server/url_to_filename_encoder.cc',
1217 'tools/flip_server/url_to_filename_encoder.h',
1218 'tools/flip_server/url_utilities.cc',
1219 'tools/flip_server/url_utilities.h',
[email protected]72322c52012-07-13 21:22:551220 ],
1221 },
[email protected]519e49882013-03-27 08:45:321222 {
[email protected]673ec5d2013-11-12 02:54:251223 'target_name': 'flip_in_mem_edsm_server_unittests',
1224 'type': 'executable',
1225 'dependencies': [
1226 '../testing/gtest.gyp:gtest',
1227 '../testing/gmock.gyp:gmock',
[email protected]edfd0f42014-07-22 18:20:371228 '../third_party/boringssl/boringssl.gyp:boringssl',
[email protected]673ec5d2013-11-12 02:54:251229 'flip_in_mem_edsm_server_base',
1230 'net',
1231 'net_test_support',
1232 ],
1233 'sources': [
1234 'tools/flip_server/flip_test_utils.cc',
1235 'tools/flip_server/flip_test_utils.h',
1236 'tools/flip_server/http_interface_test.cc',
1237 'tools/flip_server/mem_cache_test.cc',
1238 'tools/flip_server/run_all_tests.cc',
1239 'tools/flip_server/spdy_interface_test.cc',
rvargas145310f2015-08-14 18:09:041240 'tools/flip_server/url_to_filename_encoder_unittest.cc',
1241 'tools/flip_server/url_utilities_unittest.cc',
[email protected]673ec5d2013-11-12 02:54:251242 ],
1243 },
1244 {
[email protected]29e052312013-08-06 05:44:511245 'target_name': 'flip_in_mem_edsm_server',
1246 'type': 'executable',
1247 'cflags': [
1248 '-Wno-deprecated',
1249 ],
1250 'dependencies': [
1251 '../base/base.gyp:base',
[email protected]6c7e6522013-09-29 15:27:441252 'flip_in_mem_edsm_server_base',
[email protected]29e052312013-08-06 05:44:511253 'net',
1254 ],
1255 'sources': [
1256 'tools/flip_server/flip_in_mem_edsm_server.cc',
1257 ],
1258 },
1259 {
rch216445c2015-03-27 00:23:281260 'target_name': 'epoll_quic_tools',
[email protected]519e49882013-03-27 08:45:321261 'type': 'static_library',
1262 'dependencies': [
1263 '../base/base.gyp:base',
1264 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]002cc08f2013-06-03 05:40:291265 '../url/url.gyp:url_lib',
[email protected]6c7e6522013-09-29 15:27:441266 'balsa',
1267 'epoll_server',
[email protected]519e49882013-03-27 08:45:321268 'net',
rtennetib6f1c0d2015-04-03 17:52:061269 'net_quic_proto',
[email protected]519e49882013-03-27 08:45:321270 ],
1271 'sources': [
[email protected]e45d68892013-03-30 17:50:101272 'tools/quic/quic_client.cc',
1273 'tools/quic/quic_client.h',
[email protected]cbd731e2013-10-24 00:20:391274 'tools/quic/quic_default_packet_writer.cc',
1275 'tools/quic/quic_default_packet_writer.h',
[email protected]519e49882013-03-27 08:45:321276 'tools/quic/quic_epoll_clock.cc',
1277 'tools/quic/quic_epoll_clock.h',
1278 'tools/quic/quic_epoll_connection_helper.cc',
1279 'tools/quic/quic_epoll_connection_helper.h',
rtennetifb3fa6c2015-03-16 23:04:551280 'tools/quic/quic_packet_reader.cc',
1281 'tools/quic/quic_packet_reader.h',
[email protected]9f0dcd4e2014-01-16 15:58:141282 'tools/quic/quic_packet_writer_wrapper.cc',
1283 'tools/quic/quic_packet_writer_wrapper.h',
[email protected]e45d68892013-03-30 17:50:101284 'tools/quic/quic_server.cc',
1285 'tools/quic/quic_server.h',
[email protected]519e49882013-03-27 08:45:321286 'tools/quic/quic_socket_utils.cc',
1287 'tools/quic/quic_socket_utils.h',
[email protected]519e49882013-03-27 08:45:321288 ],
1289 },
1290 {
rch216445c2015-03-27 00:23:281291 'target_name': 'epoll_quic_client',
[email protected]519e49882013-03-27 08:45:321292 'type': 'executable',
1293 'dependencies': [
1294 '../base/base.gyp:base',
[email protected]519e49882013-03-27 08:45:321295 'net',
rch216445c2015-03-27 00:23:281296 'epoll_quic_tools',
rchda78df5a2015-03-22 05:16:371297 'simple_quic_tools',
[email protected]519e49882013-03-27 08:45:321298 ],
1299 'sources': [
[email protected]519e49882013-03-27 08:45:321300 'tools/quic/quic_client_bin.cc',
[email protected]519e49882013-03-27 08:45:321301 ],
1302 },
1303 {
rch216445c2015-03-27 00:23:281304 'target_name': 'epoll_quic_server',
[email protected]519e49882013-03-27 08:45:321305 'type': 'executable',
1306 'dependencies': [
1307 '../base/base.gyp:base',
[email protected]519e49882013-03-27 08:45:321308 'net',
rtennetib6f1c0d2015-04-03 17:52:061309 'net_quic_proto',
rch216445c2015-03-27 00:23:281310 'epoll_quic_tools',
rch0e945472015-03-26 15:19:211311 'simple_quic_tools',
[email protected]519e49882013-03-27 08:45:321312 ],
1313 'sources': [
rch216445c2015-03-27 00:23:281314 'tools/quic/quic_server_bin.cc',
[email protected]519e49882013-03-27 08:45:321315 ],
[email protected]7499f22fe2014-04-30 21:58:501316 },
[email protected]72322c52012-07-13 21:22:551317 ]
1318 }],
[email protected]ad116b2e82012-04-20 03:24:071319 ['OS=="android"', {
1320 'targets': [
mefdc8e94b2015-03-11 19:49:051321 { # The same target as 'net', but with smaller binary size due to
1322 # exclusion of ICU, FTP, FILE and WebSockets support.
1323 'target_name': 'net_small',
1324 'variables': {
1325 'disable_ftp_support': 1,
1326 'disable_file_support': 1,
1327 'enable_websockets': 0,
1328 },
1329 'dependencies': [
1330 '../url/url.gyp:url_lib_use_icu_alternatives_on_android',
1331 ],
1332 'defines': [
1333 'USE_ICU_ALTERNATIVES_ON_ANDROID=1',
1334 'DISABLE_FILE_SUPPORT=1',
1335 'DISABLE_FTP_SUPPORT=1',
1336 ],
1337 'sources': [
1338 'base/net_string_util_icu_alternatives_android.cc',
1339 'base/net_string_util_icu_alternatives_android.h',
1340 ],
1341 'includes': [ 'net_common.gypi' ],
1342 },
[email protected]ad116b2e82012-04-20 03:24:071343 {
1344 'target_name': 'net_jni_headers',
1345 'type': 'none',
[email protected]e46f66152012-07-19 20:02:551346 'sources': [
[email protected]23073f92014-01-17 22:52:171347 'android/java/src/org/chromium/net/AndroidCertVerifyResult.java',
[email protected]03a07b2e2013-02-11 20:13:451348 'android/java/src/org/chromium/net/AndroidKeyStore.java',
[email protected]e46f66152012-07-19 20:02:551349 'android/java/src/org/chromium/net/AndroidNetworkLibrary.java',
[email protected]2816e1f2014-02-15 00:54:271350 'android/java/src/org/chromium/net/AndroidPrivateKey.java',
tbansal59a1ddc2015-09-14 17:35:011351 'android/java/src/org/chromium/net/AndroidTrafficStats.java',
[email protected]d72acb02012-12-15 22:19:441352 'android/java/src/org/chromium/net/GURLUtils.java',
aberentec894a52015-07-09 14:45:531353 'android/java/src/org/chromium/net/HttpNegotiateAuthenticator.java',
mefdc8e94b2015-03-11 19:49:051354 'android/java/src/org/chromium/net/NetStringUtil.java',
[email protected]e46f66152012-07-19 20:02:551355 'android/java/src/org/chromium/net/NetworkChangeNotifier.java',
1356 'android/java/src/org/chromium/net/ProxyChangeListener.java',
[email protected]18c360a2013-10-22 14:35:151357 'android/java/src/org/chromium/net/X509Util.java',
[email protected]e46f66152012-07-19 20:02:551358 ],
[email protected]ad116b2e82012-04-20 03:24:071359 'variables': {
[email protected]521cd942013-03-07 22:34:051360 'jni_gen_package': 'net',
[email protected]ad116b2e82012-04-20 03:24:071361 },
[email protected]03a07b2e2013-02-11 20:13:451362 'includes': [ '../build/jni_generator.gypi' ],
1363 },
1364 {
1365 'target_name': 'net_test_jni_headers',
1366 'type': 'none',
1367 'sources': [
1368 'android/javatests/src/org/chromium/net/AndroidKeyStoreTestUtil.java',
jbudorickb7043d82015-06-27 01:43:031369 'test/android/javatests/src/org/chromium/net/test/EmbeddedTestServer.java',
aberentec894a52015-07-09 14:45:531370 'test/android/javatests/src/org/chromium/net/test/DummySpnegoAuthenticator.java',
[email protected]03a07b2e2013-02-11 20:13:451371 ],
1372 'variables': {
jbudorickb7043d82015-06-27 01:43:031373 'jni_gen_package': 'net/test',
[email protected]03a07b2e2013-02-11 20:13:451374 },
[email protected]ad116b2e82012-04-20 03:24:071375 'includes': [ '../build/jni_generator.gypi' ],
1376 },
1377 {
1378 'target_name': 'net_java',
1379 'type': 'none',
1380 'variables': {
[email protected]ad116b2e82012-04-20 03:24:071381 'java_in_dir': '../net/android/java',
1382 },
1383 'dependencies': [
[email protected]bb6bd1f2012-09-10 15:52:471384 '../base/base.gyp:base',
[email protected]23073f92014-01-17 22:52:171385 'cert_verify_status_android_java',
[email protected]3b455502012-12-11 18:22:581386 'certificate_mime_types_java',
jkarlin0818d5252014-12-02 21:06:021387 'network_change_notifier_types_java',
pauljensenbe5bc3232015-10-05 20:39:271388 'network_change_notifier_android_types_java',
[email protected]71f4b272013-02-13 19:13:491389 'net_errors_java',
[email protected]03a07b2e2013-02-11 20:13:451390 'private_key_types_java',
[email protected]2816e1f2014-02-15 00:54:271391 'remote_android_keystore_aidl',
tbansal59a1ddc2015-09-14 17:35:011392 'traffic_stats_error_java',
[email protected]ad116b2e82012-04-20 03:24:071393 ],
1394 'includes': [ '../build/java.gypi' ],
1395 },
[email protected]d29ba6c2012-08-15 23:10:181396 {
[email protected]2816e1f2014-02-15 00:54:271397 # Processes the interface files for communication with an Android KeyStore
1398 # running in a separate process.
1399 'target_name': 'remote_android_keystore_aidl',
1400 'type': 'none',
1401 'variables': {
1402 'aidl_interface_file': '../net/android/java/src/org/chromium/net/IRemoteAndroidKeyStoreInterface.aidl',
1403 },
1404 'sources': [
1405 '../net/android/java/src/org/chromium/net/IRemoteAndroidKeyStore.aidl',
1406 '../net/android/java/src/org/chromium/net/IRemoteAndroidKeyStoreCallbacks.aidl',
1407 ],
1408 'includes': [ '../build/java_aidl.gypi' ],
1409 },
1410 {
[email protected]f36fb172012-11-07 19:40:411411 'target_name': 'net_java_test_support',
1412 'type': 'none',
1413 'variables': {
[email protected]f36fb172012-11-07 19:40:411414 'java_in_dir': '../net/test/android/javatests',
aurimas088bb6b2015-10-01 00:56:201415 # TODO(jbudorick): remove chromium_code: 0 line once crbug.com/488192 is fixed.
1416 'chromium_code': 0,
[email protected]f36fb172012-11-07 19:40:411417 },
xunjielid26defc02015-05-07 16:48:141418 'dependencies': [
jbudorick0d414de12015-08-20 02:23:341419 'net_java',
jbudorickb7043d82015-06-27 01:43:031420 'net_test_support',
xunjielid26defc02015-05-07 16:48:141421 'url_request_failed_job_java',
yfriedman05fc8302015-05-15 16:31:321422 '../base/base.gyp:base_java',
jbudorick0d414de12015-08-20 02:23:341423 '../third_party/android_tools/android_tools.gyp:legacy_http_javalib',
xunjielid26defc02015-05-07 16:48:141424 ],
[email protected]f36fb172012-11-07 19:40:411425 'includes': [ '../build/java.gypi' ],
1426 },
1427 {
xunjielid26defc02015-05-07 16:48:141428 'target_name': 'url_request_failed_job_java',
1429 'type': 'none',
1430 'variables': {
1431 'source_file': 'test/url_request/url_request_failed_job.h',
1432 },
1433 'includes': [ '../build/android/java_cpp_enum.gypi' ],
1434 },
1435 {
[email protected]d29ba6c2012-08-15 23:10:181436 'target_name': 'net_javatests',
1437 'type': 'none',
1438 'variables': {
[email protected]d29ba6c2012-08-15 23:10:181439 'java_in_dir': '../net/android/javatests',
1440 },
1441 'dependencies': [
[email protected]bb6bd1f2012-09-10 15:52:471442 '../base/base.gyp:base',
[email protected]d29ba6c2012-08-15 23:10:181443 '../base/base.gyp:base_java_test_support',
[email protected]bb6bd1f2012-09-10 15:52:471444 'net_java',
[email protected]d29ba6c2012-08-15 23:10:181445 ],
[email protected]d29ba6c2012-08-15 23:10:181446 'includes': [ '../build/java.gypi' ],
1447 },
[email protected]2fa30912012-09-10 19:22:501448 {
[email protected]2fa30912012-09-10 19:22:501449 'target_name': 'net_errors_java',
1450 'type': 'none',
[email protected]4d491712012-12-10 12:38:241451 'sources': [
[email protected]4d491712012-12-10 12:38:241452 'android/java/NetError.template',
[email protected]2fa30912012-09-10 19:22:501453 ],
[email protected]4d491712012-12-10 12:38:241454 'variables': {
[email protected]1b19c9a1e2013-03-02 16:39:081455 'package_name': 'org/chromium/net',
[email protected]2716d84e2013-01-19 04:05:481456 'template_deps': ['base/net_error_list.h'],
[email protected]4d491712012-12-10 12:38:241457 },
1458 'includes': [ '../build/android/java_cpp_template.gypi' ],
[email protected]3b455502012-12-11 18:22:581459 },
1460 {
1461 'target_name': 'certificate_mime_types_java',
1462 'type': 'none',
[email protected]3b455502012-12-11 18:22:581463 'variables': {
mkosibaf6ebbf6b2014-09-30 14:42:391464 'source_file': 'base/mime_util.h',
[email protected]3b455502012-12-11 18:22:581465 },
mkosibaf6ebbf6b2014-09-30 14:42:391466 'includes': [ '../build/android/java_cpp_enum.gypi' ],
[email protected]3b455502012-12-11 18:22:581467 },
[email protected]03a07b2e2013-02-11 20:13:451468 {
[email protected]23073f92014-01-17 22:52:171469 'target_name': 'cert_verify_status_android_java',
[email protected]71f4b272013-02-13 19:13:491470 'type': 'none',
[email protected]71f4b272013-02-13 19:13:491471 'variables': {
mkosibaf6ebbf6b2014-09-30 14:42:391472 'source_file': 'android/cert_verify_result_android.h',
[email protected]71f4b272013-02-13 19:13:491473 },
mkosibaf6ebbf6b2014-09-30 14:42:391474 'includes': [ '../build/android/java_cpp_enum.gypi' ],
[email protected]71f4b272013-02-13 19:13:491475 },
1476 {
jkarlin0818d5252014-12-02 21:06:021477 'target_name': 'network_change_notifier_types_java',
1478 'type': 'none',
1479 'variables': {
1480 'source_file': 'base/network_change_notifier.h',
1481 },
1482 'includes': [ '../build/android/java_cpp_enum.gypi' ],
1483 },
1484 {
pauljensenbe5bc3232015-10-05 20:39:271485 'target_name': 'network_change_notifier_android_types_java',
1486 'type': 'none',
1487 'variables': {
1488 'source_file': 'android/network_change_notifier_android.cc',
1489 },
1490 'includes': [ '../build/android/java_cpp_enum.gypi' ],
1491 },
1492 {
[email protected]03a07b2e2013-02-11 20:13:451493 'target_name': 'private_key_types_java',
1494 'type': 'none',
[email protected]03a07b2e2013-02-11 20:13:451495 'variables': {
mkosibaf6ebbf6b2014-09-30 14:42:391496 'source_file': 'android/keystore.h',
[email protected]03a07b2e2013-02-11 20:13:451497 },
mkosibaf6ebbf6b2014-09-30 14:42:391498 'includes': [ '../build/android/java_cpp_enum.gypi' ],
[email protected]03a07b2e2013-02-11 20:13:451499 },
[email protected]a44d1212012-05-25 20:17:491500 {
tbansal59a1ddc2015-09-14 17:35:011501 'target_name': 'traffic_stats_error_java',
1502 'type': 'none',
1503 'variables': {
1504 'source_file': 'android/traffic_stats.cc',
1505 },
1506 'includes': [ '../build/android/java_cpp_enum.gypi' ],
1507 },
1508 {
[email protected]a44d1212012-05-25 20:17:491509 'target_name': 'net_unittests_apk',
1510 'type': 'none',
1511 'dependencies': [
[email protected]a44d1212012-05-25 20:17:491512 'net_java',
[email protected]03a07b2e2013-02-11 20:13:451513 'net_javatests',
aberentec894a52015-07-09 14:45:531514 'net_java_test_support',
[email protected]a44d1212012-05-25 20:17:491515 'net_unittests',
1516 ],
baixo5431a0dd2014-11-13 17:00:321517 'conditions': [
1518 ['v8_use_external_startup_data==1', {
1519 'dependencies': [
1520 '../v8/tools/gyp/v8.gyp:v8_external_snapshot',
1521 ],
1522 'copies': [
1523 {
1524 'destination': '<(asset_location)',
1525 'files': [
1526 '<(PRODUCT_DIR)/natives_blob.bin',
1527 '<(PRODUCT_DIR)/snapshot_blob.bin',
1528 ],
1529 },
1530 ],
1531 }],
1532 ],
[email protected]a44d1212012-05-25 20:17:491533 'variables': {
1534 'test_suite_name': 'net_unittests',
mikecase56d80d72015-06-03 00:57:261535 'isolate_file': 'net_unittests.isolate',
aberentec894a52015-07-09 14:45:531536 'android_manifest_path': 'android/unittest_support/AndroidManifest.xml',
1537 'resource_dir': 'android/unittest_support/res',
baixo3a3c88a2014-10-28 11:52:211538 'conditions': [
1539 ['v8_use_external_startup_data==1', {
baixo5431a0dd2014-11-13 17:00:321540 'asset_location': '<(PRODUCT_DIR)/net_unittests_apk/assets',
baixo3a3c88a2014-10-28 11:52:211541 'additional_input_paths': [
baixo5431a0dd2014-11-13 17:00:321542 '<(PRODUCT_DIR)/net_unittests_apk/assets/natives_blob.bin',
1543 '<(PRODUCT_DIR)/net_unittests_apk/assets/snapshot_blob.bin',
1544 ],
baixo3a3c88a2014-10-28 11:52:211545 }],
1546 ],
[email protected]a44d1212012-05-25 20:17:491547 },
1548 'includes': [ '../build/apk_test.gypi' ],
1549 },
aberentec894a52015-07-09 14:45:531550 {
1551 'target_name': 'net_junit_tests',
1552 'type': 'none',
1553 'dependencies': [
1554 'net_java',
1555 '../base/base.gyp:base',
1556 '../base/base.gyp:base_java_test_support',
jbudorickf091dcb2015-08-25 21:36:591557 '../base/base.gyp:base_junit_test_support',
aberentec894a52015-07-09 14:45:531558 '../testing/android/junit/junit_test.gyp:junit_test_support',
1559 ],
1560 'variables': {
1561 'main_class': 'org.chromium.testing.local.JunitTestMain',
1562 'src_paths': [
1563 'android/junit/',
1564 ],
1565 },
1566 'includes': [
1567 '../build/host_jar.gypi',
1568 ],
1569 },
stipbf7e1482015-10-12 22:31:001570 ],
1571 'conditions': [
1572 ['test_isolation_mode != "noop"',
1573 {
1574 'targets': [
1575 {
1576 'target_name': 'net_unittests_apk_run',
1577 'type': 'none',
1578 'dependencies': [
1579 'net_unittests_apk',
1580 ],
1581 'includes': [
1582 '../build/isolate.gypi',
1583 ],
1584 'sources': [
1585 'net_unittests_apk.isolate',
1586 ],
1587 },
1588 ]
1589 }
1590 ],
[email protected]a44d1212012-05-25 20:17:491591 ],
1592 }],
[email protected]28af1232013-08-26 18:49:291593 ['OS == "android" or OS == "linux"', {
1594 'targets': [
1595 {
1596 'target_name': 'disk_cache_memory_test',
1597 'type': 'executable',
1598 'dependencies': [
1599 '../base/base.gyp:base',
1600 'net',
1601 ],
1602 'sources': [
1603 'tools/disk_cache_memory_test/disk_cache_memory_test.cc',
1604 ],
1605 },
1606 ],
1607 }],
[email protected]d34eb412012-07-28 00:03:411608 ['test_isolation_mode != "noop"', {
1609 'targets': [
1610 {
1611 'target_name': 'net_unittests_run',
1612 'type': 'none',
1613 'dependencies': [
1614 'net_unittests',
1615 ],
1616 'includes': [
[email protected]cc902cb2013-07-12 00:54:491617 '../build/isolate.gypi',
[email protected]d34eb412012-07-28 00:03:411618 ],
[email protected]cc902cb2013-07-12 00:54:491619 'sources': [
1620 'net_unittests.isolate',
[email protected]d34eb412012-07-28 00:03:411621 ],
1622 },
1623 ],
1624 }],
[email protected]2f80c312009-02-25 21:26:551625 ],
1626}