[email protected] | e4c029f | 2013-01-20 01:10:24 | [diff] [blame] | 1 | # Copyright 2013 The Chromium Authors. All rights reserved. |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
| 5 | { |
| 6 | 'variables': { |
| 7 | 'chromium_code': 1, |
[email protected] | 9c210d9 | 2011-08-15 17:34:01 | [diff] [blame] | 8 | |
[email protected] | 6acbd8dd | 2011-08-24 21:19:20 | [diff] [blame] | 9 | 'linux_link_kerberos%': 0, |
| 10 | 'conditions': [ |
[email protected] | 3ce2886 | 2013-11-18 00:27:49 | [diff] [blame] | 11 | ['chromeos==1 or embedded==1 or OS=="android" or OS=="ios"', { |
[email protected] | 10246a0 | 2012-07-30 15:15:01 | [diff] [blame] | 12 | # Disable Kerberos on ChromeOS, Android and iOS, at least for now. |
[email protected] | 6acbd8dd | 2011-08-24 21:19:20 | [diff] [blame] | 13 | # It needs configuration (krb5.conf and so on). |
| 14 | 'use_kerberos%': 0, |
[email protected] | 3ce2886 | 2013-11-18 00:27:49 | [diff] [blame] | 15 | }, { # chromeos == 0 and embedded==0 and OS!="android" and OS!="ios" |
[email protected] | 6acbd8dd | 2011-08-24 21:19:20 | [diff] [blame] | 16 | 'use_kerberos%': 1, |
| 17 | }], |
[email protected] | 7b265e8d | 2013-02-20 20:35:45 | [diff] [blame] | 18 | ['OS=="android" and target_arch != "ia32"', { |
[email protected] | 9e079cb | 2012-06-26 13:38:02 | [diff] [blame] | 19 | # 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] | 7b265e8d | 2013-02-20 20:35:45 | [diff] [blame] | 21 | # 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] | 9e079cb | 2012-06-26 13:38:02 | [diff] [blame] | 24 | 'posix_avoid_mmap%': 1, |
| 25 | }, { |
| 26 | 'posix_avoid_mmap%': 0, |
| 27 | }], |
[email protected] | fe380ae | 2012-08-30 10:05:51 | [diff] [blame] | 28 | ['OS=="ios"', { |
| 29 | # Websockets and socket stream are not used on iOS. |
| 30 | 'enable_websockets%': 0, |
[email protected] | ba7866b8 | 2012-09-07 14:22:27 | [diff] [blame] | 31 | # iOS does not use V8. |
| 32 | 'use_v8_in_net%': 0, |
[email protected] | 33c81486 | 2012-09-18 15:16:03 | [diff] [blame] | 33 | 'enable_built_in_dns%': 0, |
[email protected] | fe380ae | 2012-08-30 10:05:51 | [diff] [blame] | 34 | }, { |
| 35 | 'enable_websockets%': 1, |
[email protected] | ba7866b8 | 2012-09-07 14:22:27 | [diff] [blame] | 36 | 'use_v8_in_net%': 1, |
[email protected] | 33c81486 | 2012-09-18 15:16:03 | [diff] [blame] | 37 | 'enable_built_in_dns%': 1, |
[email protected] | fe380ae | 2012-08-30 10:05:51 | [diff] [blame] | 38 | }], |
[email protected] | 6acbd8dd | 2011-08-24 21:19:20 | [diff] [blame] | 39 | ], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 40 | }, |
[email protected] | 99ff993 | 2011-09-07 14:14:54 | [diff] [blame] | 41 | 'includes': [ |
| 42 | '../build/win_precompile.gypi', |
[email protected] | 18f84065 | 2014-04-10 20:31:37 | [diff] [blame] | 43 | 'net.gypi', |
[email protected] | 99ff993 | 2011-09-07 14:14:54 | [diff] [blame] | 44 | ], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 45 | 'targets': [ |
| 46 | { |
[email protected] | d7f0449 | 2014-05-13 07:01:34 | [diff] [blame] | 47 | '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] | 8858a11f4 | 2011-05-04 17:55:53 | [diff] [blame] | 83 | 'target_name': 'net', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 84 | 'dependencies': [ |
[email protected] | d34d79f | 2009-10-14 22:06:14 | [diff] [blame] | 85 | '../base/base.gyp:base_i18n', |
[email protected] | 28062949 | 2009-09-09 06:49:08 | [diff] [blame] | 86 | '../third_party/icu/icu.gyp:icui18n', |
| 87 | '../third_party/icu/icu.gyp:icuuc', |
[email protected] | 002cc08f | 2013-06-03 05:40:29 | [diff] [blame] | 88 | '../url/url.gyp:url_lib', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 89 | ], |
| 90 | 'sources': [ |
mef | dc8e94b | 2015-03-11 19:49:05 | [diff] [blame] | 91 | 'base/filename_util_icu.cc', |
| 92 | 'base/net_string_util_icu.cc', |
| 93 | 'base/net_util_icu.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 94 | ], |
mef | dc8e94b | 2015-03-11 19:49:05 | [diff] [blame] | 95 | 'includes': [ 'net_common.gypi' ], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 96 | }, |
| 97 | { |
| 98 | 'target_name': 'net_unittests', |
[email protected] | a44d121 | 2012-05-25 20:17:49 | [diff] [blame] | 99 | 'type': '<(gtest_target_type)', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 100 | 'dependencies': [ |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 101 | '../base/base.gyp:base', |
[email protected] | d34d79f | 2009-10-14 22:06:14 | [diff] [blame] | 102 | '../base/base.gyp:base_i18n', |
[email protected] | ad66db1 | 2014-07-10 12:43:47 | [diff] [blame] | 103 | '../base/base.gyp:base_prefs_test_support', |
[email protected] | 67875f51 | 2011-05-21 00:18:30 | [diff] [blame] | 104 | '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', |
[email protected] | 828a7a81 | 2012-09-05 10:12:35 | [diff] [blame] | 105 | '../crypto/crypto.gyp:crypto', |
[email protected] | 190933f | 2014-07-28 09:56:51 | [diff] [blame] | 106 | '../crypto/crypto.gyp:crypto_test_support', |
[email protected] | 06489a01 | 2009-12-10 08:12:54 | [diff] [blame] | 107 | '../testing/gmock.gyp:gmock', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 108 | '../testing/gtest.gyp:gtest', |
[email protected] | e86aaca | 2009-08-12 17:58:57 | [diff] [blame] | 109 | '../third_party/zlib/zlib.gyp:zlib', |
[email protected] | 002cc08f | 2013-06-03 05:40:29 | [diff] [blame] | 110 | '../url/url.gyp:url_lib', |
[email protected] | 8f659420 | 2014-06-11 14:44:25 | [diff] [blame] | 111 | 'balsa', |
[email protected] | c700fd15 | 2013-07-23 21:29:11 | [diff] [blame] | 112 | 'http_server', |
[email protected] | eb6d239 | 2012-08-02 11:28:23 | [diff] [blame] | 113 | 'net', |
[email protected] | d7f0449 | 2014-05-13 07:01:34 | [diff] [blame] | 114 | 'net_derived_sources', |
mef | 327a8e4 | 2014-08-29 17:10:03 | [diff] [blame] | 115 | 'net_extras', |
[email protected] | d7f0449 | 2014-05-13 07:01:34 | [diff] [blame] | 116 | 'net_test_support', |
rch | a6d42cd | 2015-03-22 05:13:58 | [diff] [blame] | 117 | 'simple_quic_tools', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 118 | ], |
| 119 | 'sources': [ |
[email protected] | 7f8afda | 2014-04-12 05:18:55 | [diff] [blame] | 120 | '<@(net_test_sources)', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 121 | ], |
| 122 | 'conditions': [ |
[email protected] | 453cdac1 | 2013-07-23 14:53:58 | [diff] [blame] | 123 | ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', { |
| 124 | 'dependencies': [ |
rch | 216445c | 2015-03-27 00:23:28 | [diff] [blame] | 125 | 'epoll_quic_tools', |
[email protected] | 6c7e652 | 2013-09-29 15:27:44 | [diff] [blame] | 126 | 'epoll_server', |
| 127 | 'flip_in_mem_edsm_server_base', |
[email protected] | 453cdac1 | 2013-07-23 14:53:58 | [diff] [blame] | 128 | ], |
| 129 | 'sources': [ |
[email protected] | 7f8afda | 2014-04-12 05:18:55 | [diff] [blame] | 130 | '<@(net_linux_test_sources)', |
[email protected] | 453cdac1 | 2013-07-23 14:53:58 | [diff] [blame] | 131 | ], |
| 132 | }], |
erikchen | 006a7cf | 2014-12-03 22:27:11 | [diff] [blame] | 133 | ['OS == "mac" or OS == "ios"', { |
| 134 | 'sources': [ |
| 135 | '<@(net_base_test_mac_ios_sources)', |
| 136 | ], |
| 137 | }], |
[email protected] | f50278cd | 2010-08-24 17:34:08 | [diff] [blame] | 138 | ['chromeos==1', { |
| 139 | 'sources!': [ |
[email protected] | fcd1e76 | 2012-07-11 14:43:50 | [diff] [blame] | 140 | 'proxy/proxy_config_service_linux_unittest.cc', |
[email protected] | f50278cd | 2010-08-24 17:34:08 | [diff] [blame] | 141 | ], |
| 142 | }], |
[email protected] | 2e53058 | 2012-10-20 00:28:35 | [diff] [blame] | 143 | [ 'OS == "android"', { |
| 144 | 'sources!': [ |
[email protected] | 8fddf1d | 2014-03-27 18:08:06 | [diff] [blame] | 145 | # See bug http://crbug.com/344533. |
| 146 | 'disk_cache/blockfile/index_table_v3_unittest.cc', |
[email protected] | 2e53058 | 2012-10-20 00:28:35 | [diff] [blame] | 147 | # 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] | 03a07b2e | 2013-02-11 20:13:45 | [diff] [blame] | 151 | 'dependencies': [ |
| 152 | 'net_javatests', |
| 153 | 'net_test_jni_headers', |
| 154 | ], |
[email protected] | 2e53058 | 2012-10-20 00:28:35 | [diff] [blame] | 155 | }], |
[email protected] | 5482ef9e | 2013-12-11 04:27:43 | [diff] [blame] | 156 | [ 'use_nss != 1', { |
| 157 | 'sources!': [ |
[email protected] | bd952f3a | 2014-04-10 05:10:58 | [diff] [blame] | 158 | 'ssl/client_cert_store_chromeos_unittest.cc', |
satorux | dd0840d3 | 2015-02-12 19:10:26 | [diff] [blame] | 159 | 'ssl/client_cert_store_nss_unittest.cc', |
[email protected] | 5482ef9e | 2013-12-11 04:27:43 | [diff] [blame] | 160 | ], |
| 161 | }], |
[email protected] | 1279de1 | 2013-12-03 15:13:32 | [diff] [blame] | 162 | [ 'use_openssl == 1', { |
| 163 | # Avoid compiling/linking with the system library. |
| 164 | 'dependencies': [ |
[email protected] | edfd0f4 | 2014-07-22 18:20:37 | [diff] [blame] | 165 | '../third_party/boringssl/boringssl.gyp:boringssl', |
[email protected] | 1279de1 | 2013-12-03 15:13:32 | [diff] [blame] | 166 | ], |
| 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 |
davidben | 15d69d48 | 2014-09-29 18:24:08 | [diff] [blame] | 174 | '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] | 1279de1 | 2013-12-03 15:13:32 | [diff] [blame] | 179 | 'sources!': [ |
| 180 | 'cert/nss_cert_database_unittest.cc', |
| 181 | ], |
| 182 | }], |
| 183 | ], |
| 184 | }], |
[email protected] | 10246a0 | 2012-07-30 15:15:01 | [diff] [blame] | 185 | [ 'os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', { |
[email protected] | d9df2b5 | 2009-12-10 12:06:15 | [diff] [blame] | 186 | 'conditions': [ |
[email protected] | 2fa89ef | 2014-05-07 18:45:59 | [diff] [blame] | 187 | ['use_allocator!="none"', { |
[email protected] | d9df2b5 | 2009-12-10 12:06:15 | [diff] [blame] | 188 | 'dependencies': [ |
| 189 | '../base/allocator/allocator.gyp:allocator', |
| 190 | ], |
| 191 | }], |
| 192 | ], |
| 193 | }], |
[email protected] | 9c210d9 | 2011-08-15 17:34:01 | [diff] [blame] | 194 | [ '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] | b098e1d8 | 2013-11-08 06:24:58 | [diff] [blame] | 206 | [ 'use_openssl == 1 or (desktop_linux == 0 and chromeos == 0 and OS != "ios")', { |
[email protected] | b3270fe | 2013-05-24 06:34:55 | [diff] [blame] | 207 | # 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] | 70372d4 | 2010-10-22 13:12:34 | [diff] [blame] | 213 | [ 'use_openssl==1', { |
[email protected] | f5c82e8 | 2013-11-19 04:23:10 | [diff] [blame] | 214 | # When building for OpenSSL, we need to exclude NSS specific tests |
| 215 | # or functionality not supported by OpenSSL yet. |
[email protected] | 70372d4 | 2010-10-22 13:12:34 | [diff] [blame] | 216 | # TODO(bulach): Add equivalent tests when the underlying |
| 217 | # functionality is ported to OpenSSL. |
[email protected] | b1c2a554 | 2010-10-08 12:44:40 | [diff] [blame] | 218 | 'sources!': [ |
[email protected] | bd952f3a | 2014-04-10 05:10:58 | [diff] [blame] | 219 | 'cert/nss_cert_database_chromeos_unittest.cc', |
satorux | dd0840d3 | 2015-02-12 19:10:26 | [diff] [blame] | 220 | 'cert/nss_cert_database_unittest.cc', |
[email protected] | bd952f3a | 2014-04-10 05:10:58 | [diff] [blame] | 221 | 'cert/nss_profile_filter_chromeos_unittest.cc', |
[email protected] | 6e7845ae | 2013-03-29 21:48:11 | [diff] [blame] | 222 | 'cert/x509_util_nss_unittest.cc', |
[email protected] | b06431078 | 2013-05-30 21:12:17 | [diff] [blame] | 223 | 'quic/test_tools/crypto_test_utils_nss.cc', |
[email protected] | b1c2a554 | 2010-10-08 12:44:40 | [diff] [blame] | 224 | ], |
davidben | 15d69d48 | 2014-09-29 18:24:08 | [diff] [blame] | 225 | }, { # else !use_openssl: remove the unneeded files and pull in NSS. |
[email protected] | 3c5f6db | 2011-10-18 01:47:04 | [diff] [blame] | 226 | 'sources!': [ |
[email protected] | 6e7845ae | 2013-03-29 21:48:11 | [diff] [blame] | 227 | 'cert/x509_util_openssl_unittest.cc', |
[email protected] | b06431078 | 2013-05-30 21:12:17 | [diff] [blame] | 228 | 'quic/test_tools/crypto_test_utils_openssl.cc', |
[email protected] | ede323ea | 2013-03-02 22:54:41 | [diff] [blame] | 229 | 'socket/ssl_client_socket_openssl_unittest.cc', |
[email protected] | 1279de1 | 2013-12-03 15:13:32 | [diff] [blame] | 230 | 'socket/ssl_session_cache_openssl_unittest.cc', |
[email protected] | 3c5f6db | 2011-10-18 01:47:04 | [diff] [blame] | 231 | ], |
[email protected] | b1c2a554 | 2010-10-08 12:44:40 | [diff] [blame] | 232 | }, |
| 233 | ], |
[email protected] | e1b2d73 | 2014-03-28 16:20:32 | [diff] [blame] | 234 | [ 'use_openssl_certs == 0', { |
| 235 | 'sources!': [ |
| 236 | 'ssl/openssl_client_key_store_unittest.cc', |
| 237 | ], |
| 238 | }], |
[email protected] | fe380ae | 2012-08-30 10:05:51 | [diff] [blame] | 239 | [ 'enable_websockets != 1', { |
| 240 | 'sources/': [ |
[email protected] | fe380ae | 2012-08-30 10:05:51 | [diff] [blame] | 241 | ['exclude', '^websockets/'], |
dgozman | a6e7009 | 2014-12-12 14:46:21 | [diff] [blame] | 242 | ['exclude', '^server/'], |
| 243 | ], |
| 244 | 'dependencies!': [ |
| 245 | 'http_server', |
[email protected] | fe380ae | 2012-08-30 10:05:51 | [diff] [blame] | 246 | ], |
| 247 | }], |
[email protected] | 02494ec | 2014-05-07 15:05:29 | [diff] [blame] | 248 | ['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] | 9bfe0ab | 2012-08-30 13:18:11 | [diff] [blame] | 254 | [ '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] | 33c81486 | 2012-09-18 15:16:03 | [diff] [blame] | 263 | [ '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] | 5ecf7cb28 | 2014-05-11 01:49:55 | [diff] [blame] | 270 | # 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] | ba7866b8 | 2012-09-07 14:22:27 | [diff] [blame] | 274 | 'dependencies': [ |
| 275 | 'net_with_v8', |
| 276 | ], |
| 277 | }, { # else: !use_v8_in_net |
| 278 | 'sources!': [ |
[email protected] | 501e2d4 | 2013-01-30 22:30:49 | [diff] [blame] | 279 | 'proxy/proxy_resolver_v8_tracing_unittest.cc', |
satorux | dd0840d3 | 2015-02-12 19:10:26 | [diff] [blame] | 280 | 'proxy/proxy_resolver_v8_unittest.cc', |
[email protected] | ba7866b8 | 2012-09-07 14:22:27 | [diff] [blame] | 281 | ], |
| 282 | }, |
| 283 | ], |
[email protected] | 4e09d24 | 2013-05-02 03:19:35 | [diff] [blame] | 284 | |
amistry | 7e6ebfdc8 | 2015-02-13 04:19:11 | [diff] [blame] | 285 | [ 'use_v8_in_net==1 and OS != "android"', { |
| 286 | 'dependencies': [ |
| 287 | 'net_with_v8', |
| 288 | 'net_browser_services', |
sammc | 5403aa1d | 2015-02-25 04:59:21 | [diff] [blame] | 289 | 'net_utility_services', |
amistry | 7e6ebfdc8 | 2015-02-13 04:19:11 | [diff] [blame] | 290 | '../third_party/mojo/mojo_edk.gyp:mojo_system_impl', |
| 291 | ], |
| 292 | }, { # else |
| 293 | 'sources!': [ |
sammc | 6ac3fe5 | 2015-02-25 06:00:28 | [diff] [blame] | 294 | 'dns/host_resolver_mojo_unittest.cc', |
amistry | 7e6ebfdc8 | 2015-02-13 04:19:11 | [diff] [blame] | 295 | 'dns/mojo_host_resolver_impl_unittest.cc', |
sammc | c804b53 | 2015-03-12 10:02:34 | [diff] [blame] | 296 | 'proxy/load_state_change_coalescer_unittest.cc', |
sammc | 352f749 | 2015-02-25 09:45:24 | [diff] [blame] | 297 | 'proxy/mojo_proxy_resolver_factory_impl_unittest.cc', |
sammc | 5403aa1d | 2015-02-25 04:59:21 | [diff] [blame] | 298 | 'proxy/mojo_proxy_resolver_impl_unittest.cc', |
amistry | 07ff140 | 2015-03-10 07:34:07 | [diff] [blame] | 299 | 'proxy/proxy_resolver_mojo_unittest.cc', |
amistry | 6e1ed1b | 2015-03-12 05:24:01 | [diff] [blame] | 300 | 'proxy/proxy_service_mojo_unittest.cc', |
amistry | 7e6ebfdc8 | 2015-02-13 04:19:11 | [diff] [blame] | 301 | ], |
| 302 | }, |
| 303 | ], |
| 304 | |
[email protected] | 4e09d24 | 2013-05-02 03:19:35 | [diff] [blame] | 305 | [ 'enable_mdns != 1', { |
| 306 | 'sources!' : [ |
[email protected] | f6a9add | 2013-05-23 00:56:36 | [diff] [blame] | 307 | 'dns/mdns_cache_unittest.cc', |
[email protected] | 245b164e | 2013-06-13 22:31:42 | [diff] [blame] | 308 | 'dns/mdns_client_unittest.cc', |
| 309 | 'dns/mdns_query_unittest.cc', |
[email protected] | 4e09d24 | 2013-05-02 03:19:35 | [diff] [blame] | 310 | 'dns/record_parsed_unittest.cc', |
| 311 | 'dns/record_rdata_unittest.cc', |
| 312 | ], |
| 313 | }], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 314 | [ 'OS == "win"', { |
[email protected] | 8372717 | 2010-06-04 17:58:08 | [diff] [blame] | 315 | 'sources!': [ |
[email protected] | d84316a | 2011-08-18 04:41:21 | [diff] [blame] | 316 | 'dns/dns_config_service_posix_unittest.cc', |
[email protected] | 8372717 | 2010-06-04 17:58:08 | [diff] [blame] | 317 | 'http/http_auth_gssapi_posix_unittest.cc', |
| 318 | ], |
davidben | 1b53bf6ea | 2014-11-05 22:38:41 | [diff] [blame] | 319 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 320 | 'msvs_disabled_warnings': [4267, ], |
[email protected] | 27be506 | 2014-01-24 01:00:41 | [diff] [blame] | 321 | '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] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 330 | }, |
| 331 | ], |
[email protected] | d415895 | 2012-09-18 09:04:33 | [diff] [blame] | 332 | [ 'OS == "ios"', { |
[email protected] | a414acf9 | 2012-10-02 11:25:57 | [diff] [blame] | 333 | 'actions': [ |
| 334 | { |
| 335 | 'action_name': 'copy_test_data', |
| 336 | 'variables': { |
| 337 | 'test_data_files': [ |
| 338 | 'data/ssl/certificates/', |
[email protected] | 938347e | 2013-05-20 16:45:38 | [diff] [blame] | 339 | 'data/test.html', |
[email protected] | a414acf9 | 2012-10-02 11:25:57 | [diff] [blame] | 340 | '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] | a414acf9 | 2012-10-02 11:25:57 | [diff] [blame] | 352 | 'disk_cache/backend_unittest.cc', |
[email protected] | 80422f32 | 2014-03-03 20:28:14 | [diff] [blame] | 353 | 'disk_cache/blockfile/block_files_unittest.cc', |
[email protected] | ed60cb3 | 2014-02-04 00:57:28 | [diff] [blame] | 354 | # Need to read input data files. |
| 355 | 'filter/gzip_filter_unittest.cc', |
[email protected] | a414acf9 | 2012-10-02 11:25:57 | [diff] [blame] | 356 | # Need TestServer. |
| 357 | 'proxy/proxy_script_fetcher_impl_unittest.cc', |
| 358 | 'socket/ssl_client_socket_unittest.cc', |
satorux | eef164ef | 2015-02-16 01:39:34 | [diff] [blame] | 359 | 'socket/ssl_server_socket_unittest.cc', |
| 360 | 'spdy/fuzzing/hpack_fuzz_util_test.cc', |
[email protected] | a414acf9 | 2012-10-02 11:25:57 | [diff] [blame] | 361 | # Needs GetAppOutput(). |
| 362 | 'test/python_utils_unittest.cc', |
satorux | eef164ef | 2015-02-16 01:39:34 | [diff] [blame] | 363 | 'url_request/url_fetcher_impl_unittest.cc', |
| 364 | 'url_request/url_request_context_builder_unittest.cc', |
[email protected] | a414acf9 | 2012-10-02 11:25:57 | [diff] [blame] | 365 | |
| 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] | 518c63a | 2014-07-24 03:51:23 | [diff] [blame] | 369 | '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] | df53da8 | 2014-02-18 22:27:17 | [diff] [blame] | 372 | |
[email protected] | 8fddf1d | 2014-03-27 18:08:06 | [diff] [blame] | 373 | # See bug http://crbug.com/344533. |
| 374 | 'disk_cache/blockfile/index_table_v3_unittest.cc', |
[email protected] | d415895 | 2012-09-18 09:04:33 | [diff] [blame] | 375 | ], |
[email protected] | eb6d239 | 2012-08-02 11:28:23 | [diff] [blame] | 376 | }], |
[email protected] | ae7c9f4 | 2011-11-21 11:41:16 | [diff] [blame] | 377 | [ 'OS == "android"', { |
[email protected] | ae7c9f4 | 2011-11-21 11:41:16 | [diff] [blame] | 378 | 'sources!': [ |
| 379 | 'dns/dns_config_service_posix_unittest.cc', |
| 380 | ], |
| 381 | }, |
| 382 | ], |
[email protected] | 87a8085 | 2014-05-17 16:09:58 | [diff] [blame] | 383 | ['OS == "android"', { |
[email protected] | 5ecf7cb28 | 2014-05-11 01:49:55 | [diff] [blame] | 384 | # TODO(mmenke): This depends on test_support_base, which depends on |
| 385 | # icu. Figure out a way to remove that dependency. |
[email protected] | a44d121 | 2012-05-25 20:17:49 | [diff] [blame] | 386 | 'dependencies': [ |
| 387 | '../testing/android/native_test.gyp:native_test_native_code', |
[email protected] | b397b06 | 2012-06-26 19:33:28 | [diff] [blame] | 388 | ] |
[email protected] | a44d121 | 2012-05-25 20:17:49 | [diff] [blame] | 389 | }], |
[email protected] | 5ecf7cb28 | 2014-05-11 01:49:55 | [diff] [blame] | 390 | [ '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 | ], |
baixo | 3a3c88a | 2014-10-28 11:52:21 | [diff] [blame] | 400 | ['v8_use_external_startup_data==1', { |
| 401 | 'dependencies': [ |
| 402 | '../gin/gin.gyp:gin', |
| 403 | ] |
| 404 | }], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 405 | ], |
[email protected] | b1874a878 | 2014-02-10 21:36:25 | [diff] [blame] | 406 | '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 | }], |
droger | f83b9126 | 2015-03-05 19:45:19 | [diff] [blame] | 416 | ['OS == "ios"', { |
| 417 | 'sources/': [ |
| 418 | ['include', '^base/mac/url_conversions_unittest\\.mm$'], |
| 419 | ], |
| 420 | }], |
[email protected] | b1874a878 | 2014-02-10 21:36:25 | [diff] [blame] | 421 | ], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 422 | }, |
| 423 | { |
| 424 | 'target_name': 'net_perftests', |
| 425 | 'type': 'executable', |
| 426 | 'dependencies': [ |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 427 | '../base/base.gyp:base', |
[email protected] | d34d79f | 2009-10-14 22:06:14 | [diff] [blame] | 428 | '../base/base.gyp:base_i18n', |
[email protected] | 7d1ba939 | 2009-08-03 18:35:06 | [diff] [blame] | 429 | '../base/base.gyp:test_support_perf', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 430 | '../testing/gtest.gyp:gtest', |
[email protected] | 002cc08f | 2013-06-03 05:40:29 | [diff] [blame] | 431 | '../url/url.gyp:url_lib', |
[email protected] | eb6d239 | 2012-08-02 11:28:23 | [diff] [blame] | 432 | 'net', |
| 433 | 'net_test_support', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 434 | ], |
| 435 | 'sources': [ |
[email protected] | 63ee33bd | 2012-03-15 09:29:58 | [diff] [blame] | 436 | 'cookies/cookie_monster_perftest.cc', |
[email protected] | c2c5cfc | 2014-03-03 16:35:28 | [diff] [blame] | 437 | 'disk_cache/blockfile/disk_cache_perftest.cc', |
[email protected] | 448cfef8 | 2009-03-06 01:44:33 | [diff] [blame] | 438 | 'proxy/proxy_resolver_perftest.cc', |
hclam | 5a5ee68 | 2015-02-05 04:18:22 | [diff] [blame] | 439 | 'udp/udp_socket_perftest.cc', |
ricea | b2ab006 | 2014-09-01 09:59:59 | [diff] [blame] | 440 | 'websockets/websocket_frame_perftest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 441 | ], |
| 442 | 'conditions': [ |
[email protected] | ba7866b8 | 2012-09-07 14:22:27 | [diff] [blame] | 443 | [ '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] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 453 | [ 'OS == "win"', { |
[email protected] | 27be506 | 2014-01-24 01:00:41 | [diff] [blame] | 454 | '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] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 462 | ], |
[email protected] | 9dcec24 | 2013-01-10 23:24:28 | [diff] [blame] | 463 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 464 | 'msvs_disabled_warnings': [4267, ], |
[email protected] | 27be506 | 2014-01-24 01:00:41 | [diff] [blame] | 465 | }], |
ricea | b2ab006 | 2014-09-01 09:59:59 | [diff] [blame] | 466 | [ 'enable_websockets != 1', { |
| 467 | 'sources!': [ |
| 468 | 'websockets/websocket_frame_perftest.cc', |
| 469 | ], |
| 470 | }], |
[email protected] | f9ff629f | 2010-09-03 23:54:36 | [diff] [blame] | 471 | ], |
| 472 | }, |
| 473 | { |
[email protected] | 6718b41 | 2009-03-04 18:26:00 | [diff] [blame] | 474 | 'target_name': 'net_test_support', |
[email protected] | 5a54733 | 2011-05-19 23:18:53 | [diff] [blame] | 475 | 'type': 'static_library', |
[email protected] | 6718b41 | 2009-03-04 18:26:00 | [diff] [blame] | 476 | 'dependencies': [ |
[email protected] | 6718b41 | 2009-03-04 18:26:00 | [diff] [blame] | 477 | '../base/base.gyp:base', |
[email protected] | 5f38d71 | 2010-10-26 06:46:59 | [diff] [blame] | 478 | '../base/base.gyp:test_support_base', |
Nico Weber | ab309030 | 2015-01-19 06:14:43 | [diff] [blame] | 479 | '../crypto/crypto.gyp:crypto', |
[email protected] | ed32c21 | 2013-05-14 20:49:29 | [diff] [blame] | 480 | '../net/tools/tld_cleanup/tld_cleanup.gyp:tld_cleanup_util', |
[email protected] | ff007e16 | 2009-05-23 09:13:15 | [diff] [blame] | 481 | '../testing/gtest.gyp:gtest', |
[email protected] | f22f316b | 2013-06-21 05:26:18 | [diff] [blame] | 482 | '../testing/gmock.gyp:gmock', |
[email protected] | 002cc08f | 2013-06-03 05:40:29 | [diff] [blame] | 483 | '../url/url.gyp:url_lib', |
[email protected] | eb6d239 | 2012-08-02 11:28:23 | [diff] [blame] | 484 | 'net', |
[email protected] | 6718b41 | 2009-03-04 18:26:00 | [diff] [blame] | 485 | ], |
[email protected] | 4473860 | 2012-03-02 22:56:01 | [diff] [blame] | 486 | 'export_dependent_settings': [ |
| 487 | '../base/base.gyp:base', |
[email protected] | 5ecf7cb28 | 2014-05-11 01:49:55 | [diff] [blame] | 488 | # TODO(mmenke): This depends on icu, figure out a way to build tests |
| 489 | # without icu. |
[email protected] | 4473860 | 2012-03-02 22:56:01 | [diff] [blame] | 490 | '../base/base.gyp:test_support_base', |
| 491 | '../testing/gtest.gyp:gtest', |
[email protected] | f22f316b | 2013-06-21 05:26:18 | [diff] [blame] | 492 | '../testing/gmock.gyp:gmock', |
[email protected] | 4473860 | 2012-03-02 22:56:01 | [diff] [blame] | 493 | ], |
[email protected] | 6718b41 | 2009-03-04 18:26:00 | [diff] [blame] | 494 | 'sources': [ |
mmenke | 9e4ea8fe | 2014-11-19 23:12:30 | [diff] [blame] | 495 | 'base/captured_net_log_entry.cc', |
| 496 | 'base/captured_net_log_entry.h', |
[email protected] | 34e375de | 2012-06-08 19:58:45 | [diff] [blame] | 497 | 'base/capturing_net_log.cc', |
| 498 | 'base/capturing_net_log.h', |
mmenke | 9e4ea8fe | 2014-11-19 23:12:30 | [diff] [blame] | 499 | 'base/capturing_net_log_observer.cc', |
| 500 | 'base/capturing_net_log_observer.h', |
[email protected] | b258e079 | 2013-01-12 07:11:59 | [diff] [blame] | 501 | 'base/load_timing_info_test_util.cc', |
| 502 | 'base/load_timing_info_test_util.h', |
[email protected] | 47a881b | 2011-08-29 22:59:21 | [diff] [blame] | 503 | 'base/mock_file_stream.cc', |
| 504 | 'base/mock_file_stream.h', |
[email protected] | ad74a59 | 2011-01-21 18:40:55 | [diff] [blame] | 505 | 'base/test_completion_callback.cc', |
| 506 | 'base/test_completion_callback.h', |
[email protected] | 42fdb45 | 2012-11-01 12:44:40 | [diff] [blame] | 507 | 'base/test_data_directory.cc', |
| 508 | 'base/test_data_directory.h', |
[email protected] | 6e7845ae | 2013-03-29 21:48:11 | [diff] [blame] | 509 | 'cert/mock_cert_verifier.cc', |
| 510 | 'cert/mock_cert_verifier.h', |
[email protected] | 63ee33bd | 2012-03-15 09:29:58 | [diff] [blame] | 511 | '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] | 79b3fec | 2011-11-15 22:33:47 | [diff] [blame] | 517 | 'disk_cache/disk_cache_test_base.cc', |
| 518 | 'disk_cache/disk_cache_test_base.h', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 519 | 'disk_cache/disk_cache_test_util.cc', |
[email protected] | 6718b41 | 2009-03-04 18:26:00 | [diff] [blame] | 520 | 'disk_cache/disk_cache_test_util.h', |
[email protected] | 78eac2a | 2012-03-14 19:09:27 | [diff] [blame] | 521 | 'dns/dns_test_util.cc', |
[email protected] | 4b0112ab | 2011-07-22 15:58:20 | [diff] [blame] | 522 | 'dns/dns_test_util.h', |
[email protected] | f2cb3cf | 2013-03-21 01:40:53 | [diff] [blame] | 523 | 'dns/mock_host_resolver.cc', |
| 524 | 'dns/mock_host_resolver.h', |
[email protected] | f22f316b | 2013-06-21 05:26:18 | [diff] [blame] | 525 | 'dns/mock_mdns_socket_factory.cc', |
| 526 | 'dns/mock_mdns_socket_factory.h', |
[email protected] | c41737d | 2014-05-14 07:47:19 | [diff] [blame] | 527 | 'http/http_transaction_test_util.cc', |
| 528 | 'http/http_transaction_test_util.h', |
[email protected] | b6ce91b | 2011-02-10 21:30:50 | [diff] [blame] | 529 | 'proxy/mock_proxy_resolver.cc', |
| 530 | 'proxy/mock_proxy_resolver.h', |
[email protected] | 7258def | 2011-05-17 19:53:00 | [diff] [blame] | 531 | 'proxy/mock_proxy_script_fetcher.cc', |
| 532 | 'proxy/mock_proxy_script_fetcher.h', |
[email protected] | ab501a6a | 2009-05-12 15:07:50 | [diff] [blame] | 533 | 'proxy/proxy_config_service_common_unittest.cc', |
| 534 | 'proxy/proxy_config_service_common_unittest.h', |
[email protected] | f7984fc6 | 2009-06-22 23:26:44 | [diff] [blame] | 535 | 'socket/socket_test_util.cc', |
| 536 | 'socket/socket_test_util.h', |
[email protected] | 6e7845ae | 2013-03-29 21:48:11 | [diff] [blame] | 537 | 'test/cert_test_util.cc', |
| 538 | 'test/cert_test_util.h', |
[email protected] | 83e1ae3 | 2014-07-18 10:57:07 | [diff] [blame] | 539 | 'test/cert_test_util_nss.cc', |
[email protected] | 95ac16b | 2013-11-01 01:42:03 | [diff] [blame] | 540 | 'test/ct_test_util.cc', |
| 541 | 'test/ct_test_util.h', |
[email protected] | eb7388f | 2013-05-09 17:00:26 | [diff] [blame] | 542 | 'test/embedded_test_server/embedded_test_server.cc', |
| 543 | 'test/embedded_test_server/embedded_test_server.h', |
[email protected] | b6e5b6c6 | 2013-05-07 17:50:26 | [diff] [blame] | 544 | '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', |
sammc | 6ac3fe5 | 2015-02-25 06:00:28 | [diff] [blame] | 550 | 'test/event_waiter.h', |
[email protected] | 8efa4ba4 | 2013-03-18 21:14:14 | [diff] [blame] | 551 | 'test/net_test_suite.cc', |
| 552 | 'test/net_test_suite.h', |
[email protected] | 9af13ce | 2010-09-16 21:45:48 | [diff] [blame] | 553 | 'test/python_utils.cc', |
[email protected] | a44d121 | 2012-05-25 20:17:49 | [diff] [blame] | 554 | 'test/python_utils.h', |
[email protected] | 89b3252 | 2013-05-07 20:04:21 | [diff] [blame] | 555 | 'test/spawned_test_server/base_test_server.cc', |
| 556 | 'test/spawned_test_server/base_test_server.h', |
[email protected] | 89b3252 | 2013-05-07 20:04:21 | [diff] [blame] | 557 | 'test/spawned_test_server/local_test_server.cc', |
| 558 | 'test/spawned_test_server/local_test_server.h', |
satorux | dd0840d3 | 2015-02-12 19:10:26 | [diff] [blame] | 559 | 'test/spawned_test_server/local_test_server_posix.cc', |
| 560 | 'test/spawned_test_server/local_test_server_win.cc', |
[email protected] | 89b3252 | 2013-05-07 20:04:21 | [diff] [blame] | 561 | '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', |
xunjieli | 2906f15 | 2014-09-12 00:08:23 | [diff] [blame] | 566 | 'test/url_request/url_request_failed_job.cc', |
| 567 | 'test/url_request/url_request_failed_job.h', |
mef | 3e826cf | 2014-12-13 18:40:40 | [diff] [blame] | 568 | 'test/url_request/url_request_mock_data_job.cc', |
| 569 | 'test/url_request/url_request_mock_data_job.h', |
xunjieli | 0332c19 | 2014-09-10 23:23:31 | [diff] [blame] | 570 | 'test/url_request/url_request_mock_http_job.cc', |
| 571 | 'test/url_request/url_request_mock_http_job.h', |
jam | 8e45cd7 | 2015-01-20 16:33:44 | [diff] [blame] | 572 | 'test/url_request/url_request_slow_download_job.cc', |
| 573 | 'test/url_request/url_request_slow_download_job.h', |
[email protected] | 8f2d8bdd | 2012-06-19 23:44:05 | [diff] [blame] | 574 | 'url_request/test_url_fetcher_factory.cc', |
| 575 | 'url_request/test_url_fetcher_factory.h', |
tommycli | eaae5d9 | 2014-09-09 06:03:47 | [diff] [blame] | 576 | 'url_request/test_url_request_interceptor.cc', |
| 577 | 'url_request/test_url_request_interceptor.h', |
[email protected] | d2db029 | 2011-01-26 20:23:44 | [diff] [blame] | 578 | 'url_request/url_request_test_util.cc', |
| 579 | 'url_request/url_request_test_util.h', |
[email protected] | 702a6a72 | 2010-03-17 18:24:51 | [diff] [blame] | 580 | ], |
| 581 | 'conditions': [ |
[email protected] | 0dc310a3 | 2013-05-08 23:52:44 | [diff] [blame] | 582 | ['OS != "ios"', { |
[email protected] | 6c204656 | 2010-05-07 23:47:50 | [diff] [blame] | 583 | 'dependencies': [ |
[email protected] | 9cac94e | 2010-10-01 16:35:12 | [diff] [blame] | 584 | '../third_party/protobuf/protobuf.gyp:py_proto', |
[email protected] | 6c204656 | 2010-05-07 23:47:50 | [diff] [blame] | 585 | ], |
| 586 | }], |
davidben | 15d69d48 | 2014-09-29 18:24:08 | [diff] [blame] | 587 | ['use_openssl == 0 and (use_nss == 1 or OS == "ios")', { |
[email protected] | 70372d4 | 2010-10-22 13:12:34 | [diff] [blame] | 588 | 'conditions': [ |
davidben | 15d69d48 | 2014-09-29 18:24:08 | [diff] [blame] | 589 | [ 'desktop_linux == 1 or chromeos == 1', { |
[email protected] | 70372d4 | 2010-10-22 13:12:34 | [diff] [blame] | 590 | 'dependencies': [ |
[email protected] | 638e9df4 | 2011-05-31 17:19:30 | [diff] [blame] | 591 | '../build/linux/system.gyp:ssl', |
[email protected] | 70372d4 | 2010-10-22 13:12:34 | [diff] [blame] | 592 | ], |
davidben | 15d69d48 | 2014-09-29 18:24:08 | [diff] [blame] | 593 | }, { # 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] | 70372d4 | 2010-10-22 13:12:34 | [diff] [blame] | 599 | }], |
[email protected] | 702a6a72 | 2010-03-17 18:24:51 | [diff] [blame] | 600 | ], |
| 601 | }], |
[email protected] | 10246a0 | 2012-07-30 15:15:01 | [diff] [blame] | 602 | ['os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', { |
[email protected] | 8543761 | 2010-03-22 11:55:23 | [diff] [blame] | 603 | 'conditions': [ |
[email protected] | 2fa89ef | 2014-05-07 18:45:59 | [diff] [blame] | 604 | ['use_allocator!="none"', { |
[email protected] | 8543761 | 2010-03-22 11:55:23 | [diff] [blame] | 605 | 'dependencies': [ |
| 606 | '../base/allocator/allocator.gyp:allocator', |
| 607 | ], |
| 608 | }], |
| 609 | ], |
| 610 | }], |
[email protected] | 3152682 | 2012-03-12 06:04:43 | [diff] [blame] | 611 | ['OS != "android"', { |
| 612 | 'sources!': [ |
[email protected] | 89b3252 | 2013-05-07 20:04:21 | [diff] [blame] | 613 | '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] | 3152682 | 2012-03-12 06:04:43 | [diff] [blame] | 617 | ], |
| 618 | }], |
[email protected] | ba7866b8 | 2012-09-07 14:22:27 | [diff] [blame] | 619 | [ 'use_v8_in_net==1', { |
| 620 | 'dependencies': [ |
| 621 | 'net_with_v8', |
| 622 | ], |
| 623 | }, |
| 624 | ], |
[email protected] | f22f316b | 2013-06-21 05:26:18 | [diff] [blame] | 625 | [ 'enable_mdns != 1', { |
| 626 | 'sources!' : [ |
| 627 | 'dns/mock_mdns_socket_factory.cc', |
| 628 | 'dns/mock_mdns_socket_factory.h' |
| 629 | ] |
| 630 | }], |
[email protected] | 83e1ae3 | 2014-07-18 10:57:07 | [diff] [blame] | 631 | [ 'use_nss != 1', { |
| 632 | 'sources!': [ |
| 633 | 'test/cert_test_util_nss.cc', |
| 634 | ], |
| 635 | }], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 636 | ], |
[email protected] | 9dcec24 | 2013-01-10 23:24:28 | [diff] [blame] | 637 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 638 | 'msvs_disabled_warnings': [4267, ], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 639 | }, |
[email protected] | ef36c74c | 2009-03-11 13:32:22 | [diff] [blame] | 640 | { |
| 641 | 'target_name': 'net_resources', |
| 642 | 'type': 'none', |
[email protected] | 5b91087 | 2010-02-09 01:03:02 | [diff] [blame] | 643 | 'variables': { |
[email protected] | 4de39f8 | 2011-03-28 12:01:29 | [diff] [blame] | 644 | 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/net', |
[email protected] | 5b91087 | 2010-02-09 01:03:02 | [diff] [blame] | 645 | }, |
[email protected] | 4de39f8 | 2011-03-28 12:01:29 | [diff] [blame] | 646 | 'actions': [ |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 647 | { |
[email protected] | 4de39f8 | 2011-03-28 12:01:29 | [diff] [blame] | 648 | 'action_name': 'net_resources', |
| 649 | 'variables': { |
| 650 | 'grit_grd_file': 'base/net_resources.grd', |
| 651 | }, |
| 652 | 'includes': [ '../build/grit_action.gypi' ], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 653 | }, |
[email protected] | 6718b41 | 2009-03-04 18:26:00 | [diff] [blame] | 654 | ], |
[email protected] | ef36c74c | 2009-03-11 13:32:22 | [diff] [blame] | 655 | }, |
[email protected] | 75b91f9 | 2009-06-17 07:28:48 | [diff] [blame] | 656 | { |
mef | 327a8e4 | 2014-08-29 17:10:03 | [diff] [blame] | 657 | '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 | { |
ttuttle | a898dd4 | 2015-02-24 18:07:47 | [diff] [blame] | 670 | '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] | a33721a | 2011-02-03 17:23:24 | [diff] [blame] | 698 | 'target_name': 'http_server', |
[email protected] | 5a54733 | 2011-05-19 23:18:53 | [diff] [blame] | 699 | 'type': 'static_library', |
[email protected] | 8df769e | 2011-11-09 23:08:54 | [diff] [blame] | 700 | 'variables': { 'enable_wexit_time_destructors': 1, }, |
[email protected] | 0569d86 | 2010-07-05 11:32:40 | [diff] [blame] | 701 | 'dependencies': [ |
[email protected] | 0569d86 | 2010-07-05 11:32:40 | [diff] [blame] | 702 | '../base/base.gyp:base', |
[email protected] | eb6d239 | 2012-08-02 11:28:23 | [diff] [blame] | 703 | 'net', |
[email protected] | 0569d86 | 2010-07-05 11:32:40 | [diff] [blame] | 704 | ], |
[email protected] | 0569d86 | 2010-07-05 11:32:40 | [diff] [blame] | 705 | 'sources': [ |
[email protected] | 86c6a0b5 | 2011-08-02 19:49:25 | [diff] [blame] | 706 | 'server/http_connection.cc', |
| 707 | 'server/http_connection.h', |
[email protected] | a33721a | 2011-02-03 17:23:24 | [diff] [blame] | 708 | 'server/http_server.cc', |
| 709 | 'server/http_server.h', |
[email protected] | 1889dc1b | 2010-10-14 22:03:13 | [diff] [blame] | 710 | 'server/http_server_request_info.cc', |
[email protected] | 0569d86 | 2010-07-05 11:32:40 | [diff] [blame] | 711 | 'server/http_server_request_info.h', |
[email protected] | c700fd15 | 2013-07-23 21:29:11 | [diff] [blame] | 712 | 'server/http_server_response_info.cc', |
| 713 | 'server/http_server_response_info.h', |
[email protected] | 86c6a0b5 | 2011-08-02 19:49:25 | [diff] [blame] | 714 | 'server/web_socket.cc', |
| 715 | 'server/web_socket.h', |
dgozman | a6e7009 | 2014-12-12 14:46:21 | [diff] [blame] | 716 | 'server/web_socket_encoder.cc', |
| 717 | 'server/web_socket_encoder.h', |
[email protected] | 0569d86 | 2010-07-05 11:32:40 | [diff] [blame] | 718 | ], |
[email protected] | 9dcec24 | 2013-01-10 23:24:28 | [diff] [blame] | 719 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 720 | 'msvs_disabled_warnings': [4267, ], |
[email protected] | 0569d86 | 2010-07-05 11:32:40 | [diff] [blame] | 721 | }, |
[email protected] | 27675c8 | 2012-11-29 16:34:45 | [diff] [blame] | 722 | { |
[email protected] | 8f659420 | 2014-06-11 14:44:25 | [diff] [blame] | 723 | '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] | ad83abaa | 2014-06-17 01:08:46 | [diff] [blame] | 746 | 'tools/quic/spdy_utils.cc', |
| 747 | 'tools/quic/spdy_utils.h', |
[email protected] | 8f659420 | 2014-06-11 14:44:25 | [diff] [blame] | 748 | ], |
| 749 | }, |
| 750 | { |
[email protected] | 27675c8 | 2012-11-29 16:34:45 | [diff] [blame] | 751 | '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] | 27675c8 | 2012-11-29 16:34:45 | [diff] [blame] | 766 | 'tools/dump_cache/url_to_filename_encoder.cc', |
| 767 | 'tools/dump_cache/url_to_filename_encoder.h', |
[email protected] | 27675c8 | 2012-11-29 16:34:45 | [diff] [blame] | 768 | 'tools/dump_cache/url_utilities.cc', |
satorux | dd0840d3 | 2015-02-12 19:10:26 | [diff] [blame] | 769 | 'tools/dump_cache/url_utilities.h', |
[email protected] | 27675c8 | 2012-11-29 16:34:45 | [diff] [blame] | 770 | ], |
[email protected] | 9dcec24 | 2013-01-10 23:24:28 | [diff] [blame] | 771 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 772 | 'msvs_disabled_warnings': [4267, ], |
[email protected] | 27675c8 | 2012-11-29 16:34:45 | [diff] [blame] | 773 | }, |
[email protected] | ceeaac79 | 2014-06-25 05:14:43 | [diff] [blame] | 774 | { |
rch | 47ad01f | 2015-03-20 21:17:23 | [diff] [blame] | 775 | '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': [ |
rch | c99f380c | 2015-03-26 19:50:56 | [diff] [blame] | 784 | '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', |
rch | 0e94547 | 2015-03-26 15:19:21 | [diff] [blame] | 788 | 'tools/quic/quic_in_memory_cache.cc', |
| 789 | 'tools/quic/quic_in_memory_cache.h', |
rch | c99f380c | 2015-03-26 19:50:56 | [diff] [blame] | 790 | 'tools/quic/quic_per_connection_packet_writer.cc', |
| 791 | 'tools/quic/quic_per_connection_packet_writer.h', |
rch | 0e94547 | 2015-03-26 15:19:21 | [diff] [blame] | 792 | 'tools/quic/quic_server_session.cc', |
| 793 | 'tools/quic/quic_server_session.h', |
rch | 47ad01f | 2015-03-20 21:17:23 | [diff] [blame] | 794 | 'tools/quic/quic_simple_client.cc', |
| 795 | 'tools/quic/quic_simple_client.h', |
rch | 216445c | 2015-03-27 00:23:28 | [diff] [blame] | 796 | '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', |
rch | ed113b2 | 2015-03-26 04:54:05 | [diff] [blame] | 802 | 'tools/quic/quic_spdy_client_stream.cc', |
| 803 | 'tools/quic/quic_spdy_client_stream.h', |
rch | 0e94547 | 2015-03-26 15:19:21 | [diff] [blame] | 804 | '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', |
rch | da78df5a | 2015-03-22 05:16:37 | [diff] [blame] | 808 | 'tools/quic/synchronous_host_resolver.cc', |
| 809 | 'tools/quic/synchronous_host_resolver.h', |
rch | 47ad01f | 2015-03-20 21:17:23 | [diff] [blame] | 810 | ], |
| 811 | }, |
[email protected] | ef36c74c | 2009-03-11 13:32:22 | [diff] [blame] | 812 | ], |
| 813 | 'conditions': [ |
[email protected] | ba7866b8 | 2012-09-07 14:22:27 | [diff] [blame] | 814 | ['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] | 6b395fe | 2014-04-08 23:58:15 | [diff] [blame] | 822 | '../gin/gin.gyp:gin', |
[email protected] | 002cc08f | 2013-06-03 05:40:29 | [diff] [blame] | 823 | '../url/url.gyp:url_lib', |
[email protected] | ba7866b8 | 2012-09-07 14:22:27 | [diff] [blame] | 824 | '../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] | 501e2d4 | 2013-01-30 22:30:49 | [diff] [blame] | 833 | 'proxy/proxy_resolver_v8_tracing.cc', |
| 834 | 'proxy/proxy_resolver_v8_tracing.h', |
[email protected] | ba7866b8 | 2012-09-07 14:22:27 | [diff] [blame] | 835 | 'proxy/proxy_service_v8.cc', |
| 836 | 'proxy/proxy_service_v8.h', |
| 837 | ], |
[email protected] | 9dcec24 | 2013-01-10 23:24:28 | [diff] [blame] | 838 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 839 | 'msvs_disabled_warnings': [4267, ], |
[email protected] | ba7866b8 | 2012-09-07 14:22:27 | [diff] [blame] | 840 | }, |
| 841 | ], |
| 842 | }], |
amistry | aa16ad2 | 2015-02-04 09:01:47 | [diff] [blame] | 843 | ['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 | }, |
amistry | 7e6ebfdc8 | 2015-02-13 04:19:11 | [diff] [blame] | 857 | { |
| 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', |
amistry | 6e1ed1b | 2015-03-12 05:24:01 | [diff] [blame] | 864 | 'proxy/in_process_mojo_proxy_resolver_factory.cc', |
| 865 | 'proxy/in_process_mojo_proxy_resolver_factory.h', |
amistry | 07ff140 | 2015-03-10 07:34:07 | [diff] [blame] | 866 | 'proxy/mojo_proxy_resolver_factory.h', |
| 867 | 'proxy/proxy_resolver_mojo.cc', |
| 868 | 'proxy/proxy_resolver_mojo.h', |
amistry | 6e1ed1b | 2015-03-12 05:24:01 | [diff] [blame] | 869 | 'proxy/proxy_service_mojo.cc', |
| 870 | 'proxy/proxy_service_mojo.h', |
amistry | 7e6ebfdc8 | 2015-02-13 04:19:11 | [diff] [blame] | 871 | ], |
| 872 | 'dependencies': [ |
| 873 | 'mojo_type_converters', |
| 874 | 'net', |
| 875 | 'net_interfaces', |
amistry | 07ff140 | 2015-03-10 07:34:07 | [diff] [blame] | 876 | '../mojo/mojo_base.gyp:mojo_common_lib', |
amistry | 7e6ebfdc8 | 2015-02-13 04:19:11 | [diff] [blame] | 877 | '../mojo/mojo_base.gyp:mojo_environment_chromium', |
amistry | 07ff140 | 2015-03-10 07:34:07 | [diff] [blame] | 878 | '../mojo/mojo_base.gyp:mojo_url_type_converters', |
amistry | 7e6ebfdc8 | 2015-02-13 04:19:11 | [diff] [blame] | 879 | '../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings', |
amistry | 6e1ed1b | 2015-03-12 05:24:01 | [diff] [blame] | 880 | |
| 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', |
amistry | 7e6ebfdc8 | 2015-02-13 04:19:11 | [diff] [blame] | 887 | ], |
| 888 | }, |
| 889 | { |
sammc | 5403aa1d | 2015-02-25 04:59:21 | [diff] [blame] | 890 | # GN version: //net:net_utility_services |
| 891 | 'target_name': 'net_utility_services', |
| 892 | 'type': 'static_library', |
| 893 | 'sources': [ |
sammc | 6ac3fe5 | 2015-02-25 06:00:28 | [diff] [blame] | 894 | 'dns/host_resolver_mojo.cc', |
| 895 | 'dns/host_resolver_mojo.h', |
sammc | c804b53 | 2015-03-12 10:02:34 | [diff] [blame] | 896 | 'proxy/load_state_change_coalescer.cc', |
| 897 | 'proxy/load_state_change_coalescer.h', |
sammc | 352f749 | 2015-02-25 09:45:24 | [diff] [blame] | 898 | 'proxy/mojo_proxy_resolver_factory_impl.cc', |
| 899 | 'proxy/mojo_proxy_resolver_factory_impl.h', |
sammc | 5403aa1d | 2015-02-25 04:59:21 | [diff] [blame] | 900 | 'proxy/mojo_proxy_resolver_impl.cc', |
| 901 | 'proxy/mojo_proxy_resolver_impl.h', |
| 902 | ], |
| 903 | 'dependencies': [ |
| 904 | 'mojo_type_converters', |
sammc | 5403aa1d | 2015-02-25 04:59:21 | [diff] [blame] | 905 | 'net_interfaces', |
amistry | b91865c | 2015-03-06 08:50:36 | [diff] [blame] | 906 | 'net_with_v8', |
morrita | 9e8f56a | 2015-03-05 20:30:05 | [diff] [blame] | 907 | '../mojo/mojo_base.gyp:mojo_url_type_converters', |
sammc | 5403aa1d | 2015-02-25 04:59:21 | [diff] [blame] | 908 | '../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings', |
| 909 | ], |
| 910 | }, |
| 911 | { |
amistry | 7e6ebfdc8 | 2015-02-13 04:19:11 | [diff] [blame] | 912 | # GN version: //net:mojo_type_converters |
| 913 | 'target_name': 'mojo_type_converters', |
| 914 | 'type': 'static_library', |
| 915 | 'sources': [ |
amistry | 7ec5811 | 2015-02-26 06:03:00 | [diff] [blame] | 916 | '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', |
amistry | 7e6ebfdc8 | 2015-02-13 04:19:11 | [diff] [blame] | 920 | ], |
| 921 | 'dependencies': [ |
| 922 | 'net', |
| 923 | 'net_interfaces', |
| 924 | '../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings', |
| 925 | ], |
| 926 | }, |
amistry | aa16ad2 | 2015-02-04 09:01:47 | [diff] [blame] | 927 | ], |
| 928 | }], |
[email protected] | 3f55cf8 | 2014-01-24 04:32:18 | [diff] [blame] | 929 | ['OS != "ios" and OS != "android"', { |
[email protected] | 10246a0 | 2012-07-30 15:15:01 | [diff] [blame] | 930 | 'targets': [ |
| 931 | # iOS doesn't have the concept of simple executables, these targets |
| 932 | # can't be compiled on the platform. |
| 933 | { |
[email protected] | eb6d239 | 2012-08-02 11:28:23 | [diff] [blame] | 934 | '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] | 9dcec24 | 2013-01-10 23:24:28 | [diff] [blame] | 944 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 945 | 'msvs_disabled_warnings': [4267, ], |
[email protected] | eb6d239 | 2012-08-02 11:28:23 | [diff] [blame] | 946 | }, |
| 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] | 9dcec24 | 2013-01-10 23:24:28 | [diff] [blame] | 957 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 958 | 'msvs_disabled_warnings': [4267, ], |
[email protected] | eb6d239 | 2012-08-02 11:28:23 | [diff] [blame] | 959 | }, |
| 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] | 9dcec24 | 2013-01-10 23:24:28 | [diff] [blame] | 970 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 971 | 'msvs_disabled_warnings': [4267, ], |
[email protected] | eb6d239 | 2012-08-02 11:28:23 | [diff] [blame] | 972 | }, |
| 973 | { |
[email protected] | 10246a0 | 2012-07-30 15:15:01 | [diff] [blame] | 974 | '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] | cd31c7f | 2012-09-05 00:43:31 | [diff] [blame] | 986 | 'target_name': 'get_server_time', |
| 987 | 'type': 'executable', |
| 988 | 'dependencies': [ |
| 989 | '../base/base.gyp:base', |
| 990 | '../base/base.gyp:base_i18n', |
[email protected] | 002cc08f | 2013-06-03 05:40:29 | [diff] [blame] | 991 | '../url/url.gyp:url_lib', |
[email protected] | cd31c7f | 2012-09-05 00:43:31 | [diff] [blame] | 992 | 'net', |
| 993 | ], |
| 994 | 'sources': [ |
| 995 | 'tools/get_server_time/get_server_time.cc', |
| 996 | ], |
[email protected] | 9dcec24 | 2013-01-10 23:24:28 | [diff] [blame] | 997 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 998 | 'msvs_disabled_warnings': [4267, ], |
[email protected] | cd31c7f | 2012-09-05 00:43:31 | [diff] [blame] | 999 | }, |
| 1000 | { |
[email protected] | 19b4fa5 | 2014-05-05 22:03:15 | [diff] [blame] | 1001 | '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] | 10246a0 | 2012-07-30 15:15:01 | [diff] [blame] | 1040 | 'target_name': 'net_watcher', |
| 1041 | 'type': 'executable', |
| 1042 | 'dependencies': [ |
[email protected] | 10246a0 | 2012-07-30 15:15:01 | [diff] [blame] | 1043 | '../base/base.gyp:base', |
[email protected] | eb6d239 | 2012-08-02 11:28:23 | [diff] [blame] | 1044 | 'net', |
[email protected] | ffd3eff | 2012-08-31 14:50:48 | [diff] [blame] | 1045 | 'net_with_v8', |
[email protected] | 10246a0 | 2012-07-30 15:15:01 | [diff] [blame] | 1046 | ], |
[email protected] | a6f8cb73 | 2012-11-19 19:22:15 | [diff] [blame] | 1047 | '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] | 10246a0 | 2012-07-30 15:15:01 | [diff] [blame] | 1056 | 'sources': [ |
| 1057 | 'tools/net_watcher/net_watcher.cc', |
| 1058 | ], |
| 1059 | }, |
| 1060 | { |
[email protected] | eb6d239 | 2012-08-02 11:28:23 | [diff] [blame] | 1061 | 'target_name': 'run_testserver', |
[email protected] | 10246a0 | 2012-07-30 15:15:01 | [diff] [blame] | 1062 | 'type': 'executable', |
| 1063 | 'dependencies': [ |
[email protected] | 10246a0 | 2012-07-30 15:15:01 | [diff] [blame] | 1064 | '../base/base.gyp:base', |
[email protected] | e4c029f | 2013-01-20 01:10:24 | [diff] [blame] | 1065 | '../base/base.gyp:test_support_base', |
[email protected] | eb6d239 | 2012-08-02 11:28:23 | [diff] [blame] | 1066 | '../testing/gtest.gyp:gtest', |
[email protected] | eb6d239 | 2012-08-02 11:28:23 | [diff] [blame] | 1067 | 'net_test_support', |
[email protected] | 10246a0 | 2012-07-30 15:15:01 | [diff] [blame] | 1068 | ], |
| 1069 | 'sources': [ |
[email protected] | eb6d239 | 2012-08-02 11:28:23 | [diff] [blame] | 1070 | 'tools/testserver/run_testserver.cc', |
| 1071 | ], |
| 1072 | }, |
| 1073 | { |
rch | 216445c | 2015-03-27 00:23:28 | [diff] [blame] | 1074 | 'target_name': 'quic_client', |
rch | a9d12ce1 | 2015-03-19 23:06:49 | [diff] [blame] | 1075 | 'type': 'executable', |
| 1076 | 'dependencies': [ |
| 1077 | '../base/base.gyp:base', |
| 1078 | '../url/url.gyp:url_lib', |
| 1079 | 'net', |
rch | 47ad01f | 2015-03-20 21:17:23 | [diff] [blame] | 1080 | 'simple_quic_tools', |
rch | a9d12ce1 | 2015-03-19 23:06:49 | [diff] [blame] | 1081 | ], |
| 1082 | 'sources': [ |
rch | a9d12ce1 | 2015-03-19 23:06:49 | [diff] [blame] | 1083 | 'tools/quic/quic_simple_client_bin.cc', |
rch | a9d12ce1 | 2015-03-19 23:06:49 | [diff] [blame] | 1084 | ], |
| 1085 | }, |
| 1086 | { |
rch | 216445c | 2015-03-27 00:23:28 | [diff] [blame] | 1087 | '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] | eb6d239 | 2012-08-02 11:28:23 | [diff] [blame] | 1099 | 'target_name': 'stress_cache', |
| 1100 | 'type': 'executable', |
| 1101 | 'dependencies': [ |
| 1102 | '../base/base.gyp:base', |
| 1103 | 'net', |
| 1104 | 'net_test_support', |
| 1105 | ], |
| 1106 | 'sources': [ |
rvargas | e23fcf65 | 2015-03-04 19:59:22 | [diff] [blame] | 1107 | 'tools/stress_cache/stress_cache.cc', |
[email protected] | 10246a0 | 2012-07-30 15:15:01 | [diff] [blame] | 1108 | ], |
[email protected] | 9dcec24 | 2013-01-10 23:24:28 | [diff] [blame] | 1109 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 1110 | 'msvs_disabled_warnings': [4267, ], |
[email protected] | 10246a0 | 2012-07-30 15:15:01 | [diff] [blame] | 1111 | }, |
| 1112 | { |
| 1113 | 'target_name': 'tld_cleanup', |
| 1114 | 'type': 'executable', |
| 1115 | 'dependencies': [ |
| 1116 | '../base/base.gyp:base', |
| 1117 | '../base/base.gyp:base_i18n', |
[email protected] | ed32c21 | 2013-05-14 20:49:29 | [diff] [blame] | 1118 | '../net/tools/tld_cleanup/tld_cleanup.gyp:tld_cleanup_util', |
[email protected] | 10246a0 | 2012-07-30 15:15:01 | [diff] [blame] | 1119 | ], |
| 1120 | 'sources': [ |
| 1121 | 'tools/tld_cleanup/tld_cleanup.cc', |
| 1122 | ], |
[email protected] | 9dcec24 | 2013-01-10 23:24:28 | [diff] [blame] | 1123 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 1124 | 'msvs_disabled_warnings': [4267, ], |
[email protected] | 10246a0 | 2012-07-30 15:15:01 | [diff] [blame] | 1125 | }, |
[email protected] | 10246a0 | 2012-07-30 15:15:01 | [diff] [blame] | 1126 | ], |
| 1127 | }], |
[email protected] | 10246a0 | 2012-07-30 15:15:01 | [diff] [blame] | 1128 | ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', { |
[email protected] | 72322c5 | 2012-07-13 21:22:55 | [diff] [blame] | 1129 | 'targets': [ |
| 1130 | { |
[email protected] | 6c7e652 | 2013-09-29 15:27:44 | [diff] [blame] | 1131 | '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] | 29e05231 | 2013-08-06 05:44:51 | [diff] [blame] | 1144 | 'type': 'static_library', |
[email protected] | 72322c5 | 2012-07-13 21:22:55 | [diff] [blame] | 1145 | 'cflags': [ |
| 1146 | '-Wno-deprecated', |
| 1147 | ], |
| 1148 | 'dependencies': [ |
| 1149 | '../base/base.gyp:base', |
[email protected] | edfd0f4 | 2014-07-22 18:20:37 | [diff] [blame] | 1150 | '../third_party/boringssl/boringssl.gyp:boringssl', |
[email protected] | 6c7e652 | 2013-09-29 15:27:44 | [diff] [blame] | 1151 | 'balsa', |
| 1152 | 'epoll_server', |
[email protected] | eb6d239 | 2012-08-02 11:28:23 | [diff] [blame] | 1153 | 'net', |
[email protected] | 72322c5 | 2012-07-13 21:22:55 | [diff] [blame] | 1154 | ], |
| 1155 | 'sources': [ |
| 1156 | 'tools/dump_cache/url_to_filename_encoder.cc', |
| 1157 | 'tools/dump_cache/url_to_filename_encoder.h', |
[email protected] | 72322c5 | 2012-07-13 21:22:55 | [diff] [blame] | 1158 | 'tools/dump_cache/url_utilities.cc', |
satorux | dd0840d3 | 2015-02-12 19:10:26 | [diff] [blame] | 1159 | 'tools/dump_cache/url_utilities.h', |
[email protected] | 72322c5 | 2012-07-13 21:22:55 | [diff] [blame] | 1160 | 'tools/flip_server/acceptor_thread.cc', |
satorux | dd0840d3 | 2015-02-12 19:10:26 | [diff] [blame] | 1161 | 'tools/flip_server/acceptor_thread.h', |
| 1162 | 'tools/flip_server/constants.h', |
[email protected] | 72322c5 | 2012-07-13 21:22:55 | [diff] [blame] | 1163 | 'tools/flip_server/create_listener.cc', |
| 1164 | 'tools/flip_server/create_listener.h', |
[email protected] | 72322c5 | 2012-07-13 21:22:55 | [diff] [blame] | 1165 | 'tools/flip_server/flip_config.cc', |
| 1166 | 'tools/flip_server/flip_config.h', |
[email protected] | 72322c5 | 2012-07-13 21:22:55 | [diff] [blame] | 1167 | 'tools/flip_server/http_interface.cc', |
| 1168 | 'tools/flip_server/http_interface.h', |
[email protected] | 72322c5 | 2012-07-13 21:22:55 | [diff] [blame] | 1169 | 'tools/flip_server/loadtime_measurement.h', |
[email protected] | 72322c5 | 2012-07-13 21:22:55 | [diff] [blame] | 1170 | 'tools/flip_server/mem_cache.cc', |
satorux | dd0840d3 | 2015-02-12 19:10:26 | [diff] [blame] | 1171 | 'tools/flip_server/mem_cache.h', |
[email protected] | 72322c5 | 2012-07-13 21:22:55 | [diff] [blame] | 1172 | '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] | 72322c5 | 2012-07-13 21:22:55 | [diff] [blame] | 1176 | 'tools/flip_server/sm_connection.cc', |
| 1177 | 'tools/flip_server/sm_connection.h', |
| 1178 | 'tools/flip_server/sm_interface.h', |
[email protected] | 72322c5 | 2012-07-13 21:22:55 | [diff] [blame] | 1179 | 'tools/flip_server/spdy_interface.cc', |
| 1180 | 'tools/flip_server/spdy_interface.h', |
satorux | dd0840d3 | 2015-02-12 19:10:26 | [diff] [blame] | 1181 | 'tools/flip_server/spdy_ssl.cc', |
| 1182 | 'tools/flip_server/spdy_ssl.h', |
[email protected] | 72322c5 | 2012-07-13 21:22:55 | [diff] [blame] | 1183 | '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] | 72322c5 | 2012-07-13 21:22:55 | [diff] [blame] | 1187 | ], |
| 1188 | }, |
[email protected] | 519e4988 | 2013-03-27 08:45:32 | [diff] [blame] | 1189 | { |
[email protected] | 673ec5d | 2013-11-12 02:54:25 | [diff] [blame] | 1190 | '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] | edfd0f4 | 2014-07-22 18:20:37 | [diff] [blame] | 1195 | '../third_party/boringssl/boringssl.gyp:boringssl', |
[email protected] | 673ec5d | 2013-11-12 02:54:25 | [diff] [blame] | 1196 | '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] | 29e05231 | 2013-08-06 05:44:51 | [diff] [blame] | 1210 | '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] | 6c7e652 | 2013-09-29 15:27:44 | [diff] [blame] | 1217 | 'flip_in_mem_edsm_server_base', |
[email protected] | 29e05231 | 2013-08-06 05:44:51 | [diff] [blame] | 1218 | 'net', |
| 1219 | ], |
| 1220 | 'sources': [ |
| 1221 | 'tools/flip_server/flip_in_mem_edsm_server.cc', |
| 1222 | ], |
| 1223 | }, |
| 1224 | { |
rch | 216445c | 2015-03-27 00:23:28 | [diff] [blame] | 1225 | 'target_name': 'epoll_quic_tools', |
[email protected] | 519e4988 | 2013-03-27 08:45:32 | [diff] [blame] | 1226 | 'type': 'static_library', |
| 1227 | 'dependencies': [ |
| 1228 | '../base/base.gyp:base', |
| 1229 | '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', |
[email protected] | 002cc08f | 2013-06-03 05:40:29 | [diff] [blame] | 1230 | '../url/url.gyp:url_lib', |
[email protected] | 6c7e652 | 2013-09-29 15:27:44 | [diff] [blame] | 1231 | 'balsa', |
| 1232 | 'epoll_server', |
[email protected] | 519e4988 | 2013-03-27 08:45:32 | [diff] [blame] | 1233 | 'net', |
| 1234 | ], |
| 1235 | 'sources': [ |
[email protected] | e45d6889 | 2013-03-30 17:50:10 | [diff] [blame] | 1236 | 'tools/quic/quic_client.cc', |
| 1237 | 'tools/quic/quic_client.h', |
[email protected] | cbd731e | 2013-10-24 00:20:39 | [diff] [blame] | 1238 | 'tools/quic/quic_default_packet_writer.cc', |
| 1239 | 'tools/quic/quic_default_packet_writer.h', |
[email protected] | 519e4988 | 2013-03-27 08:45:32 | [diff] [blame] | 1240 | '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', |
rtenneti | fb3fa6c | 2015-03-16 23:04:55 | [diff] [blame] | 1244 | 'tools/quic/quic_packet_reader.cc', |
| 1245 | 'tools/quic/quic_packet_reader.h', |
[email protected] | 9f0dcd4e | 2014-01-16 15:58:14 | [diff] [blame] | 1246 | 'tools/quic/quic_packet_writer_wrapper.cc', |
| 1247 | 'tools/quic/quic_packet_writer_wrapper.h', |
[email protected] | e45d6889 | 2013-03-30 17:50:10 | [diff] [blame] | 1248 | 'tools/quic/quic_server.cc', |
| 1249 | 'tools/quic/quic_server.h', |
[email protected] | 519e4988 | 2013-03-27 08:45:32 | [diff] [blame] | 1250 | 'tools/quic/quic_socket_utils.cc', |
| 1251 | 'tools/quic/quic_socket_utils.h', |
[email protected] | 519e4988 | 2013-03-27 08:45:32 | [diff] [blame] | 1252 | ], |
| 1253 | }, |
| 1254 | { |
rch | 216445c | 2015-03-27 00:23:28 | [diff] [blame] | 1255 | 'target_name': 'epoll_quic_client', |
[email protected] | 519e4988 | 2013-03-27 08:45:32 | [diff] [blame] | 1256 | 'type': 'executable', |
| 1257 | 'dependencies': [ |
| 1258 | '../base/base.gyp:base', |
[email protected] | 519e4988 | 2013-03-27 08:45:32 | [diff] [blame] | 1259 | 'net', |
rch | 216445c | 2015-03-27 00:23:28 | [diff] [blame] | 1260 | 'epoll_quic_tools', |
rch | da78df5a | 2015-03-22 05:16:37 | [diff] [blame] | 1261 | 'simple_quic_tools', |
[email protected] | 519e4988 | 2013-03-27 08:45:32 | [diff] [blame] | 1262 | ], |
| 1263 | 'sources': [ |
[email protected] | 519e4988 | 2013-03-27 08:45:32 | [diff] [blame] | 1264 | 'tools/quic/quic_client_bin.cc', |
[email protected] | 519e4988 | 2013-03-27 08:45:32 | [diff] [blame] | 1265 | ], |
| 1266 | }, |
| 1267 | { |
rch | 216445c | 2015-03-27 00:23:28 | [diff] [blame] | 1268 | 'target_name': 'epoll_quic_server', |
[email protected] | 519e4988 | 2013-03-27 08:45:32 | [diff] [blame] | 1269 | 'type': 'executable', |
| 1270 | 'dependencies': [ |
| 1271 | '../base/base.gyp:base', |
[email protected] | 519e4988 | 2013-03-27 08:45:32 | [diff] [blame] | 1272 | 'net', |
rch | 216445c | 2015-03-27 00:23:28 | [diff] [blame] | 1273 | 'epoll_quic_tools', |
rch | 0e94547 | 2015-03-26 15:19:21 | [diff] [blame] | 1274 | 'simple_quic_tools', |
[email protected] | 519e4988 | 2013-03-27 08:45:32 | [diff] [blame] | 1275 | ], |
| 1276 | 'sources': [ |
rch | 216445c | 2015-03-27 00:23:28 | [diff] [blame] | 1277 | 'tools/quic/quic_server_bin.cc', |
[email protected] | 519e4988 | 2013-03-27 08:45:32 | [diff] [blame] | 1278 | ], |
[email protected] | 7499f22fe | 2014-04-30 21:58:50 | [diff] [blame] | 1279 | }, |
[email protected] | 72322c5 | 2012-07-13 21:22:55 | [diff] [blame] | 1280 | ] |
| 1281 | }], |
[email protected] | ad116b2e8 | 2012-04-20 03:24:07 | [diff] [blame] | 1282 | ['OS=="android"', { |
| 1283 | 'targets': [ |
mef | dc8e94b | 2015-03-11 19:49:05 | [diff] [blame] | 1284 | { # 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] | ad116b2e8 | 2012-04-20 03:24:07 | [diff] [blame] | 1306 | { |
| 1307 | 'target_name': 'net_jni_headers', |
| 1308 | 'type': 'none', |
[email protected] | e46f6615 | 2012-07-19 20:02:55 | [diff] [blame] | 1309 | 'sources': [ |
[email protected] | 23073f9 | 2014-01-17 22:52:17 | [diff] [blame] | 1310 | 'android/java/src/org/chromium/net/AndroidCertVerifyResult.java', |
[email protected] | 03a07b2e | 2013-02-11 20:13:45 | [diff] [blame] | 1311 | 'android/java/src/org/chromium/net/AndroidKeyStore.java', |
[email protected] | e46f6615 | 2012-07-19 20:02:55 | [diff] [blame] | 1312 | 'android/java/src/org/chromium/net/AndroidNetworkLibrary.java', |
[email protected] | 2816e1f | 2014-02-15 00:54:27 | [diff] [blame] | 1313 | 'android/java/src/org/chromium/net/AndroidPrivateKey.java', |
[email protected] | d72acb0 | 2012-12-15 22:19:44 | [diff] [blame] | 1314 | 'android/java/src/org/chromium/net/GURLUtils.java', |
mef | dc8e94b | 2015-03-11 19:49:05 | [diff] [blame] | 1315 | 'android/java/src/org/chromium/net/NetStringUtil.java', |
[email protected] | e46f6615 | 2012-07-19 20:02:55 | [diff] [blame] | 1316 | 'android/java/src/org/chromium/net/NetworkChangeNotifier.java', |
| 1317 | 'android/java/src/org/chromium/net/ProxyChangeListener.java', |
[email protected] | 18c360a | 2013-10-22 14:35:15 | [diff] [blame] | 1318 | 'android/java/src/org/chromium/net/X509Util.java', |
[email protected] | e46f6615 | 2012-07-19 20:02:55 | [diff] [blame] | 1319 | ], |
[email protected] | ad116b2e8 | 2012-04-20 03:24:07 | [diff] [blame] | 1320 | 'variables': { |
[email protected] | 521cd94 | 2013-03-07 22:34:05 | [diff] [blame] | 1321 | 'jni_gen_package': 'net', |
[email protected] | ad116b2e8 | 2012-04-20 03:24:07 | [diff] [blame] | 1322 | }, |
[email protected] | 03a07b2e | 2013-02-11 20:13:45 | [diff] [blame] | 1323 | '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] | 521cd94 | 2013-03-07 22:34:05 | [diff] [blame] | 1332 | 'jni_gen_package': 'net', |
[email protected] | 03a07b2e | 2013-02-11 20:13:45 | [diff] [blame] | 1333 | }, |
[email protected] | ad116b2e8 | 2012-04-20 03:24:07 | [diff] [blame] | 1334 | 'includes': [ '../build/jni_generator.gypi' ], |
| 1335 | }, |
| 1336 | { |
| 1337 | 'target_name': 'net_java', |
| 1338 | 'type': 'none', |
| 1339 | 'variables': { |
[email protected] | ad116b2e8 | 2012-04-20 03:24:07 | [diff] [blame] | 1340 | 'java_in_dir': '../net/android/java', |
| 1341 | }, |
| 1342 | 'dependencies': [ |
[email protected] | bb6bd1f | 2012-09-10 15:52:47 | [diff] [blame] | 1343 | '../base/base.gyp:base', |
[email protected] | 23073f9 | 2014-01-17 22:52:17 | [diff] [blame] | 1344 | 'cert_verify_status_android_java', |
[email protected] | 3b45550 | 2012-12-11 18:22:58 | [diff] [blame] | 1345 | 'certificate_mime_types_java', |
jkarlin | 0818d525 | 2014-12-02 21:06:02 | [diff] [blame] | 1346 | 'network_change_notifier_types_java', |
[email protected] | 71f4b27 | 2013-02-13 19:13:49 | [diff] [blame] | 1347 | 'net_errors_java', |
[email protected] | 03a07b2e | 2013-02-11 20:13:45 | [diff] [blame] | 1348 | 'private_key_types_java', |
[email protected] | 2816e1f | 2014-02-15 00:54:27 | [diff] [blame] | 1349 | 'remote_android_keystore_aidl', |
[email protected] | ad116b2e8 | 2012-04-20 03:24:07 | [diff] [blame] | 1350 | ], |
| 1351 | 'includes': [ '../build/java.gypi' ], |
| 1352 | }, |
[email protected] | d29ba6c | 2012-08-15 23:10:18 | [diff] [blame] | 1353 | { |
[email protected] | 2816e1f | 2014-02-15 00:54:27 | [diff] [blame] | 1354 | # 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] | f36fb17 | 2012-11-07 19:40:41 | [diff] [blame] | 1368 | 'target_name': 'net_java_test_support', |
| 1369 | 'type': 'none', |
| 1370 | 'variables': { |
[email protected] | f36fb17 | 2012-11-07 19:40:41 | [diff] [blame] | 1371 | 'java_in_dir': '../net/test/android/javatests', |
| 1372 | }, |
| 1373 | 'includes': [ '../build/java.gypi' ], |
| 1374 | }, |
| 1375 | { |
[email protected] | d29ba6c | 2012-08-15 23:10:18 | [diff] [blame] | 1376 | 'target_name': 'net_javatests', |
| 1377 | 'type': 'none', |
| 1378 | 'variables': { |
[email protected] | d29ba6c | 2012-08-15 23:10:18 | [diff] [blame] | 1379 | 'java_in_dir': '../net/android/javatests', |
| 1380 | }, |
| 1381 | 'dependencies': [ |
[email protected] | bb6bd1f | 2012-09-10 15:52:47 | [diff] [blame] | 1382 | '../base/base.gyp:base', |
[email protected] | d29ba6c | 2012-08-15 23:10:18 | [diff] [blame] | 1383 | '../base/base.gyp:base_java_test_support', |
[email protected] | bb6bd1f | 2012-09-10 15:52:47 | [diff] [blame] | 1384 | 'net_java', |
[email protected] | d29ba6c | 2012-08-15 23:10:18 | [diff] [blame] | 1385 | ], |
[email protected] | d29ba6c | 2012-08-15 23:10:18 | [diff] [blame] | 1386 | 'includes': [ '../build/java.gypi' ], |
| 1387 | }, |
[email protected] | 2fa3091 | 2012-09-10 19:22:50 | [diff] [blame] | 1388 | { |
[email protected] | 2fa3091 | 2012-09-10 19:22:50 | [diff] [blame] | 1389 | 'target_name': 'net_errors_java', |
| 1390 | 'type': 'none', |
[email protected] | 4d49171 | 2012-12-10 12:38:24 | [diff] [blame] | 1391 | 'sources': [ |
[email protected] | 4d49171 | 2012-12-10 12:38:24 | [diff] [blame] | 1392 | 'android/java/NetError.template', |
[email protected] | 2fa3091 | 2012-09-10 19:22:50 | [diff] [blame] | 1393 | ], |
[email protected] | 4d49171 | 2012-12-10 12:38:24 | [diff] [blame] | 1394 | 'variables': { |
[email protected] | 1b19c9a1e | 2013-03-02 16:39:08 | [diff] [blame] | 1395 | 'package_name': 'org/chromium/net', |
[email protected] | 2716d84e | 2013-01-19 04:05:48 | [diff] [blame] | 1396 | 'template_deps': ['base/net_error_list.h'], |
[email protected] | 4d49171 | 2012-12-10 12:38:24 | [diff] [blame] | 1397 | }, |
| 1398 | 'includes': [ '../build/android/java_cpp_template.gypi' ], |
[email protected] | 3b45550 | 2012-12-11 18:22:58 | [diff] [blame] | 1399 | }, |
| 1400 | { |
| 1401 | 'target_name': 'certificate_mime_types_java', |
| 1402 | 'type': 'none', |
[email protected] | 3b45550 | 2012-12-11 18:22:58 | [diff] [blame] | 1403 | 'variables': { |
mkosiba | f6ebbf6b | 2014-09-30 14:42:39 | [diff] [blame] | 1404 | 'source_file': 'base/mime_util.h', |
[email protected] | 3b45550 | 2012-12-11 18:22:58 | [diff] [blame] | 1405 | }, |
mkosiba | f6ebbf6b | 2014-09-30 14:42:39 | [diff] [blame] | 1406 | 'includes': [ '../build/android/java_cpp_enum.gypi' ], |
[email protected] | 3b45550 | 2012-12-11 18:22:58 | [diff] [blame] | 1407 | }, |
[email protected] | 03a07b2e | 2013-02-11 20:13:45 | [diff] [blame] | 1408 | { |
[email protected] | 23073f9 | 2014-01-17 22:52:17 | [diff] [blame] | 1409 | 'target_name': 'cert_verify_status_android_java', |
[email protected] | 71f4b27 | 2013-02-13 19:13:49 | [diff] [blame] | 1410 | 'type': 'none', |
[email protected] | 71f4b27 | 2013-02-13 19:13:49 | [diff] [blame] | 1411 | 'variables': { |
mkosiba | f6ebbf6b | 2014-09-30 14:42:39 | [diff] [blame] | 1412 | 'source_file': 'android/cert_verify_result_android.h', |
[email protected] | 71f4b27 | 2013-02-13 19:13:49 | [diff] [blame] | 1413 | }, |
mkosiba | f6ebbf6b | 2014-09-30 14:42:39 | [diff] [blame] | 1414 | 'includes': [ '../build/android/java_cpp_enum.gypi' ], |
[email protected] | 71f4b27 | 2013-02-13 19:13:49 | [diff] [blame] | 1415 | }, |
| 1416 | { |
jkarlin | 0818d525 | 2014-12-02 21:06:02 | [diff] [blame] | 1417 | '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] | 03a07b2e | 2013-02-11 20:13:45 | [diff] [blame] | 1425 | 'target_name': 'private_key_types_java', |
| 1426 | 'type': 'none', |
[email protected] | 03a07b2e | 2013-02-11 20:13:45 | [diff] [blame] | 1427 | 'variables': { |
mkosiba | f6ebbf6b | 2014-09-30 14:42:39 | [diff] [blame] | 1428 | 'source_file': 'android/keystore.h', |
[email protected] | 03a07b2e | 2013-02-11 20:13:45 | [diff] [blame] | 1429 | }, |
mkosiba | f6ebbf6b | 2014-09-30 14:42:39 | [diff] [blame] | 1430 | 'includes': [ '../build/android/java_cpp_enum.gypi' ], |
[email protected] | 03a07b2e | 2013-02-11 20:13:45 | [diff] [blame] | 1431 | }, |
[email protected] | a44d121 | 2012-05-25 20:17:49 | [diff] [blame] | 1432 | { |
| 1433 | 'target_name': 'net_unittests_apk', |
| 1434 | 'type': 'none', |
| 1435 | 'dependencies': [ |
[email protected] | a44d121 | 2012-05-25 20:17:49 | [diff] [blame] | 1436 | 'net_java', |
[email protected] | 03a07b2e | 2013-02-11 20:13:45 | [diff] [blame] | 1437 | 'net_javatests', |
[email protected] | a44d121 | 2012-05-25 20:17:49 | [diff] [blame] | 1438 | 'net_unittests', |
| 1439 | ], |
baixo | 5431a0dd | 2014-11-13 17:00:32 | [diff] [blame] | 1440 | '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] | a44d121 | 2012-05-25 20:17:49 | [diff] [blame] | 1456 | 'variables': { |
| 1457 | 'test_suite_name': 'net_unittests', |
baixo | 3a3c88a | 2014-10-28 11:52:21 | [diff] [blame] | 1458 | 'conditions': [ |
| 1459 | ['v8_use_external_startup_data==1', { |
baixo | 5431a0dd | 2014-11-13 17:00:32 | [diff] [blame] | 1460 | 'asset_location': '<(PRODUCT_DIR)/net_unittests_apk/assets', |
baixo | 3a3c88a | 2014-10-28 11:52:21 | [diff] [blame] | 1461 | 'additional_input_paths': [ |
baixo | 5431a0dd | 2014-11-13 17:00:32 | [diff] [blame] | 1462 | '<(PRODUCT_DIR)/net_unittests_apk/assets/natives_blob.bin', |
| 1463 | '<(PRODUCT_DIR)/net_unittests_apk/assets/snapshot_blob.bin', |
| 1464 | ], |
| 1465 | 'inputs': [ |
baixo | 3a3c88a | 2014-10-28 11:52:21 | [diff] [blame] | 1466 | '<(PRODUCT_DIR)/natives_blob.bin', |
| 1467 | '<(PRODUCT_DIR)/snapshot_blob.bin', |
| 1468 | ], |
baixo | 3a3c88a | 2014-10-28 11:52:21 | [diff] [blame] | 1469 | }], |
| 1470 | ], |
[email protected] | a44d121 | 2012-05-25 20:17:49 | [diff] [blame] | 1471 | }, |
| 1472 | 'includes': [ '../build/apk_test.gypi' ], |
| 1473 | }, |
| 1474 | ], |
| 1475 | }], |
[email protected] | 28af123 | 2013-08-26 18:49:29 | [diff] [blame] | 1476 | ['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] | d34eb41 | 2012-07-28 00:03:41 | [diff] [blame] | 1491 | ['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] | cc902cb | 2013-07-12 00:54:49 | [diff] [blame] | 1500 | '../build/isolate.gypi', |
[email protected] | d34eb41 | 2012-07-28 00:03:41 | [diff] [blame] | 1501 | ], |
[email protected] | cc902cb | 2013-07-12 00:54:49 | [diff] [blame] | 1502 | 'sources': [ |
| 1503 | 'net_unittests.isolate', |
[email protected] | d34eb41 | 2012-07-28 00:03:41 | [diff] [blame] | 1504 | ], |
| 1505 | }, |
| 1506 | ], |
| 1507 | }], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 1508 | ], |
| 1509 | } |