blob: 9de7481109b0015a904e8170846b97212d53779d [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]9c210d92011-08-15 17:34:018
[email protected]6acbd8dd2011-08-24 21:19:209 'linux_link_kerberos%': 0,
10 'conditions': [
[email protected]3ce28862013-11-18 00:27:4911 ['chromeos==1 or embedded==1 or OS=="android" or OS=="ios"', {
[email protected]10246a02012-07-30 15:15:0112 # Disable Kerberos on ChromeOS, Android and iOS, at least for now.
[email protected]6acbd8dd2011-08-24 21:19:2013 # It needs configuration (krb5.conf and so on).
14 'use_kerberos%': 0,
[email protected]3ce28862013-11-18 00:27:4915 }, { # chromeos == 0 and embedded==0 and OS!="android" and OS!="ios"
[email protected]6acbd8dd2011-08-24 21:19:2016 'use_kerberos%': 1,
17 }],
[email protected]7b265e8d2013-02-20 20:35:4518 ['OS=="android" and target_arch != "ia32"', {
[email protected]9e079cb2012-06-26 13:38:0219 # The way the cache uses mmap() is inefficient on some Android devices.
20 # If this flag is set, we hackily avoid using mmap() in the disk cache.
[email protected]7b265e8d2013-02-20 20:35:4521 # We are pretty confident that mmap-ing the index would not hurt any
22 # existing x86 android devices, but we cannot be so sure about the
23 # variety of ARM devices. So enable it for x86 only for now.
[email protected]9e079cb2012-06-26 13:38:0224 'posix_avoid_mmap%': 1,
25 }, {
26 'posix_avoid_mmap%': 0,
27 }],
[email protected]fe380ae2012-08-30 10:05:5128 ['OS=="ios"', {
29 # Websockets and socket stream are not used on iOS.
30 'enable_websockets%': 0,
[email protected]ba7866b82012-09-07 14:22:2731 # iOS does not use V8.
32 'use_v8_in_net%': 0,
[email protected]33c814862012-09-18 15:16:0333 'enable_built_in_dns%': 0,
[email protected]fe380ae2012-08-30 10:05:5134 }, {
35 'enable_websockets%': 1,
[email protected]ba7866b82012-09-07 14:22:2736 'use_v8_in_net%': 1,
[email protected]33c814862012-09-18 15:16:0337 'enable_built_in_dns%': 1,
[email protected]fe380ae2012-08-30 10:05:5138 }],
[email protected]6acbd8dd2011-08-24 21:19:2039 ],
[email protected]2f80c312009-02-25 21:26:5540 },
[email protected]99ff9932011-09-07 14:14:5441 'includes': [
42 '../build/win_precompile.gypi',
[email protected]18f840652014-04-10 20:31:3743 'net.gypi',
[email protected]99ff9932011-09-07 14:14:5444 ],
[email protected]2f80c312009-02-25 21:26:5545 'targets': [
46 {
[email protected]d7f04492014-05-13 07:01:3447 'target_name': 'net_derived_sources',
48 'type': 'none',
49 'sources': [
50 'base/registry_controlled_domains/effective_tld_names.gperf',
51 'base/registry_controlled_domains/effective_tld_names_unittest1.gperf',
52 'base/registry_controlled_domains/effective_tld_names_unittest2.gperf',
53 'base/registry_controlled_domains/effective_tld_names_unittest3.gperf',
54 'base/registry_controlled_domains/effective_tld_names_unittest4.gperf',
55 'base/registry_controlled_domains/effective_tld_names_unittest5.gperf',
56 'base/registry_controlled_domains/effective_tld_names_unittest6.gperf',
57 ],
58 'rules': [
59 {
60 'rule_name': 'dafsa',
61 'extension': 'gperf',
62 'outputs': [
63 '<(SHARED_INTERMEDIATE_DIR)/net/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT)-inc.cc',
64 ],
65 'inputs': [
66 'tools/tld_cleanup/make_dafsa.py',
67 ],
68 'action': [
69 'python',
70 'tools/tld_cleanup/make_dafsa.py',
71 '<(RULE_INPUT_PATH)',
72 '<(SHARED_INTERMEDIATE_DIR)/net/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT)-inc.cc',
73 ],
74 },
75 ],
76 'direct_dependent_settings': {
77 'include_dirs': [
78 '<(SHARED_INTERMEDIATE_DIR)'
79 ],
80 },
81 },
82 {
[email protected]8858a11f42011-05-04 17:55:5383 'target_name': 'net',
[email protected]2f80c312009-02-25 21:26:5584 'dependencies': [
[email protected]d34d79f2009-10-14 22:06:1485 '../base/base.gyp:base_i18n',
[email protected]280629492009-09-09 06:49:0886 '../third_party/icu/icu.gyp:icui18n',
87 '../third_party/icu/icu.gyp:icuuc',
[email protected]002cc08f2013-06-03 05:40:2988 '../url/url.gyp:url_lib',
[email protected]2f80c312009-02-25 21:26:5589 ],
90 'sources': [
mefdc8e94b2015-03-11 19:49:0591 'base/filename_util_icu.cc',
92 'base/net_string_util_icu.cc',
93 'base/net_util_icu.cc',
[email protected]2f80c312009-02-25 21:26:5594 ],
mefdc8e94b2015-03-11 19:49:0595 'includes': [ 'net_common.gypi' ],
[email protected]2f80c312009-02-25 21:26:5596 },
97 {
98 'target_name': 'net_unittests',
[email protected]a44d1212012-05-25 20:17:4999 'type': '<(gtest_target_type)',
[email protected]2f80c312009-02-25 21:26:55100 'dependencies': [
[email protected]2f80c312009-02-25 21:26:55101 '../base/base.gyp:base',
[email protected]d34d79f2009-10-14 22:06:14102 '../base/base.gyp:base_i18n',
[email protected]ad66db12014-07-10 12:43:47103 '../base/base.gyp:base_prefs_test_support',
[email protected]67875f512011-05-21 00:18:30104 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]828a7a812012-09-05 10:12:35105 '../crypto/crypto.gyp:crypto',
[email protected]190933f2014-07-28 09:56:51106 '../crypto/crypto.gyp:crypto_test_support',
[email protected]06489a012009-12-10 08:12:54107 '../testing/gmock.gyp:gmock',
[email protected]2f80c312009-02-25 21:26:55108 '../testing/gtest.gyp:gtest',
[email protected]e86aaca2009-08-12 17:58:57109 '../third_party/zlib/zlib.gyp:zlib',
[email protected]002cc08f2013-06-03 05:40:29110 '../url/url.gyp:url_lib',
[email protected]8f6594202014-06-11 14:44:25111 'balsa',
[email protected]c700fd152013-07-23 21:29:11112 'http_server',
[email protected]eb6d2392012-08-02 11:28:23113 'net',
[email protected]d7f04492014-05-13 07:01:34114 'net_derived_sources',
mef327a8e42014-08-29 17:10:03115 'net_extras',
[email protected]d7f04492014-05-13 07:01:34116 'net_test_support',
rcha6d42cd2015-03-22 05:13:58117 'simple_quic_tools',
[email protected]2f80c312009-02-25 21:26:55118 ],
119 'sources': [
[email protected]7f8afda2014-04-12 05:18:55120 '<@(net_test_sources)',
[email protected]2f80c312009-02-25 21:26:55121 ],
122 'conditions': [
[email protected]453cdac12013-07-23 14:53:58123 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
124 'dependencies': [
rch216445c2015-03-27 00:23:28125 'epoll_quic_tools',
[email protected]6c7e6522013-09-29 15:27:44126 'epoll_server',
127 'flip_in_mem_edsm_server_base',
[email protected]453cdac12013-07-23 14:53:58128 ],
129 'sources': [
[email protected]7f8afda2014-04-12 05:18:55130 '<@(net_linux_test_sources)',
[email protected]453cdac12013-07-23 14:53:58131 ],
132 }],
erikchen006a7cf2014-12-03 22:27:11133 ['OS == "mac" or OS == "ios"', {
134 'sources': [
135 '<@(net_base_test_mac_ios_sources)',
136 ],
137 }],
[email protected]f50278cd2010-08-24 17:34:08138 ['chromeos==1', {
139 'sources!': [
[email protected]fcd1e762012-07-11 14:43:50140 'proxy/proxy_config_service_linux_unittest.cc',
[email protected]f50278cd2010-08-24 17:34:08141 ],
142 }],
[email protected]2e530582012-10-20 00:28:35143 [ 'OS == "android"', {
144 'sources!': [
[email protected]8fddf1d2014-03-27 18:08:06145 # See bug http://crbug.com/344533.
146 'disk_cache/blockfile/index_table_v3_unittest.cc',
[email protected]2e530582012-10-20 00:28:35147 # No res_ninit() et al on Android, so this doesn't make a lot of
148 # sense.
149 'dns/dns_config_service_posix_unittest.cc',
150 ],
[email protected]03a07b2e2013-02-11 20:13:45151 'dependencies': [
152 'net_javatests',
153 'net_test_jni_headers',
154 ],
[email protected]2e530582012-10-20 00:28:35155 }],
[email protected]5482ef9e2013-12-11 04:27:43156 [ 'use_nss != 1', {
157 'sources!': [
[email protected]bd952f3a2014-04-10 05:10:58158 'ssl/client_cert_store_chromeos_unittest.cc',
satoruxdd0840d32015-02-12 19:10:26159 'ssl/client_cert_store_nss_unittest.cc',
[email protected]5482ef9e2013-12-11 04:27:43160 ],
161 }],
[email protected]1279de12013-12-03 15:13:32162 [ 'use_openssl == 1', {
163 # Avoid compiling/linking with the system library.
164 'dependencies': [
[email protected]edfd0f42014-07-22 18:20:37165 '../third_party/boringssl/boringssl.gyp:boringssl',
[email protected]1279de12013-12-03 15:13:32166 ],
167 }, { # use_openssl == 0
168 'conditions': [
169 [ 'desktop_linux == 1 or chromeos == 1', {
170 'dependencies': [
171 '../build/linux/system.gyp:ssl',
172 ],
173 }, { # desktop_linux == 0 and chromeos == 0
davidben15d69d482014-09-29 18:24:08174 'dependencies': [
175 '../third_party/nss/nss.gyp:nspr',
176 '../third_party/nss/nss.gyp:nss',
177 'third_party/nss/ssl.gyp:libssl',
178 ],
[email protected]1279de12013-12-03 15:13:32179 'sources!': [
180 'cert/nss_cert_database_unittest.cc',
181 ],
182 }],
183 ],
184 }],
[email protected]10246a02012-07-30 15:15:01185 [ 'os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', {
[email protected]d9df2b52009-12-10 12:06:15186 'conditions': [
[email protected]2fa89ef2014-05-07 18:45:59187 ['use_allocator!="none"', {
[email protected]d9df2b52009-12-10 12:06:15188 'dependencies': [
189 '../base/allocator/allocator.gyp:allocator',
190 ],
191 }],
192 ],
193 }],
[email protected]9c210d92011-08-15 17:34:01194 [ 'use_kerberos==1', {
195 'defines': [
196 'USE_KERBEROS',
197 ],
198 }, { # use_kerberos == 0
199 'sources!': [
200 'http/http_auth_gssapi_posix_unittest.cc',
201 'http/http_auth_handler_negotiate_unittest.cc',
202 'http/mock_gssapi_library_posix.cc',
203 'http/mock_gssapi_library_posix.h',
204 ],
205 }],
[email protected]b098e1d82013-11-08 06:24:58206 [ 'use_openssl == 1 or (desktop_linux == 0 and chromeos == 0 and OS != "ios")', {
[email protected]b3270fe2013-05-24 06:34:55207 # Only include this test when on Posix and using NSS for
208 # cert verification or on iOS (which also uses NSS for certs).
209 'sources!': [
210 'ocsp/nss_ocsp_unittest.cc',
211 ],
212 }],
[email protected]70372d42010-10-22 13:12:34213 [ 'use_openssl==1', {
[email protected]f5c82e82013-11-19 04:23:10214 # When building for OpenSSL, we need to exclude NSS specific tests
215 # or functionality not supported by OpenSSL yet.
[email protected]70372d42010-10-22 13:12:34216 # TODO(bulach): Add equivalent tests when the underlying
217 # functionality is ported to OpenSSL.
[email protected]b1c2a5542010-10-08 12:44:40218 'sources!': [
[email protected]bd952f3a2014-04-10 05:10:58219 'cert/nss_cert_database_chromeos_unittest.cc',
satoruxdd0840d32015-02-12 19:10:26220 'cert/nss_cert_database_unittest.cc',
[email protected]bd952f3a2014-04-10 05:10:58221 'cert/nss_profile_filter_chromeos_unittest.cc',
[email protected]6e7845ae2013-03-29 21:48:11222 'cert/x509_util_nss_unittest.cc',
[email protected]b064310782013-05-30 21:12:17223 'quic/test_tools/crypto_test_utils_nss.cc',
[email protected]b1c2a5542010-10-08 12:44:40224 ],
davidben15d69d482014-09-29 18:24:08225 }, { # else !use_openssl: remove the unneeded files and pull in NSS.
[email protected]3c5f6db2011-10-18 01:47:04226 'sources!': [
[email protected]6e7845ae2013-03-29 21:48:11227 'cert/x509_util_openssl_unittest.cc',
[email protected]b064310782013-05-30 21:12:17228 'quic/test_tools/crypto_test_utils_openssl.cc',
[email protected]ede323ea2013-03-02 22:54:41229 'socket/ssl_client_socket_openssl_unittest.cc',
[email protected]1279de12013-12-03 15:13:32230 'socket/ssl_session_cache_openssl_unittest.cc',
[email protected]3c5f6db2011-10-18 01:47:04231 ],
[email protected]b1c2a5542010-10-08 12:44:40232 },
233 ],
[email protected]e1b2d732014-03-28 16:20:32234 [ 'use_openssl_certs == 0', {
235 'sources!': [
236 'ssl/openssl_client_key_store_unittest.cc',
237 ],
238 }],
[email protected]fe380ae2012-08-30 10:05:51239 [ 'enable_websockets != 1', {
240 'sources/': [
[email protected]fe380ae2012-08-30 10:05:51241 ['exclude', '^websockets/'],
dgozmana6e70092014-12-12 14:46:21242 ['exclude', '^server/'],
243 ],
244 'dependencies!': [
245 'http_server',
[email protected]fe380ae2012-08-30 10:05:51246 ],
247 }],
[email protected]02494ec2014-05-07 15:05:29248 ['disable_file_support==1', {
249 'sources!': [
250 'base/directory_lister_unittest.cc',
251 'url_request/url_request_file_job_unittest.cc',
252 ],
253 }],
[email protected]9bfe0ab2012-08-30 13:18:11254 [ 'disable_ftp_support==1', {
255 'sources/': [
256 ['exclude', '^ftp/'],
257 ],
258 'sources!': [
259 'url_request/url_request_ftp_job_unittest.cc',
260 ],
261 },
262 ],
[email protected]33c814862012-09-18 15:16:03263 [ 'enable_built_in_dns!=1', {
264 'sources!': [
265 'dns/address_sorter_posix_unittest.cc',
266 'dns/address_sorter_unittest.cc',
267 ],
268 },
269 ],
[email protected]5ecf7cb282014-05-11 01:49:55270 # Always need use_v8_in_net to be 1 to run gyp on Android, so just
271 # remove net_unittest's dependency on v8 when using icu alternatives
272 # instead of setting use_v8_in_net to 0.
273 [ 'use_v8_in_net==1 and use_icu_alternatives_on_android==0', {
[email protected]ba7866b82012-09-07 14:22:27274 'dependencies': [
275 'net_with_v8',
276 ],
277 }, { # else: !use_v8_in_net
278 'sources!': [
[email protected]501e2d42013-01-30 22:30:49279 'proxy/proxy_resolver_v8_tracing_unittest.cc',
satoruxdd0840d32015-02-12 19:10:26280 'proxy/proxy_resolver_v8_unittest.cc',
[email protected]ba7866b82012-09-07 14:22:27281 ],
282 },
283 ],
[email protected]4e09d242013-05-02 03:19:35284
amistry7e6ebfdc82015-02-13 04:19:11285 [ 'use_v8_in_net==1 and OS != "android"', {
286 'dependencies': [
287 'net_with_v8',
288 'net_browser_services',
sammc5403aa1d2015-02-25 04:59:21289 'net_utility_services',
amistry7e6ebfdc82015-02-13 04:19:11290 '../third_party/mojo/mojo_edk.gyp:mojo_system_impl',
291 ],
292 }, { # else
293 'sources!': [
sammc6ac3fe52015-02-25 06:00:28294 'dns/host_resolver_mojo_unittest.cc',
amistry7e6ebfdc82015-02-13 04:19:11295 'dns/mojo_host_resolver_impl_unittest.cc',
sammcc804b532015-03-12 10:02:34296 'proxy/load_state_change_coalescer_unittest.cc',
sammc352f7492015-02-25 09:45:24297 'proxy/mojo_proxy_resolver_factory_impl_unittest.cc',
sammc5403aa1d2015-02-25 04:59:21298 'proxy/mojo_proxy_resolver_impl_unittest.cc',
amistry07ff1402015-03-10 07:34:07299 'proxy/proxy_resolver_mojo_unittest.cc',
amistry6e1ed1b2015-03-12 05:24:01300 'proxy/proxy_service_mojo_unittest.cc',
amistry7e6ebfdc82015-02-13 04:19:11301 ],
302 },
303 ],
304
[email protected]4e09d242013-05-02 03:19:35305 [ 'enable_mdns != 1', {
306 'sources!' : [
[email protected]f6a9add2013-05-23 00:56:36307 'dns/mdns_cache_unittest.cc',
[email protected]245b164e2013-06-13 22:31:42308 'dns/mdns_client_unittest.cc',
309 'dns/mdns_query_unittest.cc',
[email protected]4e09d242013-05-02 03:19:35310 'dns/record_parsed_unittest.cc',
311 'dns/record_rdata_unittest.cc',
312 ],
313 }],
[email protected]2f80c312009-02-25 21:26:55314 [ 'OS == "win"', {
[email protected]83727172010-06-04 17:58:08315 'sources!': [
[email protected]d84316a2011-08-18 04:41:21316 'dns/dns_config_service_posix_unittest.cc',
[email protected]83727172010-06-04 17:58:08317 'http/http_auth_gssapi_posix_unittest.cc',
318 ],
davidben1b53bf6ea2014-11-05 22:38:41319 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
320 'msvs_disabled_warnings': [4267, ],
[email protected]27be5062014-01-24 01:00:41321 'conditions': [
322 [ 'icu_use_data_file_flag == 0', {
323 # This is needed to trigger the dll copy step on windows.
324 # TODO(mark): Specifying this here shouldn't be necessary.
325 'dependencies': [
326 '../third_party/icu/icu.gyp:icudata',
327 ],
328 }],
329 ],
[email protected]2f80c312009-02-25 21:26:55330 },
331 ],
[email protected]d4158952012-09-18 09:04:33332 [ 'OS == "ios"', {
[email protected]a414acf92012-10-02 11:25:57333 'actions': [
334 {
335 'action_name': 'copy_test_data',
336 'variables': {
337 'test_data_files': [
338 'data/ssl/certificates/',
[email protected]938347e2013-05-20 16:45:38339 'data/test.html',
[email protected]a414acf92012-10-02 11:25:57340 'data/url_request_unittest/',
341 ],
342 'test_data_prefix': 'net',
343 },
344 'includes': [ '../build/copy_test_data_ios.gypi' ],
345 },
346 ],
347 'sources!': [
348 # TODO(droger): The following tests are disabled because the
349 # implementation is missing or incomplete.
350 # KeygenHandler::GenKeyAndSignChallenge() is not ported to iOS.
351 'base/keygen_handler_unittest.cc',
[email protected]a414acf92012-10-02 11:25:57352 'disk_cache/backend_unittest.cc',
[email protected]80422f322014-03-03 20:28:14353 'disk_cache/blockfile/block_files_unittest.cc',
[email protected]ed60cb32014-02-04 00:57:28354 # Need to read input data files.
355 'filter/gzip_filter_unittest.cc',
[email protected]a414acf92012-10-02 11:25:57356 # Need TestServer.
357 'proxy/proxy_script_fetcher_impl_unittest.cc',
358 'socket/ssl_client_socket_unittest.cc',
satoruxeef164ef2015-02-16 01:39:34359 'socket/ssl_server_socket_unittest.cc',
360 'spdy/fuzzing/hpack_fuzz_util_test.cc',
[email protected]a414acf92012-10-02 11:25:57361 # Needs GetAppOutput().
362 'test/python_utils_unittest.cc',
satoruxeef164ef2015-02-16 01:39:34363 'url_request/url_fetcher_impl_unittest.cc',
364 'url_request/url_request_context_builder_unittest.cc',
[email protected]a414acf92012-10-02 11:25:57365
366 # The following tests are disabled because they don't apply to
367 # iOS.
368 # OS is not "linux" or "freebsd" or "openbsd".
[email protected]518c63a2014-07-24 03:51:23369 'socket/unix_domain_client_socket_posix_unittest.cc',
370 'socket/unix_domain_listen_socket_posix_unittest.cc',
371 'socket/unix_domain_server_socket_posix_unittest.cc',
[email protected]df53da82014-02-18 22:27:17372
[email protected]8fddf1d2014-03-27 18:08:06373 # See bug http://crbug.com/344533.
374 'disk_cache/blockfile/index_table_v3_unittest.cc',
[email protected]d4158952012-09-18 09:04:33375 ],
[email protected]eb6d2392012-08-02 11:28:23376 }],
[email protected]ae7c9f42011-11-21 11:41:16377 [ 'OS == "android"', {
[email protected]ae7c9f42011-11-21 11:41:16378 'sources!': [
379 'dns/dns_config_service_posix_unittest.cc',
380 ],
381 },
382 ],
[email protected]87a80852014-05-17 16:09:58383 ['OS == "android"', {
[email protected]5ecf7cb282014-05-11 01:49:55384 # TODO(mmenke): This depends on test_support_base, which depends on
385 # icu. Figure out a way to remove that dependency.
[email protected]a44d1212012-05-25 20:17:49386 'dependencies': [
387 '../testing/android/native_test.gyp:native_test_native_code',
[email protected]b397b062012-06-26 19:33:28388 ]
[email protected]a44d1212012-05-25 20:17:49389 }],
[email protected]5ecf7cb282014-05-11 01:49:55390 [ 'use_icu_alternatives_on_android == 1', {
391 'dependencies!': [
392 '../base/base.gyp:base_i18n',
393 ],
394 'sources!': [
395 'base/filename_util_unittest.cc',
396 'base/net_util_icu_unittest.cc',
397 ],
398 },
399 ],
baixo3a3c88a2014-10-28 11:52:21400 ['v8_use_external_startup_data==1', {
401 'dependencies': [
402 '../gin/gin.gyp:gin',
403 ]
404 }],
[email protected]2f80c312009-02-25 21:26:55405 ],
[email protected]b1874a8782014-02-10 21:36:25406 'target_conditions': [
407 # These source files are excluded by default platform rules, but they
408 # are needed in specific cases on other platforms. Re-including them can
409 # only be done in target_conditions as it is evaluated after the
410 # platform rules.
411 ['OS == "android"', {
412 'sources/': [
413 ['include', '^base/address_tracker_linux_unittest\\.cc$'],
414 ],
415 }],
drogerf83b91262015-03-05 19:45:19416 ['OS == "ios"', {
417 'sources/': [
418 ['include', '^base/mac/url_conversions_unittest\\.mm$'],
419 ],
420 }],
[email protected]b1874a8782014-02-10 21:36:25421 ],
[email protected]2f80c312009-02-25 21:26:55422 },
423 {
424 'target_name': 'net_perftests',
425 'type': 'executable',
426 'dependencies': [
[email protected]2f80c312009-02-25 21:26:55427 '../base/base.gyp:base',
[email protected]d34d79f2009-10-14 22:06:14428 '../base/base.gyp:base_i18n',
[email protected]7d1ba9392009-08-03 18:35:06429 '../base/base.gyp:test_support_perf',
[email protected]2f80c312009-02-25 21:26:55430 '../testing/gtest.gyp:gtest',
[email protected]002cc08f2013-06-03 05:40:29431 '../url/url.gyp:url_lib',
[email protected]eb6d2392012-08-02 11:28:23432 'net',
433 'net_test_support',
[email protected]2f80c312009-02-25 21:26:55434 ],
435 'sources': [
[email protected]63ee33bd2012-03-15 09:29:58436 'cookies/cookie_monster_perftest.cc',
[email protected]c2c5cfc2014-03-03 16:35:28437 'disk_cache/blockfile/disk_cache_perftest.cc',
[email protected]448cfef82009-03-06 01:44:33438 'proxy/proxy_resolver_perftest.cc',
hclam5a5ee682015-02-05 04:18:22439 'udp/udp_socket_perftest.cc',
riceab2ab0062014-09-01 09:59:59440 'websockets/websocket_frame_perftest.cc',
[email protected]2f80c312009-02-25 21:26:55441 ],
442 'conditions': [
[email protected]ba7866b82012-09-07 14:22:27443 [ 'use_v8_in_net==1', {
444 'dependencies': [
445 'net_with_v8',
446 ],
447 }, { # else: !use_v8_in_net
448 'sources!': [
449 'proxy/proxy_resolver_perftest.cc',
450 ],
451 },
452 ],
[email protected]2f80c312009-02-25 21:26:55453 [ 'OS == "win"', {
[email protected]27be5062014-01-24 01:00:41454 'conditions': [
455 [ 'icu_use_data_file_flag == 0', {
456 # This is needed to trigger the dll copy step on windows.
457 # TODO(mark): Specifying this here shouldn't be necessary.
458 'dependencies': [
459 '../third_party/icu/icu.gyp:icudata',
460 ],
461 }],
[email protected]2f80c312009-02-25 21:26:55462 ],
[email protected]9dcec242013-01-10 23:24:28463 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
464 'msvs_disabled_warnings': [4267, ],
[email protected]27be5062014-01-24 01:00:41465 }],
riceab2ab0062014-09-01 09:59:59466 [ 'enable_websockets != 1', {
467 'sources!': [
468 'websockets/websocket_frame_perftest.cc',
469 ],
470 }],
[email protected]f9ff629f2010-09-03 23:54:36471 ],
472 },
473 {
[email protected]6718b412009-03-04 18:26:00474 'target_name': 'net_test_support',
[email protected]5a547332011-05-19 23:18:53475 'type': 'static_library',
[email protected]6718b412009-03-04 18:26:00476 'dependencies': [
[email protected]6718b412009-03-04 18:26:00477 '../base/base.gyp:base',
[email protected]5f38d712010-10-26 06:46:59478 '../base/base.gyp:test_support_base',
Nico Weberab3090302015-01-19 06:14:43479 '../crypto/crypto.gyp:crypto',
[email protected]ed32c212013-05-14 20:49:29480 '../net/tools/tld_cleanup/tld_cleanup.gyp:tld_cleanup_util',
[email protected]ff007e162009-05-23 09:13:15481 '../testing/gtest.gyp:gtest',
[email protected]f22f316b2013-06-21 05:26:18482 '../testing/gmock.gyp:gmock',
[email protected]002cc08f2013-06-03 05:40:29483 '../url/url.gyp:url_lib',
[email protected]eb6d2392012-08-02 11:28:23484 'net',
[email protected]6718b412009-03-04 18:26:00485 ],
[email protected]44738602012-03-02 22:56:01486 'export_dependent_settings': [
487 '../base/base.gyp:base',
[email protected]5ecf7cb282014-05-11 01:49:55488 # TODO(mmenke): This depends on icu, figure out a way to build tests
489 # without icu.
[email protected]44738602012-03-02 22:56:01490 '../base/base.gyp:test_support_base',
491 '../testing/gtest.gyp:gtest',
[email protected]f22f316b2013-06-21 05:26:18492 '../testing/gmock.gyp:gmock',
[email protected]44738602012-03-02 22:56:01493 ],
[email protected]6718b412009-03-04 18:26:00494 'sources': [
mmenke9e4ea8fe2014-11-19 23:12:30495 'base/captured_net_log_entry.cc',
496 'base/captured_net_log_entry.h',
[email protected]34e375de2012-06-08 19:58:45497 'base/capturing_net_log.cc',
498 'base/capturing_net_log.h',
mmenke9e4ea8fe2014-11-19 23:12:30499 'base/capturing_net_log_observer.cc',
500 'base/capturing_net_log_observer.h',
[email protected]b258e0792013-01-12 07:11:59501 'base/load_timing_info_test_util.cc',
502 'base/load_timing_info_test_util.h',
[email protected]47a881b2011-08-29 22:59:21503 'base/mock_file_stream.cc',
504 'base/mock_file_stream.h',
[email protected]ad74a592011-01-21 18:40:55505 'base/test_completion_callback.cc',
506 'base/test_completion_callback.h',
[email protected]42fdb452012-11-01 12:44:40507 'base/test_data_directory.cc',
508 'base/test_data_directory.h',
[email protected]6e7845ae2013-03-29 21:48:11509 'cert/mock_cert_verifier.cc',
510 'cert/mock_cert_verifier.h',
[email protected]63ee33bd2012-03-15 09:29:58511 'cookies/cookie_monster_store_test.cc',
512 'cookies/cookie_monster_store_test.h',
513 'cookies/cookie_store_test_callbacks.cc',
514 'cookies/cookie_store_test_callbacks.h',
515 'cookies/cookie_store_test_helpers.cc',
516 'cookies/cookie_store_test_helpers.h',
[email protected]79b3fec2011-11-15 22:33:47517 'disk_cache/disk_cache_test_base.cc',
518 'disk_cache/disk_cache_test_base.h',
[email protected]2f80c312009-02-25 21:26:55519 'disk_cache/disk_cache_test_util.cc',
[email protected]6718b412009-03-04 18:26:00520 'disk_cache/disk_cache_test_util.h',
[email protected]78eac2a2012-03-14 19:09:27521 'dns/dns_test_util.cc',
[email protected]4b0112ab2011-07-22 15:58:20522 'dns/dns_test_util.h',
[email protected]f2cb3cf2013-03-21 01:40:53523 'dns/mock_host_resolver.cc',
524 'dns/mock_host_resolver.h',
[email protected]f22f316b2013-06-21 05:26:18525 'dns/mock_mdns_socket_factory.cc',
526 'dns/mock_mdns_socket_factory.h',
[email protected]c41737d2014-05-14 07:47:19527 'http/http_transaction_test_util.cc',
528 'http/http_transaction_test_util.h',
[email protected]b6ce91b2011-02-10 21:30:50529 'proxy/mock_proxy_resolver.cc',
530 'proxy/mock_proxy_resolver.h',
[email protected]7258def2011-05-17 19:53:00531 'proxy/mock_proxy_script_fetcher.cc',
532 'proxy/mock_proxy_script_fetcher.h',
[email protected]ab501a6a2009-05-12 15:07:50533 'proxy/proxy_config_service_common_unittest.cc',
534 'proxy/proxy_config_service_common_unittest.h',
[email protected]f7984fc62009-06-22 23:26:44535 'socket/socket_test_util.cc',
536 'socket/socket_test_util.h',
[email protected]6e7845ae2013-03-29 21:48:11537 'test/cert_test_util.cc',
538 'test/cert_test_util.h',
[email protected]83e1ae32014-07-18 10:57:07539 'test/cert_test_util_nss.cc',
[email protected]95ac16b2013-11-01 01:42:03540 'test/ct_test_util.cc',
541 'test/ct_test_util.h',
[email protected]eb7388f2013-05-09 17:00:26542 'test/embedded_test_server/embedded_test_server.cc',
543 'test/embedded_test_server/embedded_test_server.h',
[email protected]b6e5b6c62013-05-07 17:50:26544 'test/embedded_test_server/http_connection.cc',
545 'test/embedded_test_server/http_connection.h',
546 'test/embedded_test_server/http_request.cc',
547 'test/embedded_test_server/http_request.h',
548 'test/embedded_test_server/http_response.cc',
549 'test/embedded_test_server/http_response.h',
sammc6ac3fe52015-02-25 06:00:28550 'test/event_waiter.h',
[email protected]8efa4ba42013-03-18 21:14:14551 'test/net_test_suite.cc',
552 'test/net_test_suite.h',
[email protected]9af13ce2010-09-16 21:45:48553 'test/python_utils.cc',
[email protected]a44d1212012-05-25 20:17:49554 'test/python_utils.h',
[email protected]89b32522013-05-07 20:04:21555 'test/spawned_test_server/base_test_server.cc',
556 'test/spawned_test_server/base_test_server.h',
[email protected]89b32522013-05-07 20:04:21557 'test/spawned_test_server/local_test_server.cc',
558 'test/spawned_test_server/local_test_server.h',
satoruxdd0840d32015-02-12 19:10:26559 'test/spawned_test_server/local_test_server_posix.cc',
560 'test/spawned_test_server/local_test_server_win.cc',
[email protected]89b32522013-05-07 20:04:21561 'test/spawned_test_server/remote_test_server.cc',
562 'test/spawned_test_server/remote_test_server.h',
563 'test/spawned_test_server/spawned_test_server.h',
564 'test/spawned_test_server/spawner_communicator.cc',
565 'test/spawned_test_server/spawner_communicator.h',
xunjieli2906f152014-09-12 00:08:23566 'test/url_request/url_request_failed_job.cc',
567 'test/url_request/url_request_failed_job.h',
mef3e826cf2014-12-13 18:40:40568 'test/url_request/url_request_mock_data_job.cc',
569 'test/url_request/url_request_mock_data_job.h',
xunjieli0332c192014-09-10 23:23:31570 'test/url_request/url_request_mock_http_job.cc',
571 'test/url_request/url_request_mock_http_job.h',
jam8e45cd72015-01-20 16:33:44572 'test/url_request/url_request_slow_download_job.cc',
573 'test/url_request/url_request_slow_download_job.h',
[email protected]8f2d8bdd2012-06-19 23:44:05574 'url_request/test_url_fetcher_factory.cc',
575 'url_request/test_url_fetcher_factory.h',
tommyclieaae5d92014-09-09 06:03:47576 'url_request/test_url_request_interceptor.cc',
577 'url_request/test_url_request_interceptor.h',
[email protected]d2db0292011-01-26 20:23:44578 'url_request/url_request_test_util.cc',
579 'url_request/url_request_test_util.h',
[email protected]702a6a722010-03-17 18:24:51580 ],
581 'conditions': [
[email protected]0dc310a32013-05-08 23:52:44582 ['OS != "ios"', {
[email protected]6c2046562010-05-07 23:47:50583 'dependencies': [
[email protected]9cac94e2010-10-01 16:35:12584 '../third_party/protobuf/protobuf.gyp:py_proto',
[email protected]6c2046562010-05-07 23:47:50585 ],
586 }],
davidben15d69d482014-09-29 18:24:08587 ['use_openssl == 0 and (use_nss == 1 or OS == "ios")', {
[email protected]70372d42010-10-22 13:12:34588 'conditions': [
davidben15d69d482014-09-29 18:24:08589 [ 'desktop_linux == 1 or chromeos == 1', {
[email protected]70372d42010-10-22 13:12:34590 'dependencies': [
[email protected]638e9df42011-05-31 17:19:30591 '../build/linux/system.gyp:ssl',
[email protected]70372d42010-10-22 13:12:34592 ],
davidben15d69d482014-09-29 18:24:08593 }, { # desktop_linux == 0 and chromeos == 0
594 'dependencies': [
595 '../third_party/nss/nss.gyp:nspr',
596 '../third_party/nss/nss.gyp:nss',
597 'third_party/nss/ssl.gyp:libssl',
598 ],
[email protected]70372d42010-10-22 13:12:34599 }],
[email protected]702a6a722010-03-17 18:24:51600 ],
601 }],
[email protected]10246a02012-07-30 15:15:01602 ['os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', {
[email protected]85437612010-03-22 11:55:23603 'conditions': [
[email protected]2fa89ef2014-05-07 18:45:59604 ['use_allocator!="none"', {
[email protected]85437612010-03-22 11:55:23605 'dependencies': [
606 '../base/allocator/allocator.gyp:allocator',
607 ],
608 }],
609 ],
610 }],
[email protected]31526822012-03-12 06:04:43611 ['OS != "android"', {
612 'sources!': [
[email protected]89b32522013-05-07 20:04:21613 'test/spawned_test_server/remote_test_server.cc',
614 'test/spawned_test_server/remote_test_server.h',
615 'test/spawned_test_server/spawner_communicator.cc',
616 'test/spawned_test_server/spawner_communicator.h',
[email protected]31526822012-03-12 06:04:43617 ],
618 }],
[email protected]ba7866b82012-09-07 14:22:27619 [ 'use_v8_in_net==1', {
620 'dependencies': [
621 'net_with_v8',
622 ],
623 },
624 ],
[email protected]f22f316b2013-06-21 05:26:18625 [ 'enable_mdns != 1', {
626 'sources!' : [
627 'dns/mock_mdns_socket_factory.cc',
628 'dns/mock_mdns_socket_factory.h'
629 ]
630 }],
[email protected]83e1ae32014-07-18 10:57:07631 [ 'use_nss != 1', {
632 'sources!': [
633 'test/cert_test_util_nss.cc',
634 ],
635 }],
[email protected]2f80c312009-02-25 21:26:55636 ],
[email protected]9dcec242013-01-10 23:24:28637 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
638 'msvs_disabled_warnings': [4267, ],
[email protected]2f80c312009-02-25 21:26:55639 },
[email protected]ef36c74c2009-03-11 13:32:22640 {
641 'target_name': 'net_resources',
642 'type': 'none',
[email protected]5b910872010-02-09 01:03:02643 'variables': {
[email protected]4de39f82011-03-28 12:01:29644 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/net',
[email protected]5b910872010-02-09 01:03:02645 },
[email protected]4de39f82011-03-28 12:01:29646 'actions': [
[email protected]2f80c312009-02-25 21:26:55647 {
[email protected]4de39f82011-03-28 12:01:29648 'action_name': 'net_resources',
649 'variables': {
650 'grit_grd_file': 'base/net_resources.grd',
651 },
652 'includes': [ '../build/grit_action.gypi' ],
[email protected]2f80c312009-02-25 21:26:55653 },
[email protected]6718b412009-03-04 18:26:00654 ],
[email protected]ef36c74c2009-03-11 13:32:22655 },
[email protected]75b91f92009-06-17 07:28:48656 {
mef327a8e42014-08-29 17:10:03657 'target_name': 'net_extras',
658 'type': 'static_library',
659 'variables': { 'enable_wexit_time_destructors': 1, },
660 'dependencies': [
661 '../base/base.gyp:base',
662 '../sql/sql.gyp:sql',
663 'net',
664 ],
665 'sources': [
666 '<@(net_extras_sources)',
667 ],
668 },
669 {
ttuttlea898dd42015-02-24 18:07:47670 'target_name': 'net_docs',
671 'type': 'none',
672 'actions': [
673 {
674 'action_name': 'net_docs',
675 'variables': {
676 'net_docs_input_dir': '.',
677 },
678 'inputs': [
679 '<@(net_docs_sources)',
680 ],
681 'outputs': [
682 '<(net_docs_output_dir)',
683 ],
684 'action': [
685 'python',
686 '<(net_docs_script)',
687 '--input_path',
688 '<(net_docs_input_dir)',
689 '--output_path',
690 '<(net_docs_output_dir)',
691 '<@(net_docs_sources)',
692 ],
693 'message': 'Rendering network stack documentation',
694 }
695 ],
696 },
697 {
[email protected]a33721a2011-02-03 17:23:24698 'target_name': 'http_server',
[email protected]5a547332011-05-19 23:18:53699 'type': 'static_library',
[email protected]8df769e2011-11-09 23:08:54700 'variables': { 'enable_wexit_time_destructors': 1, },
[email protected]0569d862010-07-05 11:32:40701 'dependencies': [
[email protected]0569d862010-07-05 11:32:40702 '../base/base.gyp:base',
[email protected]eb6d2392012-08-02 11:28:23703 'net',
[email protected]0569d862010-07-05 11:32:40704 ],
[email protected]0569d862010-07-05 11:32:40705 'sources': [
[email protected]86c6a0b52011-08-02 19:49:25706 'server/http_connection.cc',
707 'server/http_connection.h',
[email protected]a33721a2011-02-03 17:23:24708 'server/http_server.cc',
709 'server/http_server.h',
[email protected]1889dc1b2010-10-14 22:03:13710 'server/http_server_request_info.cc',
[email protected]0569d862010-07-05 11:32:40711 'server/http_server_request_info.h',
[email protected]c700fd152013-07-23 21:29:11712 'server/http_server_response_info.cc',
713 'server/http_server_response_info.h',
[email protected]86c6a0b52011-08-02 19:49:25714 'server/web_socket.cc',
715 'server/web_socket.h',
dgozmana6e70092014-12-12 14:46:21716 'server/web_socket_encoder.cc',
717 'server/web_socket_encoder.h',
[email protected]0569d862010-07-05 11:32:40718 ],
[email protected]9dcec242013-01-10 23:24:28719 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
720 'msvs_disabled_warnings': [4267, ],
[email protected]0569d862010-07-05 11:32:40721 },
[email protected]27675c82012-11-29 16:34:45722 {
[email protected]8f6594202014-06-11 14:44:25723 'target_name': 'balsa',
724 'type': 'static_library',
725 'dependencies': [
726 '../base/base.gyp:base',
727 'net',
728 ],
729 'sources': [
730 'tools/balsa/balsa_enums.h',
731 'tools/balsa/balsa_frame.cc',
732 'tools/balsa/balsa_frame.h',
733 'tools/balsa/balsa_headers.cc',
734 'tools/balsa/balsa_headers.h',
735 'tools/balsa/balsa_headers_token_utils.cc',
736 'tools/balsa/balsa_headers_token_utils.h',
737 'tools/balsa/balsa_visitor_interface.h',
738 'tools/balsa/http_message_constants.cc',
739 'tools/balsa/http_message_constants.h',
740 'tools/balsa/noop_balsa_visitor.h',
741 'tools/balsa/simple_buffer.cc',
742 'tools/balsa/simple_buffer.h',
743 'tools/balsa/split.cc',
744 'tools/balsa/split.h',
745 'tools/balsa/string_piece_utils.h',
[email protected]ad83abaa2014-06-17 01:08:46746 'tools/quic/spdy_utils.cc',
747 'tools/quic/spdy_utils.h',
[email protected]8f6594202014-06-11 14:44:25748 ],
749 },
750 {
[email protected]27675c82012-11-29 16:34:45751 'target_name': 'dump_cache',
752 'type': 'executable',
753 'dependencies': [
754 '../base/base.gyp:base',
755 'net',
756 'net_test_support',
757 ],
758 'sources': [
759 'tools/dump_cache/cache_dumper.cc',
760 'tools/dump_cache/cache_dumper.h',
761 'tools/dump_cache/dump_cache.cc',
762 'tools/dump_cache/dump_files.cc',
763 'tools/dump_cache/dump_files.h',
764 'tools/dump_cache/simple_cache_dumper.cc',
765 'tools/dump_cache/simple_cache_dumper.h',
[email protected]27675c82012-11-29 16:34:45766 'tools/dump_cache/url_to_filename_encoder.cc',
767 'tools/dump_cache/url_to_filename_encoder.h',
[email protected]27675c82012-11-29 16:34:45768 'tools/dump_cache/url_utilities.cc',
satoruxdd0840d32015-02-12 19:10:26769 'tools/dump_cache/url_utilities.h',
[email protected]27675c82012-11-29 16:34:45770 ],
[email protected]9dcec242013-01-10 23:24:28771 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
772 'msvs_disabled_warnings': [4267, ],
[email protected]27675c82012-11-29 16:34:45773 },
[email protected]ceeaac792014-06-25 05:14:43774 {
rch47ad01f2015-03-20 21:17:23775 'target_name': 'simple_quic_tools',
776 'type': 'static_library',
777 'dependencies': [
778 '../base/base.gyp:base',
779 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
780 '../url/url.gyp:url_lib',
781 'net',
782 ],
783 'sources': [
rchc99f380c2015-03-26 19:50:56784 'tools/quic/quic_client_session.cc',
785 'tools/quic/quic_client_session.h',
786 'tools/quic/quic_dispatcher.cc',
787 'tools/quic/quic_dispatcher.h',
rch0e945472015-03-26 15:19:21788 'tools/quic/quic_in_memory_cache.cc',
789 'tools/quic/quic_in_memory_cache.h',
rchc99f380c2015-03-26 19:50:56790 'tools/quic/quic_per_connection_packet_writer.cc',
791 'tools/quic/quic_per_connection_packet_writer.h',
rch0e945472015-03-26 15:19:21792 'tools/quic/quic_server_session.cc',
793 'tools/quic/quic_server_session.h',
rch47ad01f2015-03-20 21:17:23794 'tools/quic/quic_simple_client.cc',
795 'tools/quic/quic_simple_client.h',
rch216445c2015-03-27 00:23:28796 'tools/quic/quic_simple_per_connection_packet_writer.cc',
797 'tools/quic/quic_simple_per_connection_packet_writer.h',
798 'tools/quic/quic_simple_server.cc',
799 'tools/quic/quic_simple_server.h',
800 'tools/quic/quic_simple_server_packet_writer.cc',
801 'tools/quic/quic_simple_server_packet_writer.h',
rched113b22015-03-26 04:54:05802 'tools/quic/quic_spdy_client_stream.cc',
803 'tools/quic/quic_spdy_client_stream.h',
rch0e945472015-03-26 15:19:21804 'tools/quic/quic_spdy_server_stream.cc',
805 'tools/quic/quic_spdy_server_stream.h',
806 'tools/quic/quic_time_wait_list_manager.cc',
807 'tools/quic/quic_time_wait_list_manager.h',
rchda78df5a2015-03-22 05:16:37808 'tools/quic/synchronous_host_resolver.cc',
809 'tools/quic/synchronous_host_resolver.h',
rch47ad01f2015-03-20 21:17:23810 ],
811 },
[email protected]ef36c74c2009-03-11 13:32:22812 ],
813 'conditions': [
[email protected]ba7866b82012-09-07 14:22:27814 ['use_v8_in_net == 1', {
815 'targets': [
816 {
817 'target_name': 'net_with_v8',
818 'type': '<(component)',
819 'variables': { 'enable_wexit_time_destructors': 1, },
820 'dependencies': [
821 '../base/base.gyp:base',
[email protected]6b395fe2014-04-08 23:58:15822 '../gin/gin.gyp:gin',
[email protected]002cc08f2013-06-03 05:40:29823 '../url/url.gyp:url_lib',
[email protected]ba7866b82012-09-07 14:22:27824 '../v8/tools/gyp/v8.gyp:v8',
825 'net'
826 ],
827 'defines': [
828 'NET_IMPLEMENTATION',
829 ],
830 'sources': [
831 'proxy/proxy_resolver_v8.cc',
832 'proxy/proxy_resolver_v8.h',
[email protected]501e2d42013-01-30 22:30:49833 'proxy/proxy_resolver_v8_tracing.cc',
834 'proxy/proxy_resolver_v8_tracing.h',
[email protected]ba7866b82012-09-07 14:22:27835 'proxy/proxy_service_v8.cc',
836 'proxy/proxy_service_v8.h',
837 ],
[email protected]9dcec242013-01-10 23:24:28838 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
839 'msvs_disabled_warnings': [4267, ],
[email protected]ba7866b82012-09-07 14:22:27840 },
841 ],
842 }],
amistryaa16ad22015-02-04 09:01:47843 ['use_v8_in_net == 1 and OS != "android"', {
844 'targets': [
845 {
846 # GN version: //net/interfaces
847 'target_name': 'net_interfaces',
848 'type': 'static_library',
849 'sources': [
850 'interfaces/host_resolver_service.mojom',
851 'interfaces/proxy_resolver_service.mojom',
852 ],
853 'includes': [
854 '../third_party/mojo/mojom_bindings_generator.gypi',
855 ],
856 },
amistry7e6ebfdc82015-02-13 04:19:11857 {
858 # GN version: //net:net_browser_services
859 'target_name': 'net_browser_services',
860 'type': 'static_library',
861 'sources': [
862 'dns/mojo_host_resolver_impl.cc',
863 'dns/mojo_host_resolver_impl.h',
amistry6e1ed1b2015-03-12 05:24:01864 'proxy/in_process_mojo_proxy_resolver_factory.cc',
865 'proxy/in_process_mojo_proxy_resolver_factory.h',
amistry07ff1402015-03-10 07:34:07866 'proxy/mojo_proxy_resolver_factory.h',
867 'proxy/proxy_resolver_mojo.cc',
868 'proxy/proxy_resolver_mojo.h',
amistry6e1ed1b2015-03-12 05:24:01869 'proxy/proxy_service_mojo.cc',
870 'proxy/proxy_service_mojo.h',
amistry7e6ebfdc82015-02-13 04:19:11871 ],
872 'dependencies': [
873 'mojo_type_converters',
874 'net',
875 'net_interfaces',
amistry07ff1402015-03-10 07:34:07876 '../mojo/mojo_base.gyp:mojo_common_lib',
amistry7e6ebfdc82015-02-13 04:19:11877 '../mojo/mojo_base.gyp:mojo_environment_chromium',
amistry07ff1402015-03-10 07:34:07878 '../mojo/mojo_base.gyp:mojo_url_type_converters',
amistry7e6ebfdc82015-02-13 04:19:11879 '../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
amistry6e1ed1b2015-03-12 05:24:01880
881 # NOTE(amistry): As long as we support in-process Mojo v8 PAC, we
882 # need this dependency since in_process_mojo_proxy_resolver_factory
883 # creates the utility process side Mojo services in the browser
884 # process. Ultimately, this will go away when we only support
885 # out-of-process.
886 'net_utility_services',
amistry7e6ebfdc82015-02-13 04:19:11887 ],
888 },
889 {
sammc5403aa1d2015-02-25 04:59:21890 # GN version: //net:net_utility_services
891 'target_name': 'net_utility_services',
892 'type': 'static_library',
893 'sources': [
sammc6ac3fe52015-02-25 06:00:28894 'dns/host_resolver_mojo.cc',
895 'dns/host_resolver_mojo.h',
sammcc804b532015-03-12 10:02:34896 'proxy/load_state_change_coalescer.cc',
897 'proxy/load_state_change_coalescer.h',
sammc352f7492015-02-25 09:45:24898 'proxy/mojo_proxy_resolver_factory_impl.cc',
899 'proxy/mojo_proxy_resolver_factory_impl.h',
sammc5403aa1d2015-02-25 04:59:21900 'proxy/mojo_proxy_resolver_impl.cc',
901 'proxy/mojo_proxy_resolver_impl.h',
902 ],
903 'dependencies': [
904 'mojo_type_converters',
sammc5403aa1d2015-02-25 04:59:21905 'net_interfaces',
amistryb91865c2015-03-06 08:50:36906 'net_with_v8',
morrita9e8f56a2015-03-05 20:30:05907 '../mojo/mojo_base.gyp:mojo_url_type_converters',
sammc5403aa1d2015-02-25 04:59:21908 '../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
909 ],
910 },
911 {
amistry7e6ebfdc82015-02-13 04:19:11912 # GN version: //net:mojo_type_converters
913 'target_name': 'mojo_type_converters',
914 'type': 'static_library',
915 'sources': [
amistry7ec58112015-02-26 06:03:00916 'dns/mojo_host_type_converters.cc',
917 'dns/mojo_host_type_converters.h',
918 'proxy/mojo_proxy_type_converters.cc',
919 'proxy/mojo_proxy_type_converters.h',
amistry7e6ebfdc82015-02-13 04:19:11920 ],
921 'dependencies': [
922 'net',
923 'net_interfaces',
924 '../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
925 ],
926 },
amistryaa16ad22015-02-04 09:01:47927 ],
928 }],
[email protected]3f55cf82014-01-24 04:32:18929 ['OS != "ios" and OS != "android"', {
[email protected]10246a02012-07-30 15:15:01930 'targets': [
931 # iOS doesn't have the concept of simple executables, these targets
932 # can't be compiled on the platform.
933 {
[email protected]eb6d2392012-08-02 11:28:23934 'target_name': 'crash_cache',
935 'type': 'executable',
936 'dependencies': [
937 '../base/base.gyp:base',
938 'net',
939 'net_test_support',
940 ],
941 'sources': [
942 'tools/crash_cache/crash_cache.cc',
943 ],
[email protected]9dcec242013-01-10 23:24:28944 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
945 'msvs_disabled_warnings': [4267, ],
[email protected]eb6d2392012-08-02 11:28:23946 },
947 {
948 'target_name': 'crl_set_dump',
949 'type': 'executable',
950 'dependencies': [
951 '../base/base.gyp:base',
952 'net',
953 ],
954 'sources': [
955 'tools/crl_set_dump/crl_set_dump.cc',
956 ],
[email protected]9dcec242013-01-10 23:24:28957 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
958 'msvs_disabled_warnings': [4267, ],
[email protected]eb6d2392012-08-02 11:28:23959 },
960 {
961 'target_name': 'dns_fuzz_stub',
962 'type': 'executable',
963 'dependencies': [
964 '../base/base.gyp:base',
965 'net',
966 ],
967 'sources': [
968 'tools/dns_fuzz_stub/dns_fuzz_stub.cc',
969 ],
[email protected]9dcec242013-01-10 23:24:28970 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
971 'msvs_disabled_warnings': [4267, ],
[email protected]eb6d2392012-08-02 11:28:23972 },
973 {
[email protected]10246a02012-07-30 15:15:01974 'target_name': 'gdig',
975 'type': 'executable',
976 'dependencies': [
977 '../base/base.gyp:base',
978 'net',
979 ],
980 'sources': [
981 'tools/gdig/file_net_log.cc',
982 'tools/gdig/gdig.cc',
983 ],
984 },
985 {
[email protected]cd31c7f2012-09-05 00:43:31986 'target_name': 'get_server_time',
987 'type': 'executable',
988 'dependencies': [
989 '../base/base.gyp:base',
990 '../base/base.gyp:base_i18n',
[email protected]002cc08f2013-06-03 05:40:29991 '../url/url.gyp:url_lib',
[email protected]cd31c7f2012-09-05 00:43:31992 'net',
993 ],
994 'sources': [
995 'tools/get_server_time/get_server_time.cc',
996 ],
[email protected]9dcec242013-01-10 23:24:28997 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
998 'msvs_disabled_warnings': [4267, ],
[email protected]cd31c7f2012-09-05 00:43:31999 },
1000 {
[email protected]19b4fa52014-05-05 22:03:151001 'target_name': 'hpack_example_generator',
1002 'type': 'executable',
1003 'dependencies': [
1004 '../base/base.gyp:base',
1005 'net',
1006 ],
1007 'sources': [
1008 'spdy/fuzzing/hpack_example_generator.cc',
1009 ],
1010 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1011 'msvs_disabled_warnings': [4267, ],
1012 },
1013 {
1014 'target_name': 'hpack_fuzz_mutator',
1015 'type': 'executable',
1016 'dependencies': [
1017 '../base/base.gyp:base',
1018 'net',
1019 ],
1020 'sources': [
1021 'spdy/fuzzing/hpack_fuzz_mutator.cc',
1022 ],
1023 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1024 'msvs_disabled_warnings': [4267, ],
1025 },
1026 {
1027 'target_name': 'hpack_fuzz_wrapper',
1028 'type': 'executable',
1029 'dependencies': [
1030 '../base/base.gyp:base',
1031 'net',
1032 ],
1033 'sources': [
1034 'spdy/fuzzing/hpack_fuzz_wrapper.cc',
1035 ],
1036 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1037 'msvs_disabled_warnings': [4267, ],
1038 },
1039 {
[email protected]10246a02012-07-30 15:15:011040 'target_name': 'net_watcher',
1041 'type': 'executable',
1042 'dependencies': [
[email protected]10246a02012-07-30 15:15:011043 '../base/base.gyp:base',
[email protected]eb6d2392012-08-02 11:28:231044 'net',
[email protected]ffd3eff2012-08-31 14:50:481045 'net_with_v8',
[email protected]10246a02012-07-30 15:15:011046 ],
[email protected]a6f8cb732012-11-19 19:22:151047 'conditions': [
1048 [ 'use_glib == 1', {
1049 'dependencies': [
1050 '../build/linux/system.gyp:gconf',
1051 '../build/linux/system.gyp:gio',
1052 ],
1053 },
1054 ],
1055 ],
[email protected]10246a02012-07-30 15:15:011056 'sources': [
1057 'tools/net_watcher/net_watcher.cc',
1058 ],
1059 },
1060 {
[email protected]eb6d2392012-08-02 11:28:231061 'target_name': 'run_testserver',
[email protected]10246a02012-07-30 15:15:011062 'type': 'executable',
1063 'dependencies': [
[email protected]10246a02012-07-30 15:15:011064 '../base/base.gyp:base',
[email protected]e4c029f2013-01-20 01:10:241065 '../base/base.gyp:test_support_base',
[email protected]eb6d2392012-08-02 11:28:231066 '../testing/gtest.gyp:gtest',
[email protected]eb6d2392012-08-02 11:28:231067 'net_test_support',
[email protected]10246a02012-07-30 15:15:011068 ],
1069 'sources': [
[email protected]eb6d2392012-08-02 11:28:231070 'tools/testserver/run_testserver.cc',
1071 ],
1072 },
1073 {
rch216445c2015-03-27 00:23:281074 'target_name': 'quic_client',
rcha9d12ce12015-03-19 23:06:491075 'type': 'executable',
1076 'dependencies': [
1077 '../base/base.gyp:base',
1078 '../url/url.gyp:url_lib',
1079 'net',
rch47ad01f2015-03-20 21:17:231080 'simple_quic_tools',
rcha9d12ce12015-03-19 23:06:491081 ],
1082 'sources': [
rcha9d12ce12015-03-19 23:06:491083 'tools/quic/quic_simple_client_bin.cc',
rcha9d12ce12015-03-19 23:06:491084 ],
1085 },
1086 {
rch216445c2015-03-27 00:23:281087 'target_name': 'quic_server',
1088 'type': 'executable',
1089 'dependencies': [
1090 '../base/base.gyp:base',
1091 'net',
1092 'simple_quic_tools',
1093 ],
1094 'sources': [
1095 'tools/quic/quic_simple_server_bin.cc',
1096 ],
1097 },
1098 {
[email protected]eb6d2392012-08-02 11:28:231099 'target_name': 'stress_cache',
1100 'type': 'executable',
1101 'dependencies': [
1102 '../base/base.gyp:base',
1103 'net',
1104 'net_test_support',
1105 ],
1106 'sources': [
rvargase23fcf652015-03-04 19:59:221107 'tools/stress_cache/stress_cache.cc',
[email protected]10246a02012-07-30 15:15:011108 ],
[email protected]9dcec242013-01-10 23:24:281109 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1110 'msvs_disabled_warnings': [4267, ],
[email protected]10246a02012-07-30 15:15:011111 },
1112 {
1113 'target_name': 'tld_cleanup',
1114 'type': 'executable',
1115 'dependencies': [
1116 '../base/base.gyp:base',
1117 '../base/base.gyp:base_i18n',
[email protected]ed32c212013-05-14 20:49:291118 '../net/tools/tld_cleanup/tld_cleanup.gyp:tld_cleanup_util',
[email protected]10246a02012-07-30 15:15:011119 ],
1120 'sources': [
1121 'tools/tld_cleanup/tld_cleanup.cc',
1122 ],
[email protected]9dcec242013-01-10 23:24:281123 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1124 'msvs_disabled_warnings': [4267, ],
[email protected]10246a02012-07-30 15:15:011125 },
[email protected]10246a02012-07-30 15:15:011126 ],
1127 }],
[email protected]10246a02012-07-30 15:15:011128 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
[email protected]72322c52012-07-13 21:22:551129 'targets': [
1130 {
[email protected]6c7e6522013-09-29 15:27:441131 'target_name': 'epoll_server',
1132 'type': 'static_library',
1133 'dependencies': [
1134 '../base/base.gyp:base',
1135 'net',
1136 ],
1137 'sources': [
1138 'tools/epoll_server/epoll_server.cc',
1139 'tools/epoll_server/epoll_server.h',
1140 ],
1141 },
1142 {
1143 'target_name': 'flip_in_mem_edsm_server_base',
[email protected]29e052312013-08-06 05:44:511144 'type': 'static_library',
[email protected]72322c52012-07-13 21:22:551145 'cflags': [
1146 '-Wno-deprecated',
1147 ],
1148 'dependencies': [
1149 '../base/base.gyp:base',
[email protected]edfd0f42014-07-22 18:20:371150 '../third_party/boringssl/boringssl.gyp:boringssl',
[email protected]6c7e6522013-09-29 15:27:441151 'balsa',
1152 'epoll_server',
[email protected]eb6d2392012-08-02 11:28:231153 'net',
[email protected]72322c52012-07-13 21:22:551154 ],
1155 'sources': [
1156 'tools/dump_cache/url_to_filename_encoder.cc',
1157 'tools/dump_cache/url_to_filename_encoder.h',
[email protected]72322c52012-07-13 21:22:551158 'tools/dump_cache/url_utilities.cc',
satoruxdd0840d32015-02-12 19:10:261159 'tools/dump_cache/url_utilities.h',
[email protected]72322c52012-07-13 21:22:551160 'tools/flip_server/acceptor_thread.cc',
satoruxdd0840d32015-02-12 19:10:261161 'tools/flip_server/acceptor_thread.h',
1162 'tools/flip_server/constants.h',
[email protected]72322c52012-07-13 21:22:551163 'tools/flip_server/create_listener.cc',
1164 'tools/flip_server/create_listener.h',
[email protected]72322c52012-07-13 21:22:551165 'tools/flip_server/flip_config.cc',
1166 'tools/flip_server/flip_config.h',
[email protected]72322c52012-07-13 21:22:551167 'tools/flip_server/http_interface.cc',
1168 'tools/flip_server/http_interface.h',
[email protected]72322c52012-07-13 21:22:551169 'tools/flip_server/loadtime_measurement.h',
[email protected]72322c52012-07-13 21:22:551170 'tools/flip_server/mem_cache.cc',
satoruxdd0840d32015-02-12 19:10:261171 'tools/flip_server/mem_cache.h',
[email protected]72322c52012-07-13 21:22:551172 'tools/flip_server/output_ordering.cc',
1173 'tools/flip_server/output_ordering.h',
1174 'tools/flip_server/ring_buffer.cc',
1175 'tools/flip_server/ring_buffer.h',
[email protected]72322c52012-07-13 21:22:551176 'tools/flip_server/sm_connection.cc',
1177 'tools/flip_server/sm_connection.h',
1178 'tools/flip_server/sm_interface.h',
[email protected]72322c52012-07-13 21:22:551179 'tools/flip_server/spdy_interface.cc',
1180 'tools/flip_server/spdy_interface.h',
satoruxdd0840d32015-02-12 19:10:261181 'tools/flip_server/spdy_ssl.cc',
1182 'tools/flip_server/spdy_ssl.h',
[email protected]72322c52012-07-13 21:22:551183 'tools/flip_server/spdy_util.cc',
1184 'tools/flip_server/spdy_util.h',
1185 'tools/flip_server/streamer_interface.cc',
1186 'tools/flip_server/streamer_interface.h',
[email protected]72322c52012-07-13 21:22:551187 ],
1188 },
[email protected]519e49882013-03-27 08:45:321189 {
[email protected]673ec5d2013-11-12 02:54:251190 'target_name': 'flip_in_mem_edsm_server_unittests',
1191 'type': 'executable',
1192 'dependencies': [
1193 '../testing/gtest.gyp:gtest',
1194 '../testing/gmock.gyp:gmock',
[email protected]edfd0f42014-07-22 18:20:371195 '../third_party/boringssl/boringssl.gyp:boringssl',
[email protected]673ec5d2013-11-12 02:54:251196 'flip_in_mem_edsm_server_base',
1197 'net',
1198 'net_test_support',
1199 ],
1200 'sources': [
1201 'tools/flip_server/flip_test_utils.cc',
1202 'tools/flip_server/flip_test_utils.h',
1203 'tools/flip_server/http_interface_test.cc',
1204 'tools/flip_server/mem_cache_test.cc',
1205 'tools/flip_server/run_all_tests.cc',
1206 'tools/flip_server/spdy_interface_test.cc',
1207 ],
1208 },
1209 {
[email protected]29e052312013-08-06 05:44:511210 'target_name': 'flip_in_mem_edsm_server',
1211 'type': 'executable',
1212 'cflags': [
1213 '-Wno-deprecated',
1214 ],
1215 'dependencies': [
1216 '../base/base.gyp:base',
[email protected]6c7e6522013-09-29 15:27:441217 'flip_in_mem_edsm_server_base',
[email protected]29e052312013-08-06 05:44:511218 'net',
1219 ],
1220 'sources': [
1221 'tools/flip_server/flip_in_mem_edsm_server.cc',
1222 ],
1223 },
1224 {
rch216445c2015-03-27 00:23:281225 'target_name': 'epoll_quic_tools',
[email protected]519e49882013-03-27 08:45:321226 'type': 'static_library',
1227 'dependencies': [
1228 '../base/base.gyp:base',
1229 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]002cc08f2013-06-03 05:40:291230 '../url/url.gyp:url_lib',
[email protected]6c7e6522013-09-29 15:27:441231 'balsa',
1232 'epoll_server',
[email protected]519e49882013-03-27 08:45:321233 'net',
1234 ],
1235 'sources': [
[email protected]e45d68892013-03-30 17:50:101236 'tools/quic/quic_client.cc',
1237 'tools/quic/quic_client.h',
[email protected]cbd731e2013-10-24 00:20:391238 'tools/quic/quic_default_packet_writer.cc',
1239 'tools/quic/quic_default_packet_writer.h',
[email protected]519e49882013-03-27 08:45:321240 'tools/quic/quic_epoll_clock.cc',
1241 'tools/quic/quic_epoll_clock.h',
1242 'tools/quic/quic_epoll_connection_helper.cc',
1243 'tools/quic/quic_epoll_connection_helper.h',
rtennetifb3fa6c2015-03-16 23:04:551244 'tools/quic/quic_packet_reader.cc',
1245 'tools/quic/quic_packet_reader.h',
[email protected]9f0dcd4e2014-01-16 15:58:141246 'tools/quic/quic_packet_writer_wrapper.cc',
1247 'tools/quic/quic_packet_writer_wrapper.h',
[email protected]e45d68892013-03-30 17:50:101248 'tools/quic/quic_server.cc',
1249 'tools/quic/quic_server.h',
[email protected]519e49882013-03-27 08:45:321250 'tools/quic/quic_socket_utils.cc',
1251 'tools/quic/quic_socket_utils.h',
[email protected]519e49882013-03-27 08:45:321252 ],
1253 },
1254 {
rch216445c2015-03-27 00:23:281255 'target_name': 'epoll_quic_client',
[email protected]519e49882013-03-27 08:45:321256 'type': 'executable',
1257 'dependencies': [
1258 '../base/base.gyp:base',
[email protected]519e49882013-03-27 08:45:321259 'net',
rch216445c2015-03-27 00:23:281260 'epoll_quic_tools',
rchda78df5a2015-03-22 05:16:371261 'simple_quic_tools',
[email protected]519e49882013-03-27 08:45:321262 ],
1263 'sources': [
[email protected]519e49882013-03-27 08:45:321264 'tools/quic/quic_client_bin.cc',
[email protected]519e49882013-03-27 08:45:321265 ],
1266 },
1267 {
rch216445c2015-03-27 00:23:281268 'target_name': 'epoll_quic_server',
[email protected]519e49882013-03-27 08:45:321269 'type': 'executable',
1270 'dependencies': [
1271 '../base/base.gyp:base',
[email protected]519e49882013-03-27 08:45:321272 'net',
rch216445c2015-03-27 00:23:281273 'epoll_quic_tools',
rch0e945472015-03-26 15:19:211274 'simple_quic_tools',
[email protected]519e49882013-03-27 08:45:321275 ],
1276 'sources': [
rch216445c2015-03-27 00:23:281277 'tools/quic/quic_server_bin.cc',
[email protected]519e49882013-03-27 08:45:321278 ],
[email protected]7499f22fe2014-04-30 21:58:501279 },
[email protected]72322c52012-07-13 21:22:551280 ]
1281 }],
[email protected]ad116b2e82012-04-20 03:24:071282 ['OS=="android"', {
1283 'targets': [
mefdc8e94b2015-03-11 19:49:051284 { # The same target as 'net', but with smaller binary size due to
1285 # exclusion of ICU, FTP, FILE and WebSockets support.
1286 'target_name': 'net_small',
1287 'variables': {
1288 'disable_ftp_support': 1,
1289 'disable_file_support': 1,
1290 'enable_websockets': 0,
1291 },
1292 'dependencies': [
1293 '../url/url.gyp:url_lib_use_icu_alternatives_on_android',
1294 ],
1295 'defines': [
1296 'USE_ICU_ALTERNATIVES_ON_ANDROID=1',
1297 'DISABLE_FILE_SUPPORT=1',
1298 'DISABLE_FTP_SUPPORT=1',
1299 ],
1300 'sources': [
1301 'base/net_string_util_icu_alternatives_android.cc',
1302 'base/net_string_util_icu_alternatives_android.h',
1303 ],
1304 'includes': [ 'net_common.gypi' ],
1305 },
[email protected]ad116b2e82012-04-20 03:24:071306 {
1307 'target_name': 'net_jni_headers',
1308 'type': 'none',
[email protected]e46f66152012-07-19 20:02:551309 'sources': [
[email protected]23073f92014-01-17 22:52:171310 'android/java/src/org/chromium/net/AndroidCertVerifyResult.java',
[email protected]03a07b2e2013-02-11 20:13:451311 'android/java/src/org/chromium/net/AndroidKeyStore.java',
[email protected]e46f66152012-07-19 20:02:551312 'android/java/src/org/chromium/net/AndroidNetworkLibrary.java',
[email protected]2816e1f2014-02-15 00:54:271313 'android/java/src/org/chromium/net/AndroidPrivateKey.java',
[email protected]d72acb02012-12-15 22:19:441314 'android/java/src/org/chromium/net/GURLUtils.java',
mefdc8e94b2015-03-11 19:49:051315 'android/java/src/org/chromium/net/NetStringUtil.java',
[email protected]e46f66152012-07-19 20:02:551316 'android/java/src/org/chromium/net/NetworkChangeNotifier.java',
1317 'android/java/src/org/chromium/net/ProxyChangeListener.java',
[email protected]18c360a2013-10-22 14:35:151318 'android/java/src/org/chromium/net/X509Util.java',
[email protected]e46f66152012-07-19 20:02:551319 ],
[email protected]ad116b2e82012-04-20 03:24:071320 'variables': {
[email protected]521cd942013-03-07 22:34:051321 'jni_gen_package': 'net',
[email protected]ad116b2e82012-04-20 03:24:071322 },
[email protected]03a07b2e2013-02-11 20:13:451323 'includes': [ '../build/jni_generator.gypi' ],
1324 },
1325 {
1326 'target_name': 'net_test_jni_headers',
1327 'type': 'none',
1328 'sources': [
1329 'android/javatests/src/org/chromium/net/AndroidKeyStoreTestUtil.java',
1330 ],
1331 'variables': {
[email protected]521cd942013-03-07 22:34:051332 'jni_gen_package': 'net',
[email protected]03a07b2e2013-02-11 20:13:451333 },
[email protected]ad116b2e82012-04-20 03:24:071334 'includes': [ '../build/jni_generator.gypi' ],
1335 },
1336 {
1337 'target_name': 'net_java',
1338 'type': 'none',
1339 'variables': {
[email protected]ad116b2e82012-04-20 03:24:071340 'java_in_dir': '../net/android/java',
1341 },
1342 'dependencies': [
[email protected]bb6bd1f2012-09-10 15:52:471343 '../base/base.gyp:base',
[email protected]23073f92014-01-17 22:52:171344 'cert_verify_status_android_java',
[email protected]3b455502012-12-11 18:22:581345 'certificate_mime_types_java',
jkarlin0818d5252014-12-02 21:06:021346 'network_change_notifier_types_java',
[email protected]71f4b272013-02-13 19:13:491347 'net_errors_java',
[email protected]03a07b2e2013-02-11 20:13:451348 'private_key_types_java',
[email protected]2816e1f2014-02-15 00:54:271349 'remote_android_keystore_aidl',
[email protected]ad116b2e82012-04-20 03:24:071350 ],
1351 'includes': [ '../build/java.gypi' ],
1352 },
[email protected]d29ba6c2012-08-15 23:10:181353 {
[email protected]2816e1f2014-02-15 00:54:271354 # Processes the interface files for communication with an Android KeyStore
1355 # running in a separate process.
1356 'target_name': 'remote_android_keystore_aidl',
1357 'type': 'none',
1358 'variables': {
1359 'aidl_interface_file': '../net/android/java/src/org/chromium/net/IRemoteAndroidKeyStoreInterface.aidl',
1360 },
1361 'sources': [
1362 '../net/android/java/src/org/chromium/net/IRemoteAndroidKeyStore.aidl',
1363 '../net/android/java/src/org/chromium/net/IRemoteAndroidKeyStoreCallbacks.aidl',
1364 ],
1365 'includes': [ '../build/java_aidl.gypi' ],
1366 },
1367 {
[email protected]f36fb172012-11-07 19:40:411368 'target_name': 'net_java_test_support',
1369 'type': 'none',
1370 'variables': {
[email protected]f36fb172012-11-07 19:40:411371 'java_in_dir': '../net/test/android/javatests',
1372 },
1373 'includes': [ '../build/java.gypi' ],
1374 },
1375 {
[email protected]d29ba6c2012-08-15 23:10:181376 'target_name': 'net_javatests',
1377 'type': 'none',
1378 'variables': {
[email protected]d29ba6c2012-08-15 23:10:181379 'java_in_dir': '../net/android/javatests',
1380 },
1381 'dependencies': [
[email protected]bb6bd1f2012-09-10 15:52:471382 '../base/base.gyp:base',
[email protected]d29ba6c2012-08-15 23:10:181383 '../base/base.gyp:base_java_test_support',
[email protected]bb6bd1f2012-09-10 15:52:471384 'net_java',
[email protected]d29ba6c2012-08-15 23:10:181385 ],
[email protected]d29ba6c2012-08-15 23:10:181386 'includes': [ '../build/java.gypi' ],
1387 },
[email protected]2fa30912012-09-10 19:22:501388 {
[email protected]2fa30912012-09-10 19:22:501389 'target_name': 'net_errors_java',
1390 'type': 'none',
[email protected]4d491712012-12-10 12:38:241391 'sources': [
[email protected]4d491712012-12-10 12:38:241392 'android/java/NetError.template',
[email protected]2fa30912012-09-10 19:22:501393 ],
[email protected]4d491712012-12-10 12:38:241394 'variables': {
[email protected]1b19c9a1e2013-03-02 16:39:081395 'package_name': 'org/chromium/net',
[email protected]2716d84e2013-01-19 04:05:481396 'template_deps': ['base/net_error_list.h'],
[email protected]4d491712012-12-10 12:38:241397 },
1398 'includes': [ '../build/android/java_cpp_template.gypi' ],
[email protected]3b455502012-12-11 18:22:581399 },
1400 {
1401 'target_name': 'certificate_mime_types_java',
1402 'type': 'none',
[email protected]3b455502012-12-11 18:22:581403 'variables': {
mkosibaf6ebbf6b2014-09-30 14:42:391404 'source_file': 'base/mime_util.h',
[email protected]3b455502012-12-11 18:22:581405 },
mkosibaf6ebbf6b2014-09-30 14:42:391406 'includes': [ '../build/android/java_cpp_enum.gypi' ],
[email protected]3b455502012-12-11 18:22:581407 },
[email protected]03a07b2e2013-02-11 20:13:451408 {
[email protected]23073f92014-01-17 22:52:171409 'target_name': 'cert_verify_status_android_java',
[email protected]71f4b272013-02-13 19:13:491410 'type': 'none',
[email protected]71f4b272013-02-13 19:13:491411 'variables': {
mkosibaf6ebbf6b2014-09-30 14:42:391412 'source_file': 'android/cert_verify_result_android.h',
[email protected]71f4b272013-02-13 19:13:491413 },
mkosibaf6ebbf6b2014-09-30 14:42:391414 'includes': [ '../build/android/java_cpp_enum.gypi' ],
[email protected]71f4b272013-02-13 19:13:491415 },
1416 {
jkarlin0818d5252014-12-02 21:06:021417 'target_name': 'network_change_notifier_types_java',
1418 'type': 'none',
1419 'variables': {
1420 'source_file': 'base/network_change_notifier.h',
1421 },
1422 'includes': [ '../build/android/java_cpp_enum.gypi' ],
1423 },
1424 {
[email protected]03a07b2e2013-02-11 20:13:451425 'target_name': 'private_key_types_java',
1426 'type': 'none',
[email protected]03a07b2e2013-02-11 20:13:451427 'variables': {
mkosibaf6ebbf6b2014-09-30 14:42:391428 'source_file': 'android/keystore.h',
[email protected]03a07b2e2013-02-11 20:13:451429 },
mkosibaf6ebbf6b2014-09-30 14:42:391430 'includes': [ '../build/android/java_cpp_enum.gypi' ],
[email protected]03a07b2e2013-02-11 20:13:451431 },
[email protected]a44d1212012-05-25 20:17:491432 {
1433 'target_name': 'net_unittests_apk',
1434 'type': 'none',
1435 'dependencies': [
[email protected]a44d1212012-05-25 20:17:491436 'net_java',
[email protected]03a07b2e2013-02-11 20:13:451437 'net_javatests',
[email protected]a44d1212012-05-25 20:17:491438 'net_unittests',
1439 ],
baixo5431a0dd2014-11-13 17:00:321440 'conditions': [
1441 ['v8_use_external_startup_data==1', {
1442 'dependencies': [
1443 '../v8/tools/gyp/v8.gyp:v8_external_snapshot',
1444 ],
1445 'copies': [
1446 {
1447 'destination': '<(asset_location)',
1448 'files': [
1449 '<(PRODUCT_DIR)/natives_blob.bin',
1450 '<(PRODUCT_DIR)/snapshot_blob.bin',
1451 ],
1452 },
1453 ],
1454 }],
1455 ],
[email protected]a44d1212012-05-25 20:17:491456 'variables': {
1457 'test_suite_name': 'net_unittests',
baixo3a3c88a2014-10-28 11:52:211458 'conditions': [
1459 ['v8_use_external_startup_data==1', {
baixo5431a0dd2014-11-13 17:00:321460 'asset_location': '<(PRODUCT_DIR)/net_unittests_apk/assets',
baixo3a3c88a2014-10-28 11:52:211461 'additional_input_paths': [
baixo5431a0dd2014-11-13 17:00:321462 '<(PRODUCT_DIR)/net_unittests_apk/assets/natives_blob.bin',
1463 '<(PRODUCT_DIR)/net_unittests_apk/assets/snapshot_blob.bin',
1464 ],
1465 'inputs': [
baixo3a3c88a2014-10-28 11:52:211466 '<(PRODUCT_DIR)/natives_blob.bin',
1467 '<(PRODUCT_DIR)/snapshot_blob.bin',
1468 ],
baixo3a3c88a2014-10-28 11:52:211469 }],
1470 ],
[email protected]a44d1212012-05-25 20:17:491471 },
1472 'includes': [ '../build/apk_test.gypi' ],
1473 },
1474 ],
1475 }],
[email protected]28af1232013-08-26 18:49:291476 ['OS == "android" or OS == "linux"', {
1477 'targets': [
1478 {
1479 'target_name': 'disk_cache_memory_test',
1480 'type': 'executable',
1481 'dependencies': [
1482 '../base/base.gyp:base',
1483 'net',
1484 ],
1485 'sources': [
1486 'tools/disk_cache_memory_test/disk_cache_memory_test.cc',
1487 ],
1488 },
1489 ],
1490 }],
[email protected]d34eb412012-07-28 00:03:411491 ['test_isolation_mode != "noop"', {
1492 'targets': [
1493 {
1494 'target_name': 'net_unittests_run',
1495 'type': 'none',
1496 'dependencies': [
1497 'net_unittests',
1498 ],
1499 'includes': [
[email protected]cc902cb2013-07-12 00:54:491500 '../build/isolate.gypi',
[email protected]d34eb412012-07-28 00:03:411501 ],
[email protected]cc902cb2013-07-12 00:54:491502 'sources': [
1503 'net_unittests.isolate',
[email protected]d34eb412012-07-28 00:03:411504 ],
1505 },
1506 ],
1507 }],
[email protected]2f80c312009-02-25 21:26:551508 ],
1509}