Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1 | # Copyright 2013 The Chromium Authors. All rights reserved. |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [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, |
| 8 | |
| 9 | 'linux_link_kerberos%': 0, |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 10 | 'use_tracing_cache_backend%': 0, |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 11 | 'conditions': [ |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 12 | ['chromeos==1 or embedded==1 or OS=="android" or OS=="ios"', { |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 13 | # Disable Kerberos on ChromeOS, Android and iOS, at least for now. |
| 14 | # It needs configuration (krb5.conf and so on). |
| 15 | 'use_kerberos%': 0, |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 16 | }, { # chromeos == 0 and embedded==0 and OS!="android" and OS!="ios" |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 17 | 'use_kerberos%': 1, |
| 18 | }], |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 19 | ['OS=="android" and target_arch != "ia32"', { |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 20 | # The way the cache uses mmap() is inefficient on some Android devices. |
| 21 | # If this flag is set, we hackily avoid using mmap() in the disk cache. |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 22 | # We are pretty confident that mmap-ing the index would not hurt any |
| 23 | # existing x86 android devices, but we cannot be so sure about the |
| 24 | # variety of ARM devices. So enable it for x86 only for now. |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 25 | 'posix_avoid_mmap%': 1, |
| 26 | }, { |
| 27 | 'posix_avoid_mmap%': 0, |
| 28 | }], |
| 29 | ['OS=="ios"', { |
| 30 | # Websockets and socket stream are not used on iOS. |
| 31 | 'enable_websockets%': 0, |
| 32 | # iOS does not use V8. |
| 33 | 'use_v8_in_net%': 0, |
| 34 | 'enable_built_in_dns%': 0, |
| 35 | }, { |
| 36 | 'enable_websockets%': 1, |
| 37 | 'use_v8_in_net%': 1, |
| 38 | 'enable_built_in_dns%': 1, |
| 39 | }], |
| 40 | ], |
| 41 | }, |
| 42 | 'includes': [ |
| 43 | '../build/win_precompile.gypi', |
Ben Murdoch | a02191e | 2014-04-16 11:17:03 +0100 | [diff] [blame] | 44 | 'net.gypi', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 45 | ], |
| 46 | 'targets': [ |
| 47 | { |
Torne (Richard Coles) | cedac22 | 2014-06-03 10:58:34 +0100 | [diff] [blame] | 48 | 'target_name': 'net_derived_sources', |
| 49 | 'type': 'none', |
| 50 | 'sources': [ |
| 51 | 'base/registry_controlled_domains/effective_tld_names.gperf', |
| 52 | 'base/registry_controlled_domains/effective_tld_names_unittest1.gperf', |
| 53 | 'base/registry_controlled_domains/effective_tld_names_unittest2.gperf', |
| 54 | 'base/registry_controlled_domains/effective_tld_names_unittest3.gperf', |
| 55 | 'base/registry_controlled_domains/effective_tld_names_unittest4.gperf', |
| 56 | 'base/registry_controlled_domains/effective_tld_names_unittest5.gperf', |
| 57 | 'base/registry_controlled_domains/effective_tld_names_unittest6.gperf', |
| 58 | ], |
| 59 | 'rules': [ |
| 60 | { |
| 61 | 'rule_name': 'dafsa', |
| 62 | 'extension': 'gperf', |
| 63 | 'outputs': [ |
| 64 | '<(SHARED_INTERMEDIATE_DIR)/net/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT)-inc.cc', |
| 65 | ], |
| 66 | 'inputs': [ |
| 67 | 'tools/tld_cleanup/make_dafsa.py', |
| 68 | ], |
| 69 | 'action': [ |
| 70 | 'python', |
| 71 | 'tools/tld_cleanup/make_dafsa.py', |
| 72 | '<(RULE_INPUT_PATH)', |
| 73 | '<(SHARED_INTERMEDIATE_DIR)/net/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT)-inc.cc', |
| 74 | ], |
| 75 | }, |
| 76 | ], |
| 77 | 'direct_dependent_settings': { |
| 78 | 'include_dirs': [ |
| 79 | '<(SHARED_INTERMEDIATE_DIR)' |
| 80 | ], |
| 81 | }, |
| 82 | }, |
| 83 | { |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 84 | 'target_name': 'net', |
| 85 | 'type': '<(component)', |
| 86 | 'variables': { 'enable_wexit_time_destructors': 1, }, |
| 87 | 'dependencies': [ |
| 88 | '../base/base.gyp:base', |
| 89 | '../base/base.gyp:base_i18n', |
Ben Murdoch | 116680a | 2014-07-20 18:25:52 -0700 | [diff] [blame] | 90 | '../base/base.gyp:base_prefs', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 91 | '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 92 | '../crypto/crypto.gyp:crypto', |
| 93 | '../sdch/sdch.gyp:sdch', |
| 94 | '../third_party/icu/icu.gyp:icui18n', |
| 95 | '../third_party/icu/icu.gyp:icuuc', |
| 96 | '../third_party/zlib/zlib.gyp:zlib', |
Torne (Richard Coles) | 868fa2f | 2013-06-11 10:57:03 +0100 | [diff] [blame] | 97 | '../url/url.gyp:url_lib', |
Torne (Richard Coles) | cedac22 | 2014-06-03 10:58:34 +0100 | [diff] [blame] | 98 | 'net_derived_sources', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 99 | 'net_resources', |
| 100 | ], |
| 101 | 'sources': [ |
Ben Murdoch | a02191e | 2014-04-16 11:17:03 +0100 | [diff] [blame] | 102 | '<@(net_nacl_common_sources)', |
| 103 | '<@(net_non_nacl_sources)', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 104 | ], |
| 105 | 'defines': [ |
| 106 | 'NET_IMPLEMENTATION', |
| 107 | ], |
| 108 | 'export_dependent_settings': [ |
| 109 | '../base/base.gyp:base', |
| 110 | ], |
| 111 | 'conditions': [ |
| 112 | ['chromeos==1', { |
| 113 | 'sources!': [ |
| 114 | 'base/network_change_notifier_linux.cc', |
| 115 | 'base/network_change_notifier_linux.h', |
| 116 | 'base/network_change_notifier_netlink_linux.cc', |
| 117 | 'base/network_change_notifier_netlink_linux.h', |
| 118 | 'proxy/proxy_config_service_linux.cc', |
| 119 | 'proxy/proxy_config_service_linux.h', |
| 120 | ], |
| 121 | }], |
| 122 | ['use_kerberos==1', { |
| 123 | 'defines': [ |
| 124 | 'USE_KERBEROS', |
| 125 | ], |
| 126 | 'conditions': [ |
| 127 | ['OS=="openbsd"', { |
| 128 | 'include_dirs': [ |
| 129 | '/usr/include/kerberosV' |
| 130 | ], |
| 131 | }], |
| 132 | ['linux_link_kerberos==1', { |
| 133 | 'link_settings': { |
| 134 | 'ldflags': [ |
| 135 | '<!@(krb5-config --libs gssapi)', |
| 136 | ], |
| 137 | }, |
| 138 | }, { # linux_link_kerberos==0 |
| 139 | 'defines': [ |
| 140 | 'DLOPEN_KERBEROS', |
| 141 | ], |
| 142 | }], |
| 143 | ], |
| 144 | }, { # use_kerberos == 0 |
| 145 | 'sources!': [ |
| 146 | 'http/http_auth_gssapi_posix.cc', |
| 147 | 'http/http_auth_gssapi_posix.h', |
| 148 | 'http/http_auth_handler_negotiate.h', |
| 149 | 'http/http_auth_handler_negotiate.cc', |
| 150 | ], |
| 151 | }], |
| 152 | ['posix_avoid_mmap==1', { |
| 153 | 'defines': [ |
| 154 | 'POSIX_AVOID_MMAP', |
| 155 | ], |
| 156 | 'direct_dependent_settings': { |
| 157 | 'defines': [ |
| 158 | 'POSIX_AVOID_MMAP', |
| 159 | ], |
| 160 | }, |
| 161 | 'sources!': [ |
Torne (Richard Coles) | a140131 | 2014-03-18 10:20:56 +0000 | [diff] [blame] | 162 | 'disk_cache/blockfile/mapped_file_posix.cc', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 163 | ], |
| 164 | }, { # else |
| 165 | 'sources!': [ |
Torne (Richard Coles) | a140131 | 2014-03-18 10:20:56 +0000 | [diff] [blame] | 166 | 'disk_cache/blockfile/mapped_file_avoid_mmap_posix.cc', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 167 | ], |
| 168 | }], |
Torne (Richard Coles) | 010d83a | 2014-05-14 12:12:37 +0100 | [diff] [blame] | 169 | ['disable_file_support==1', { |
| 170 | # TODO(mmenke): Should probably get rid of the dependency on |
| 171 | # net_resources in this case (It's used in net_util, to format |
| 172 | # directory listings. Also used outside of net/). |
| 173 | 'sources!': [ |
| 174 | 'base/directory_lister.cc', |
| 175 | 'base/directory_lister.h', |
| 176 | 'url_request/url_request_file_dir_job.cc', |
| 177 | 'url_request/url_request_file_dir_job.h', |
| 178 | 'url_request/url_request_file_job.cc', |
| 179 | 'url_request/url_request_file_job.h', |
| 180 | 'url_request/file_protocol_handler.cc', |
| 181 | 'url_request/file_protocol_handler.h', |
| 182 | ], |
| 183 | }], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 184 | ['disable_ftp_support==1', { |
| 185 | 'sources/': [ |
| 186 | ['exclude', '^ftp/'], |
| 187 | ], |
| 188 | 'sources!': [ |
| 189 | 'url_request/ftp_protocol_handler.cc', |
| 190 | 'url_request/ftp_protocol_handler.h', |
| 191 | 'url_request/url_request_ftp_job.cc', |
| 192 | 'url_request/url_request_ftp_job.h', |
| 193 | ], |
| 194 | }], |
| 195 | ['enable_built_in_dns==1', { |
| 196 | 'defines': [ |
| 197 | 'ENABLE_BUILT_IN_DNS', |
| 198 | ] |
| 199 | }, { # else |
| 200 | 'sources!': [ |
| 201 | 'dns/address_sorter_posix.cc', |
| 202 | 'dns/address_sorter_posix.h', |
| 203 | 'dns/dns_client.cc', |
| 204 | ], |
| 205 | }], |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 206 | ['use_tracing_cache_backend==1', { |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 207 | 'defines': [ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 208 | 'USE_TRACING_CACHE_BACKEND' |
| 209 | ], |
| 210 | }], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 211 | ['use_openssl==1', { |
| 212 | 'sources!': [ |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 213 | 'base/crypto_module_nss.cc', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 214 | 'base/keygen_handler_nss.cc', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 215 | 'base/nss_memio.c', |
| 216 | 'base/nss_memio.h', |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 217 | 'cert/cert_database_nss.cc', |
| 218 | 'cert/cert_verify_proc_nss.cc', |
| 219 | 'cert/cert_verify_proc_nss.h', |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 220 | 'cert/ct_log_verifier_nss.cc', |
| 221 | 'cert/ct_objects_extractor_nss.cc', |
Ben Murdoch | bb1529c | 2013-08-08 10:24:53 +0100 | [diff] [blame] | 222 | 'cert/jwk_serializer_nss.cc', |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 223 | 'cert/nss_cert_database.cc', |
| 224 | 'cert/nss_cert_database.h', |
Ben Murdoch | c5cede9 | 2014-04-10 11:22:14 +0100 | [diff] [blame] | 225 | 'cert/nss_cert_database_chromeos.cc', |
| 226 | 'cert/nss_cert_database_chromeos.h', |
| 227 | 'cert/nss_profile_filter_chromeos.cc', |
| 228 | 'cert/nss_profile_filter_chromeos.h', |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 229 | 'cert/scoped_nss_types.h', |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 230 | 'cert/test_root_certs_nss.cc', |
| 231 | 'cert/x509_certificate_nss.cc', |
| 232 | 'cert/x509_util_nss.cc', |
| 233 | 'cert/x509_util_nss.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 234 | 'ocsp/nss_ocsp.cc', |
| 235 | 'ocsp/nss_ocsp.h', |
Torne (Richard Coles) | a140131 | 2014-03-18 10:20:56 +0000 | [diff] [blame] | 236 | 'quic/crypto/aead_base_decrypter_nss.cc', |
| 237 | 'quic/crypto/aead_base_encrypter_nss.cc', |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 238 | 'quic/crypto/aes_128_gcm_12_decrypter_nss.cc', |
| 239 | 'quic/crypto/aes_128_gcm_12_encrypter_nss.cc', |
Torne (Richard Coles) | a140131 | 2014-03-18 10:20:56 +0000 | [diff] [blame] | 240 | 'quic/crypto/chacha20_poly1305_decrypter_nss.cc', |
| 241 | 'quic/crypto/chacha20_poly1305_encrypter_nss.cc', |
Torne (Richard Coles) | 868fa2f | 2013-06-11 10:57:03 +0100 | [diff] [blame] | 242 | 'quic/crypto/channel_id_nss.cc', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 243 | 'quic/crypto/p256_key_exchange_nss.cc', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 244 | 'socket/nss_ssl_util.cc', |
| 245 | 'socket/nss_ssl_util.h', |
| 246 | 'socket/ssl_client_socket_nss.cc', |
| 247 | 'socket/ssl_client_socket_nss.h', |
| 248 | 'socket/ssl_server_socket_nss.cc', |
| 249 | 'socket/ssl_server_socket_nss.h', |
| 250 | 'third_party/mozilla_security_manager/nsKeygenHandler.cpp', |
| 251 | 'third_party/mozilla_security_manager/nsKeygenHandler.h', |
| 252 | 'third_party/mozilla_security_manager/nsNSSCertificateDB.cpp', |
| 253 | 'third_party/mozilla_security_manager/nsNSSCertificateDB.h', |
| 254 | 'third_party/mozilla_security_manager/nsPKCS12Blob.cpp', |
| 255 | 'third_party/mozilla_security_manager/nsPKCS12Blob.h', |
| 256 | ], |
Ben Murdoch | effb81e | 2014-03-31 11:51:25 +0100 | [diff] [blame] | 257 | 'dependencies': [ |
Torne (Richard Coles) | 5f1c943 | 2014-08-12 13:47:38 +0100 | [diff] [blame] | 258 | '../third_party/boringssl/boringssl.gyp:boringssl', |
Ben Murdoch | effb81e | 2014-03-31 11:51:25 +0100 | [diff] [blame] | 259 | ], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 260 | }, |
| 261 | { # else !use_openssl: remove the unneeded files |
| 262 | 'sources!': [ |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 263 | 'base/crypto_module_openssl.cc', |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 264 | 'cert/ct_log_verifier_openssl.cc', |
| 265 | 'cert/ct_objects_extractor_openssl.cc', |
Ben Murdoch | bb1529c | 2013-08-08 10:24:53 +0100 | [diff] [blame] | 266 | 'cert/jwk_serializer_openssl.cc', |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 267 | 'cert/x509_util_openssl.cc', |
| 268 | 'cert/x509_util_openssl.h', |
Ben Murdoch | 116680a | 2014-07-20 18:25:52 -0700 | [diff] [blame] | 269 | 'crypto/scoped_openssl_types.h', |
Torne (Richard Coles) | a140131 | 2014-03-18 10:20:56 +0000 | [diff] [blame] | 270 | 'quic/crypto/aead_base_decrypter_openssl.cc', |
| 271 | 'quic/crypto/aead_base_encrypter_openssl.cc', |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 272 | 'quic/crypto/aes_128_gcm_12_decrypter_openssl.cc', |
| 273 | 'quic/crypto/aes_128_gcm_12_encrypter_openssl.cc', |
Torne (Richard Coles) | a140131 | 2014-03-18 10:20:56 +0000 | [diff] [blame] | 274 | 'quic/crypto/chacha20_poly1305_decrypter_openssl.cc', |
| 275 | 'quic/crypto/chacha20_poly1305_encrypter_openssl.cc', |
Torne (Richard Coles) | 868fa2f | 2013-06-11 10:57:03 +0100 | [diff] [blame] | 276 | 'quic/crypto/channel_id_openssl.cc', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 277 | 'quic/crypto/p256_key_exchange_openssl.cc', |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 278 | 'quic/crypto/scoped_evp_aead_ctx.cc', |
| 279 | 'quic/crypto/scoped_evp_aead_ctx.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 280 | 'socket/ssl_client_socket_openssl.cc', |
| 281 | 'socket/ssl_client_socket_openssl.h', |
| 282 | 'socket/ssl_server_socket_openssl.cc', |
Torne (Richard Coles) | cedac22 | 2014-06-03 10:58:34 +0100 | [diff] [blame] | 283 | 'socket/ssl_server_socket_openssl.h', |
Torne (Richard Coles) | a3f6a49 | 2013-12-18 16:25:09 +0000 | [diff] [blame] | 284 | 'socket/ssl_session_cache_openssl.cc', |
| 285 | 'socket/ssl_session_cache_openssl.h', |
Torne (Richard Coles) | 5f1c943 | 2014-08-12 13:47:38 +0100 | [diff] [blame] | 286 | 'ssl/openssl_platform_key_mac.cc', |
| 287 | 'ssl/openssl_platform_key_win.cc', |
| 288 | 'ssl/openssl_platform_key.h', |
| 289 | 'ssl/openssl_ssl_util.cc', |
| 290 | 'ssl/openssl_ssl_util.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 291 | ], |
| 292 | }, |
| 293 | ], |
Ben Murdoch | effb81e | 2014-03-31 11:51:25 +0100 | [diff] [blame] | 294 | [ 'use_openssl_certs == 0', { |
| 295 | 'sources!': [ |
Torne (Richard Coles) | 010d83a | 2014-05-14 12:12:37 +0100 | [diff] [blame] | 296 | 'base/keygen_handler_openssl.cc', |
Ben Murdoch | effb81e | 2014-03-31 11:51:25 +0100 | [diff] [blame] | 297 | 'base/openssl_private_key_store.h', |
| 298 | 'base/openssl_private_key_store_android.cc', |
| 299 | 'base/openssl_private_key_store_memory.cc', |
| 300 | 'cert/cert_database_openssl.cc', |
| 301 | 'cert/cert_verify_proc_openssl.cc', |
| 302 | 'cert/cert_verify_proc_openssl.h', |
| 303 | 'cert/test_root_certs_openssl.cc', |
| 304 | 'cert/x509_certificate_openssl.cc', |
| 305 | 'ssl/openssl_client_key_store.cc', |
| 306 | 'ssl/openssl_client_key_store.h', |
| 307 | ], |
| 308 | }], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 309 | [ 'use_glib == 1', { |
| 310 | 'dependencies': [ |
| 311 | '../build/linux/system.gyp:gconf', |
| 312 | '../build/linux/system.gyp:gio', |
| 313 | ], |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 314 | }], |
| 315 | [ 'desktop_linux == 1 or chromeos == 1', { |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 316 | 'conditions': [ |
Ben Murdoch | effb81e | 2014-03-31 11:51:25 +0100 | [diff] [blame] | 317 | ['use_openssl == 0', { |
| 318 | # use NSS |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 319 | 'dependencies': [ |
| 320 | '../build/linux/system.gyp:ssl', |
| 321 | ], |
| 322 | }], |
| 323 | ['os_bsd==1', { |
| 324 | 'sources!': [ |
| 325 | 'base/network_change_notifier_linux.cc', |
| 326 | 'base/network_change_notifier_netlink_linux.cc', |
| 327 | 'proxy/proxy_config_service_linux.cc', |
| 328 | ], |
| 329 | },{ |
| 330 | 'dependencies': [ |
| 331 | '../build/linux/system.gyp:libresolv', |
| 332 | ], |
| 333 | }], |
| 334 | ['OS=="solaris"', { |
| 335 | 'link_settings': { |
| 336 | 'ldflags': [ |
| 337 | '-R/usr/lib/mps', |
| 338 | ], |
| 339 | }, |
| 340 | }], |
| 341 | ], |
| 342 | }, |
| 343 | { # else: OS is not in the above list |
| 344 | 'sources!': [ |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 345 | 'base/crypto_module_nss.cc', |
| 346 | 'base/keygen_handler_nss.cc', |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 347 | 'cert/cert_database_nss.cc', |
| 348 | 'cert/nss_cert_database.cc', |
| 349 | 'cert/nss_cert_database.h', |
| 350 | 'cert/test_root_certs_nss.cc', |
| 351 | 'cert/x509_certificate_nss.cc', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 352 | 'ocsp/nss_ocsp.cc', |
| 353 | 'ocsp/nss_ocsp.h', |
| 354 | 'third_party/mozilla_security_manager/nsKeygenHandler.cpp', |
| 355 | 'third_party/mozilla_security_manager/nsKeygenHandler.h', |
| 356 | 'third_party/mozilla_security_manager/nsNSSCertificateDB.cpp', |
| 357 | 'third_party/mozilla_security_manager/nsNSSCertificateDB.h', |
| 358 | 'third_party/mozilla_security_manager/nsPKCS12Blob.cpp', |
| 359 | 'third_party/mozilla_security_manager/nsPKCS12Blob.h', |
| 360 | ], |
| 361 | }, |
| 362 | ], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 363 | [ 'use_nss != 1', { |
| 364 | 'sources!': [ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 365 | 'cert/cert_verify_proc_nss.cc', |
| 366 | 'cert/cert_verify_proc_nss.h', |
Torne (Richard Coles) | a3f6a49 | 2013-12-18 16:25:09 +0000 | [diff] [blame] | 367 | 'ssl/client_cert_store_nss.cc', |
| 368 | 'ssl/client_cert_store_nss.h', |
Ben Murdoch | c5cede9 | 2014-04-10 11:22:14 +0100 | [diff] [blame] | 369 | 'ssl/client_cert_store_chromeos.cc', |
| 370 | 'ssl/client_cert_store_chromeos.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 371 | ], |
| 372 | }], |
| 373 | [ 'enable_websockets != 1', { |
| 374 | 'sources/': [ |
| 375 | ['exclude', '^socket_stream/'], |
| 376 | ['exclude', '^websockets/'], |
| 377 | ], |
| 378 | 'sources!': [ |
| 379 | 'spdy/spdy_websocket_stream.cc', |
| 380 | 'spdy/spdy_websocket_stream.h', |
| 381 | ], |
| 382 | }], |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 383 | [ 'enable_mdns != 1', { |
| 384 | 'sources!' : [ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 385 | 'dns/mdns_cache.cc', |
| 386 | 'dns/mdns_cache.h', |
Torne (Richard Coles) | 7d4cd47 | 2013-06-19 11:58:07 +0100 | [diff] [blame] | 387 | 'dns/mdns_client.cc', |
| 388 | 'dns/mdns_client.h', |
| 389 | 'dns/mdns_client_impl.cc', |
| 390 | 'dns/mdns_client_impl.h', |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 391 | 'dns/record_parsed.cc', |
| 392 | 'dns/record_parsed.h', |
| 393 | 'dns/record_rdata.cc', |
| 394 | 'dns/record_rdata.h', |
| 395 | ] |
| 396 | }], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 397 | [ 'OS == "win"', { |
| 398 | 'sources!': [ |
| 399 | 'http/http_auth_handler_ntlm_portable.cc', |
Ben Murdoch | 116680a | 2014-07-20 18:25:52 -0700 | [diff] [blame] | 400 | 'socket/socket_libevent.cc', |
| 401 | 'socket/socket_libevent.h', |
Torne (Richard Coles) | 58537e2 | 2013-09-12 12:10:22 +0100 | [diff] [blame] | 402 | 'socket/tcp_socket_libevent.cc', |
| 403 | 'socket/tcp_socket_libevent.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 404 | 'udp/udp_socket_libevent.cc', |
| 405 | 'udp/udp_socket_libevent.h', |
| 406 | ], |
| 407 | 'dependencies': [ |
| 408 | '../third_party/nss/nss.gyp:nspr', |
| 409 | '../third_party/nss/nss.gyp:nss', |
| 410 | 'third_party/nss/ssl.gyp:libssl', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 411 | ], |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 412 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 413 | 'msvs_disabled_warnings': [4267, ], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 414 | }, { # else: OS != "win" |
| 415 | 'sources!': [ |
| 416 | 'base/winsock_init.cc', |
| 417 | 'base/winsock_init.h', |
| 418 | 'base/winsock_util.cc', |
| 419 | 'base/winsock_util.h', |
| 420 | 'proxy/proxy_resolver_winhttp.cc', |
| 421 | 'proxy/proxy_resolver_winhttp.h', |
| 422 | ], |
| 423 | }, |
| 424 | ], |
| 425 | [ 'OS == "mac"', { |
Ben Murdoch | effb81e | 2014-03-31 11:51:25 +0100 | [diff] [blame] | 426 | 'conditions': [ |
| 427 | [ 'use_openssl == 0', { |
| 428 | 'dependencies': [ |
| 429 | # defaults to nss |
| 430 | '../third_party/nss/nss.gyp:nspr', |
| 431 | '../third_party/nss/nss.gyp:nss', |
| 432 | 'third_party/nss/ssl.gyp:libssl', |
| 433 | ], |
| 434 | }], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 435 | ], |
| 436 | 'link_settings': { |
| 437 | 'libraries': [ |
| 438 | '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', |
| 439 | '$(SDKROOT)/System/Library/Frameworks/Security.framework', |
| 440 | '$(SDKROOT)/System/Library/Frameworks/SystemConfiguration.framework', |
| 441 | '$(SDKROOT)/usr/lib/libresolv.dylib', |
| 442 | ] |
| 443 | }, |
| 444 | }, |
| 445 | ], |
| 446 | [ 'OS == "ios"', { |
| 447 | 'dependencies': [ |
| 448 | '../third_party/nss/nss.gyp:nss', |
| 449 | 'third_party/nss/ssl.gyp:libssl', |
| 450 | ], |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 451 | 'sources!': [ |
Ben Murdoch | c5cede9 | 2014-04-10 11:22:14 +0100 | [diff] [blame] | 452 | 'disk_cache/blockfile/file_posix.cc', |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 453 | ], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 454 | 'link_settings': { |
| 455 | 'libraries': [ |
| 456 | '$(SDKROOT)/System/Library/Frameworks/CFNetwork.framework', |
| 457 | '$(SDKROOT)/System/Library/Frameworks/MobileCoreServices.framework', |
| 458 | '$(SDKROOT)/System/Library/Frameworks/Security.framework', |
| 459 | '$(SDKROOT)/System/Library/Frameworks/SystemConfiguration.framework', |
| 460 | '$(SDKROOT)/usr/lib/libresolv.dylib', |
| 461 | ], |
| 462 | }, |
| 463 | }, |
| 464 | ], |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 465 | ['OS=="android" and _toolset=="target" and android_webview_build == 0', { |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 466 | 'dependencies': [ |
| 467 | 'net_java', |
| 468 | ], |
| 469 | }], |
| 470 | [ 'OS == "android"', { |
| 471 | 'dependencies': [ |
Torne (Richard Coles) | 5f1c943 | 2014-08-12 13:47:38 +0100 | [diff] [blame] | 472 | '../third_party/boringssl/boringssl.gyp:boringssl', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 473 | 'net_jni_headers', |
| 474 | ], |
| 475 | 'sources!': [ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 476 | 'base/openssl_private_key_store_memory.cc', |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 477 | 'cert/cert_database_openssl.cc', |
| 478 | 'cert/cert_verify_proc_openssl.cc', |
| 479 | 'cert/test_root_certs_openssl.cc', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 480 | ], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 481 | }, |
| 482 | ], |
Torne (Richard Coles) | cedac22 | 2014-06-03 10:58:34 +0100 | [diff] [blame] | 483 | [ 'use_icu_alternatives_on_android == 1', { |
| 484 | 'dependencies!': [ |
| 485 | '../base/base.gyp:base_i18n', |
| 486 | '../third_party/icu/icu.gyp:icui18n', |
| 487 | '../third_party/icu/icu.gyp:icuuc', |
| 488 | ], |
| 489 | 'sources!': [ |
| 490 | 'base/filename_util_icu.cc', |
| 491 | 'base/net_string_util_icu.cc', |
| 492 | 'base/net_util_icu.cc', |
| 493 | ], |
| 494 | 'sources': [ |
| 495 | 'base/net_string_util_icu_alternatives_android.cc', |
| 496 | 'base/net_string_util_icu_alternatives_android.h', |
| 497 | ], |
| 498 | }, |
| 499 | ], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 500 | ], |
| 501 | 'target_conditions': [ |
| 502 | # These source files are excluded by default platform rules, but they |
| 503 | # are needed in specific cases on other platforms. Re-including them can |
| 504 | # only be done in target_conditions as it is evaluated after the |
| 505 | # platform rules. |
| 506 | ['OS == "android"', { |
| 507 | 'sources/': [ |
| 508 | ['include', '^base/platform_mime_util_linux\\.cc$'], |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 509 | ['include', '^base/address_tracker_linux\\.cc$'], |
| 510 | ['include', '^base/address_tracker_linux\\.h$'], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 511 | ], |
| 512 | }], |
| 513 | ['OS == "ios"', { |
| 514 | 'sources/': [ |
| 515 | ['include', '^base/network_change_notifier_mac\\.cc$'], |
| 516 | ['include', '^base/network_config_watcher_mac\\.cc$'], |
| 517 | ['include', '^base/platform_mime_util_mac\\.mm$'], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 518 | # The iOS implementation only partially uses NSS and thus does not |
| 519 | # defines |use_nss|. In particular the |USE_NSS| preprocessor |
| 520 | # definition is not used. The following files are needed though: |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 521 | ['include', '^cert/cert_verify_proc_nss\\.cc$'], |
| 522 | ['include', '^cert/cert_verify_proc_nss\\.h$'], |
| 523 | ['include', '^cert/test_root_certs_nss\\.cc$'], |
| 524 | ['include', '^cert/x509_util_nss\\.cc$'], |
| 525 | ['include', '^cert/x509_util_nss\\.h$'], |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 526 | ['include', '^proxy/proxy_resolver_mac\\.cc$'], |
| 527 | ['include', '^proxy/proxy_server_mac\\.cc$'], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 528 | ['include', '^ocsp/nss_ocsp\\.cc$'], |
| 529 | ['include', '^ocsp/nss_ocsp\\.h$'], |
| 530 | ], |
| 531 | }], |
| 532 | ], |
| 533 | }, |
| 534 | { |
| 535 | 'target_name': 'net_unittests', |
| 536 | 'type': '<(gtest_target_type)', |
| 537 | 'dependencies': [ |
| 538 | '../base/base.gyp:base', |
| 539 | '../base/base.gyp:base_i18n', |
Ben Murdoch | 116680a | 2014-07-20 18:25:52 -0700 | [diff] [blame] | 540 | '../base/base.gyp:base_prefs_test_support', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 541 | '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 542 | '../crypto/crypto.gyp:crypto', |
Torne (Richard Coles) | 5f1c943 | 2014-08-12 13:47:38 +0100 | [diff] [blame] | 543 | '../crypto/crypto.gyp:crypto_test_support', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 544 | '../testing/gmock.gyp:gmock', |
| 545 | '../testing/gtest.gyp:gtest', |
| 546 | '../third_party/zlib/zlib.gyp:zlib', |
Torne (Richard Coles) | 868fa2f | 2013-06-11 10:57:03 +0100 | [diff] [blame] | 547 | '../url/url.gyp:url_lib', |
Torne (Richard Coles) | f8ee788 | 2014-06-20 14:52:04 +0100 | [diff] [blame] | 548 | 'balsa', |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 549 | 'http_server', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 550 | 'net', |
Torne (Richard Coles) | cedac22 | 2014-06-03 10:58:34 +0100 | [diff] [blame] | 551 | 'net_derived_sources', |
| 552 | 'net_test_support', |
Ben Murdoch | 116680a | 2014-07-20 18:25:52 -0700 | [diff] [blame] | 553 | 'quic_tools', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 554 | ], |
| 555 | 'sources': [ |
Ben Murdoch | a02191e | 2014-04-16 11:17:03 +0100 | [diff] [blame] | 556 | '<@(net_test_sources)', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 557 | ], |
| 558 | 'conditions': [ |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 559 | ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', { |
| 560 | 'dependencies': [ |
Torne (Richard Coles) | 4e180b6 | 2013-10-18 15:46:22 +0100 | [diff] [blame] | 561 | 'epoll_server', |
| 562 | 'flip_in_mem_edsm_server_base', |
| 563 | 'quic_base', |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 564 | ], |
| 565 | 'sources': [ |
Ben Murdoch | a02191e | 2014-04-16 11:17:03 +0100 | [diff] [blame] | 566 | '<@(net_linux_test_sources)', |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 567 | ], |
| 568 | }], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 569 | ['chromeos==1', { |
| 570 | 'sources!': [ |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 571 | 'proxy/proxy_config_service_linux_unittest.cc', |
| 572 | ], |
| 573 | }], |
| 574 | [ 'OS == "android"', { |
| 575 | 'sources!': [ |
Ben Murdoch | effb81e | 2014-03-31 11:51:25 +0100 | [diff] [blame] | 576 | # See bug http://crbug.com/344533. |
| 577 | 'disk_cache/blockfile/index_table_v3_unittest.cc', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 578 | # No res_ninit() et al on Android, so this doesn't make a lot of |
| 579 | # sense. |
| 580 | 'dns/dns_config_service_posix_unittest.cc', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 581 | ], |
| 582 | 'dependencies': [ |
| 583 | 'net_javatests', |
| 584 | 'net_test_jni_headers', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 585 | ], |
| 586 | }], |
Torne (Richard Coles) | a3f6a49 | 2013-12-18 16:25:09 +0000 | [diff] [blame] | 587 | [ 'use_nss != 1', { |
| 588 | 'sources!': [ |
| 589 | 'ssl/client_cert_store_nss_unittest.cc', |
Ben Murdoch | c5cede9 | 2014-04-10 11:22:14 +0100 | [diff] [blame] | 590 | 'ssl/client_cert_store_chromeos_unittest.cc', |
Torne (Richard Coles) | a3f6a49 | 2013-12-18 16:25:09 +0000 | [diff] [blame] | 591 | ], |
| 592 | }], |
| 593 | [ 'use_openssl == 1', { |
| 594 | # Avoid compiling/linking with the system library. |
| 595 | 'dependencies': [ |
Torne (Richard Coles) | 5f1c943 | 2014-08-12 13:47:38 +0100 | [diff] [blame] | 596 | '../third_party/boringssl/boringssl.gyp:boringssl', |
Torne (Richard Coles) | a3f6a49 | 2013-12-18 16:25:09 +0000 | [diff] [blame] | 597 | ], |
| 598 | }, { # use_openssl == 0 |
| 599 | 'conditions': [ |
| 600 | [ 'desktop_linux == 1 or chromeos == 1', { |
| 601 | 'dependencies': [ |
| 602 | '../build/linux/system.gyp:ssl', |
| 603 | ], |
| 604 | }, { # desktop_linux == 0 and chromeos == 0 |
| 605 | 'sources!': [ |
| 606 | 'cert/nss_cert_database_unittest.cc', |
| 607 | ], |
| 608 | }], |
| 609 | ], |
| 610 | }], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 611 | [ 'os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', { |
| 612 | 'conditions': [ |
Torne (Richard Coles) | 010d83a | 2014-05-14 12:12:37 +0100 | [diff] [blame] | 613 | ['use_allocator!="none"', { |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 614 | 'dependencies': [ |
| 615 | '../base/allocator/allocator.gyp:allocator', |
| 616 | ], |
| 617 | }], |
| 618 | ], |
| 619 | }], |
| 620 | [ 'use_kerberos==1', { |
| 621 | 'defines': [ |
| 622 | 'USE_KERBEROS', |
| 623 | ], |
| 624 | }, { # use_kerberos == 0 |
| 625 | 'sources!': [ |
| 626 | 'http/http_auth_gssapi_posix_unittest.cc', |
| 627 | 'http/http_auth_handler_negotiate_unittest.cc', |
| 628 | 'http/mock_gssapi_library_posix.cc', |
| 629 | 'http/mock_gssapi_library_posix.h', |
| 630 | ], |
| 631 | }], |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 632 | [ 'use_openssl == 1 or (desktop_linux == 0 and chromeos == 0 and OS != "ios")', { |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 633 | # Only include this test when on Posix and using NSS for |
| 634 | # cert verification or on iOS (which also uses NSS for certs). |
| 635 | 'sources!': [ |
| 636 | 'ocsp/nss_ocsp_unittest.cc', |
| 637 | ], |
| 638 | }], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 639 | [ 'use_openssl==1', { |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 640 | # When building for OpenSSL, we need to exclude NSS specific tests |
| 641 | # or functionality not supported by OpenSSL yet. |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 642 | # TODO(bulach): Add equivalent tests when the underlying |
| 643 | # functionality is ported to OpenSSL. |
| 644 | 'sources!': [ |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 645 | 'cert/ct_objects_extractor_unittest.cc', |
| 646 | 'cert/multi_log_ct_verifier_unittest.cc', |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 647 | 'cert/nss_cert_database_unittest.cc', |
Ben Murdoch | c5cede9 | 2014-04-10 11:22:14 +0100 | [diff] [blame] | 648 | 'cert/nss_cert_database_chromeos_unittest.cc', |
| 649 | 'cert/nss_profile_filter_chromeos_unittest.cc', |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 650 | 'cert/x509_util_nss_unittest.cc', |
Torne (Richard Coles) | 868fa2f | 2013-06-11 10:57:03 +0100 | [diff] [blame] | 651 | 'quic/test_tools/crypto_test_utils_nss.cc', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 652 | ], |
| 653 | }, { # else !use_openssl: remove the unneeded files |
| 654 | 'sources!': [ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 655 | 'cert/x509_util_openssl_unittest.cc', |
Torne (Richard Coles) | 868fa2f | 2013-06-11 10:57:03 +0100 | [diff] [blame] | 656 | 'quic/test_tools/crypto_test_utils_openssl.cc', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 657 | 'socket/ssl_client_socket_openssl_unittest.cc', |
Torne (Richard Coles) | a3f6a49 | 2013-12-18 16:25:09 +0000 | [diff] [blame] | 658 | 'socket/ssl_session_cache_openssl_unittest.cc', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 659 | ], |
| 660 | }, |
| 661 | ], |
Ben Murdoch | effb81e | 2014-03-31 11:51:25 +0100 | [diff] [blame] | 662 | [ 'use_openssl_certs == 0', { |
| 663 | 'sources!': [ |
| 664 | 'ssl/openssl_client_key_store_unittest.cc', |
| 665 | ], |
| 666 | }], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 667 | [ 'enable_websockets != 1', { |
| 668 | 'sources/': [ |
| 669 | ['exclude', '^socket_stream/'], |
| 670 | ['exclude', '^websockets/'], |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 671 | ['exclude', '^spdy/spdy_websocket_stream_unittest\\.cc$'], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 672 | ], |
| 673 | }], |
Torne (Richard Coles) | 010d83a | 2014-05-14 12:12:37 +0100 | [diff] [blame] | 674 | ['disable_file_support==1', { |
| 675 | 'sources!': [ |
| 676 | 'base/directory_lister_unittest.cc', |
| 677 | 'url_request/url_request_file_job_unittest.cc', |
| 678 | ], |
| 679 | }], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 680 | [ 'disable_ftp_support==1', { |
| 681 | 'sources/': [ |
| 682 | ['exclude', '^ftp/'], |
| 683 | ], |
| 684 | 'sources!': [ |
| 685 | 'url_request/url_request_ftp_job_unittest.cc', |
| 686 | ], |
| 687 | }, |
| 688 | ], |
| 689 | [ 'enable_built_in_dns!=1', { |
| 690 | 'sources!': [ |
| 691 | 'dns/address_sorter_posix_unittest.cc', |
| 692 | 'dns/address_sorter_unittest.cc', |
| 693 | ], |
| 694 | }, |
| 695 | ], |
Torne (Richard Coles) | cedac22 | 2014-06-03 10:58:34 +0100 | [diff] [blame] | 696 | # Always need use_v8_in_net to be 1 to run gyp on Android, so just |
| 697 | # remove net_unittest's dependency on v8 when using icu alternatives |
| 698 | # instead of setting use_v8_in_net to 0. |
| 699 | [ 'use_v8_in_net==1 and use_icu_alternatives_on_android==0', { |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 700 | 'dependencies': [ |
| 701 | 'net_with_v8', |
| 702 | ], |
| 703 | }, { # else: !use_v8_in_net |
| 704 | 'sources!': [ |
| 705 | 'proxy/proxy_resolver_v8_unittest.cc', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 706 | 'proxy/proxy_resolver_v8_tracing_unittest.cc', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 707 | ], |
| 708 | }, |
| 709 | ], |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 710 | |
| 711 | [ 'enable_mdns != 1', { |
| 712 | 'sources!' : [ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 713 | 'dns/mdns_cache_unittest.cc', |
Torne (Richard Coles) | 7d4cd47 | 2013-06-19 11:58:07 +0100 | [diff] [blame] | 714 | 'dns/mdns_client_unittest.cc', |
| 715 | 'dns/mdns_query_unittest.cc', |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 716 | 'dns/record_parsed_unittest.cc', |
| 717 | 'dns/record_rdata_unittest.cc', |
| 718 | ], |
| 719 | }], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 720 | [ 'OS == "win"', { |
| 721 | 'sources!': [ |
| 722 | 'dns/dns_config_service_posix_unittest.cc', |
| 723 | 'http/http_auth_gssapi_posix_unittest.cc', |
| 724 | ], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 725 | 'dependencies': [ |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 726 | '../third_party/nss/nss.gyp:nspr', |
| 727 | '../third_party/nss/nss.gyp:nss', |
| 728 | 'third_party/nss/ssl.gyp:libssl', |
| 729 | ], |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 730 | 'conditions': [ |
| 731 | [ 'icu_use_data_file_flag == 0', { |
| 732 | # This is needed to trigger the dll copy step on windows. |
| 733 | # TODO(mark): Specifying this here shouldn't be necessary. |
| 734 | 'dependencies': [ |
| 735 | '../third_party/icu/icu.gyp:icudata', |
| 736 | ], |
| 737 | }], |
| 738 | ], |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 739 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 740 | 'msvs_disabled_warnings': [4267, ], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 741 | }, |
| 742 | ], |
Ben Murdoch | effb81e | 2014-03-31 11:51:25 +0100 | [diff] [blame] | 743 | [ 'OS == "mac" and use_openssl == 0', { |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 744 | 'dependencies': [ |
| 745 | '../third_party/nss/nss.gyp:nspr', |
| 746 | '../third_party/nss/nss.gyp:nss', |
| 747 | 'third_party/nss/ssl.gyp:libssl', |
| 748 | ], |
| 749 | }, |
| 750 | ], |
| 751 | [ 'OS == "ios"', { |
| 752 | 'dependencies': [ |
| 753 | '../third_party/nss/nss.gyp:nss', |
| 754 | ], |
| 755 | 'actions': [ |
| 756 | { |
| 757 | 'action_name': 'copy_test_data', |
| 758 | 'variables': { |
| 759 | 'test_data_files': [ |
| 760 | 'data/ssl/certificates/', |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 761 | 'data/test.html', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 762 | 'data/url_request_unittest/', |
| 763 | ], |
| 764 | 'test_data_prefix': 'net', |
| 765 | }, |
| 766 | 'includes': [ '../build/copy_test_data_ios.gypi' ], |
| 767 | }, |
| 768 | ], |
| 769 | 'sources!': [ |
| 770 | # TODO(droger): The following tests are disabled because the |
| 771 | # implementation is missing or incomplete. |
| 772 | # KeygenHandler::GenKeyAndSignChallenge() is not ported to iOS. |
| 773 | 'base/keygen_handler_unittest.cc', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 774 | 'disk_cache/backend_unittest.cc', |
Torne (Richard Coles) | a140131 | 2014-03-18 10:20:56 +0000 | [diff] [blame] | 775 | 'disk_cache/blockfile/block_files_unittest.cc', |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 776 | # Need to read input data files. |
| 777 | 'filter/gzip_filter_unittest.cc', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 778 | 'socket/ssl_server_socket_unittest.cc', |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame] | 779 | 'spdy/fuzzing/hpack_fuzz_util_test.cc', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 780 | # Need TestServer. |
| 781 | 'proxy/proxy_script_fetcher_impl_unittest.cc', |
| 782 | 'socket/ssl_client_socket_unittest.cc', |
| 783 | 'url_request/url_fetcher_impl_unittest.cc', |
| 784 | 'url_request/url_request_context_builder_unittest.cc', |
| 785 | # Needs GetAppOutput(). |
| 786 | 'test/python_utils_unittest.cc', |
| 787 | |
| 788 | # The following tests are disabled because they don't apply to |
| 789 | # iOS. |
| 790 | # OS is not "linux" or "freebsd" or "openbsd". |
Torne (Richard Coles) | 5f1c943 | 2014-08-12 13:47:38 +0100 | [diff] [blame] | 791 | 'socket/unix_domain_client_socket_posix_unittest.cc', |
| 792 | 'socket/unix_domain_listen_socket_posix_unittest.cc', |
| 793 | 'socket/unix_domain_server_socket_posix_unittest.cc', |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 794 | |
Ben Murdoch | effb81e | 2014-03-31 11:51:25 +0100 | [diff] [blame] | 795 | # See bug http://crbug.com/344533. |
| 796 | 'disk_cache/blockfile/index_table_v3_unittest.cc', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 797 | ], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 798 | }], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 799 | [ 'OS == "android"', { |
| 800 | 'dependencies': [ |
Torne (Richard Coles) | 5f1c943 | 2014-08-12 13:47:38 +0100 | [diff] [blame] | 801 | '../third_party/boringssl/boringssl.gyp:boringssl', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 802 | ], |
| 803 | 'sources!': [ |
| 804 | 'dns/dns_config_service_posix_unittest.cc', |
| 805 | ], |
| 806 | }, |
| 807 | ], |
Torne (Richard Coles) | cedac22 | 2014-06-03 10:58:34 +0100 | [diff] [blame] | 808 | ['OS == "android"', { |
| 809 | # TODO(mmenke): This depends on test_support_base, which depends on |
| 810 | # icu. Figure out a way to remove that dependency. |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 811 | 'dependencies': [ |
| 812 | '../testing/android/native_test.gyp:native_test_native_code', |
| 813 | ] |
| 814 | }], |
Torne (Richard Coles) | cedac22 | 2014-06-03 10:58:34 +0100 | [diff] [blame] | 815 | [ 'use_icu_alternatives_on_android == 1', { |
| 816 | 'dependencies!': [ |
| 817 | '../base/base.gyp:base_i18n', |
| 818 | ], |
| 819 | 'sources!': [ |
| 820 | 'base/filename_util_unittest.cc', |
| 821 | 'base/net_util_icu_unittest.cc', |
| 822 | ], |
| 823 | }, |
| 824 | ], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 825 | ], |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 826 | 'target_conditions': [ |
| 827 | # These source files are excluded by default platform rules, but they |
| 828 | # are needed in specific cases on other platforms. Re-including them can |
| 829 | # only be done in target_conditions as it is evaluated after the |
| 830 | # platform rules. |
| 831 | ['OS == "android"', { |
| 832 | 'sources/': [ |
| 833 | ['include', '^base/address_tracker_linux_unittest\\.cc$'], |
| 834 | ], |
| 835 | }], |
| 836 | ], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 837 | }, |
| 838 | { |
| 839 | 'target_name': 'net_perftests', |
| 840 | 'type': 'executable', |
| 841 | 'dependencies': [ |
| 842 | '../base/base.gyp:base', |
| 843 | '../base/base.gyp:base_i18n', |
| 844 | '../base/base.gyp:test_support_perf', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 845 | '../testing/gtest.gyp:gtest', |
Torne (Richard Coles) | 868fa2f | 2013-06-11 10:57:03 +0100 | [diff] [blame] | 846 | '../url/url.gyp:url_lib', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 847 | 'net', |
| 848 | 'net_test_support', |
| 849 | ], |
| 850 | 'sources': [ |
| 851 | 'cookies/cookie_monster_perftest.cc', |
Torne (Richard Coles) | a140131 | 2014-03-18 10:20:56 +0000 | [diff] [blame] | 852 | 'disk_cache/blockfile/disk_cache_perftest.cc', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 853 | 'proxy/proxy_resolver_perftest.cc', |
| 854 | ], |
| 855 | 'conditions': [ |
| 856 | [ 'use_v8_in_net==1', { |
| 857 | 'dependencies': [ |
| 858 | 'net_with_v8', |
| 859 | ], |
| 860 | }, { # else: !use_v8_in_net |
| 861 | 'sources!': [ |
| 862 | 'proxy/proxy_resolver_perftest.cc', |
| 863 | ], |
| 864 | }, |
| 865 | ], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 866 | [ 'OS == "win"', { |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 867 | 'conditions': [ |
| 868 | [ 'icu_use_data_file_flag == 0', { |
| 869 | # This is needed to trigger the dll copy step on windows. |
| 870 | # TODO(mark): Specifying this here shouldn't be necessary. |
| 871 | 'dependencies': [ |
| 872 | '../third_party/icu/icu.gyp:icudata', |
| 873 | ], |
| 874 | }], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 875 | ], |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 876 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 877 | 'msvs_disabled_warnings': [4267, ], |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 878 | }], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 879 | ], |
| 880 | }, |
| 881 | { |
| 882 | 'target_name': 'net_test_support', |
| 883 | 'type': 'static_library', |
| 884 | 'dependencies': [ |
| 885 | '../base/base.gyp:base', |
| 886 | '../base/base.gyp:test_support_base', |
Torne (Richard Coles) | a93a17c | 2013-05-15 11:34:50 +0100 | [diff] [blame] | 887 | '../net/tools/tld_cleanup/tld_cleanup.gyp:tld_cleanup_util', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 888 | '../testing/gtest.gyp:gtest', |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 889 | '../testing/gmock.gyp:gmock', |
Torne (Richard Coles) | 868fa2f | 2013-06-11 10:57:03 +0100 | [diff] [blame] | 890 | '../url/url.gyp:url_lib', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 891 | 'net', |
| 892 | ], |
| 893 | 'export_dependent_settings': [ |
| 894 | '../base/base.gyp:base', |
Torne (Richard Coles) | cedac22 | 2014-06-03 10:58:34 +0100 | [diff] [blame] | 895 | # TODO(mmenke): This depends on icu, figure out a way to build tests |
| 896 | # without icu. |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 897 | '../base/base.gyp:test_support_base', |
| 898 | '../testing/gtest.gyp:gtest', |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 899 | '../testing/gmock.gyp:gmock', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 900 | ], |
| 901 | 'sources': [ |
| 902 | 'base/capturing_net_log.cc', |
| 903 | 'base/capturing_net_log.h', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 904 | 'base/load_timing_info_test_util.cc', |
| 905 | 'base/load_timing_info_test_util.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 906 | 'base/mock_file_stream.cc', |
| 907 | 'base/mock_file_stream.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 908 | 'base/test_completion_callback.cc', |
| 909 | 'base/test_completion_callback.h', |
| 910 | 'base/test_data_directory.cc', |
| 911 | 'base/test_data_directory.h', |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 912 | 'cert/mock_cert_verifier.cc', |
| 913 | 'cert/mock_cert_verifier.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 914 | 'cookies/cookie_monster_store_test.cc', |
| 915 | 'cookies/cookie_monster_store_test.h', |
| 916 | 'cookies/cookie_store_test_callbacks.cc', |
| 917 | 'cookies/cookie_store_test_callbacks.h', |
| 918 | 'cookies/cookie_store_test_helpers.cc', |
| 919 | 'cookies/cookie_store_test_helpers.h', |
| 920 | 'disk_cache/disk_cache_test_base.cc', |
| 921 | 'disk_cache/disk_cache_test_base.h', |
| 922 | 'disk_cache/disk_cache_test_util.cc', |
| 923 | 'disk_cache/disk_cache_test_util.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 924 | 'dns/dns_test_util.cc', |
| 925 | 'dns/dns_test_util.h', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 926 | 'dns/mock_host_resolver.cc', |
| 927 | 'dns/mock_host_resolver.h', |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 928 | 'dns/mock_mdns_socket_factory.cc', |
| 929 | 'dns/mock_mdns_socket_factory.h', |
Torne (Richard Coles) | cedac22 | 2014-06-03 10:58:34 +0100 | [diff] [blame] | 930 | 'http/http_transaction_test_util.cc', |
| 931 | 'http/http_transaction_test_util.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 932 | 'proxy/mock_proxy_resolver.cc', |
| 933 | 'proxy/mock_proxy_resolver.h', |
| 934 | 'proxy/mock_proxy_script_fetcher.cc', |
| 935 | 'proxy/mock_proxy_script_fetcher.h', |
| 936 | 'proxy/proxy_config_service_common_unittest.cc', |
| 937 | 'proxy/proxy_config_service_common_unittest.h', |
| 938 | 'socket/socket_test_util.cc', |
| 939 | 'socket/socket_test_util.h', |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 940 | 'test/cert_test_util.cc', |
| 941 | 'test/cert_test_util.h', |
Ben Murdoch | 116680a | 2014-07-20 18:25:52 -0700 | [diff] [blame] | 942 | 'test/cert_test_util_nss.cc', |
Torne (Richard Coles) | 0f1bc08 | 2013-11-06 12:27:47 +0000 | [diff] [blame] | 943 | 'test/ct_test_util.cc', |
| 944 | 'test/ct_test_util.h', |
Torne (Richard Coles) | b2df76e | 2013-05-13 16:52:09 +0100 | [diff] [blame] | 945 | 'test/embedded_test_server/embedded_test_server.cc', |
| 946 | 'test/embedded_test_server/embedded_test_server.h', |
| 947 | 'test/embedded_test_server/http_connection.cc', |
| 948 | 'test/embedded_test_server/http_connection.h', |
| 949 | 'test/embedded_test_server/http_request.cc', |
| 950 | 'test/embedded_test_server/http_request.h', |
| 951 | 'test/embedded_test_server/http_response.cc', |
| 952 | 'test/embedded_test_server/http_response.h', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 953 | 'test/net_test_suite.cc', |
| 954 | 'test/net_test_suite.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 955 | 'test/python_utils.cc', |
| 956 | 'test/python_utils.h', |
Torne (Richard Coles) | b2df76e | 2013-05-13 16:52:09 +0100 | [diff] [blame] | 957 | 'test/spawned_test_server/base_test_server.cc', |
| 958 | 'test/spawned_test_server/base_test_server.h', |
| 959 | 'test/spawned_test_server/local_test_server_posix.cc', |
| 960 | 'test/spawned_test_server/local_test_server_win.cc', |
| 961 | 'test/spawned_test_server/local_test_server.cc', |
| 962 | 'test/spawned_test_server/local_test_server.h', |
| 963 | 'test/spawned_test_server/remote_test_server.cc', |
| 964 | 'test/spawned_test_server/remote_test_server.h', |
| 965 | 'test/spawned_test_server/spawned_test_server.h', |
| 966 | 'test/spawned_test_server/spawner_communicator.cc', |
| 967 | 'test/spawned_test_server/spawner_communicator.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 968 | 'url_request/test_url_fetcher_factory.cc', |
| 969 | 'url_request/test_url_fetcher_factory.h', |
| 970 | 'url_request/url_request_test_util.cc', |
| 971 | 'url_request/url_request_test_util.h', |
| 972 | ], |
| 973 | 'conditions': [ |
Torne (Richard Coles) | b2df76e | 2013-05-13 16:52:09 +0100 | [diff] [blame] | 974 | ['OS != "ios"', { |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 975 | 'dependencies': [ |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 976 | '../third_party/protobuf/protobuf.gyp:py_proto', |
| 977 | ], |
| 978 | }], |
| 979 | ['os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', { |
| 980 | 'conditions': [ |
| 981 | ['use_openssl==1', { |
| 982 | 'dependencies': [ |
Torne (Richard Coles) | 5f1c943 | 2014-08-12 13:47:38 +0100 | [diff] [blame] | 983 | '../third_party/boringssl/boringssl.gyp:boringssl', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 984 | ], |
| 985 | }, { |
| 986 | 'dependencies': [ |
| 987 | '../build/linux/system.gyp:ssl', |
| 988 | ], |
| 989 | }], |
| 990 | ], |
| 991 | }], |
| 992 | ['os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', { |
| 993 | 'conditions': [ |
Torne (Richard Coles) | 010d83a | 2014-05-14 12:12:37 +0100 | [diff] [blame] | 994 | ['use_allocator!="none"', { |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 995 | 'dependencies': [ |
| 996 | '../base/allocator/allocator.gyp:allocator', |
| 997 | ], |
| 998 | }], |
| 999 | ], |
| 1000 | }], |
| 1001 | ['OS != "android"', { |
| 1002 | 'sources!': [ |
Torne (Richard Coles) | b2df76e | 2013-05-13 16:52:09 +0100 | [diff] [blame] | 1003 | 'test/spawned_test_server/remote_test_server.cc', |
| 1004 | 'test/spawned_test_server/remote_test_server.h', |
| 1005 | 'test/spawned_test_server/spawner_communicator.cc', |
| 1006 | 'test/spawned_test_server/spawner_communicator.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1007 | ], |
| 1008 | }], |
| 1009 | ['OS == "ios"', { |
| 1010 | 'dependencies': [ |
| 1011 | '../third_party/nss/nss.gyp:nss', |
| 1012 | ], |
| 1013 | }], |
| 1014 | [ 'use_v8_in_net==1', { |
| 1015 | 'dependencies': [ |
| 1016 | 'net_with_v8', |
| 1017 | ], |
| 1018 | }, |
| 1019 | ], |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 1020 | [ 'enable_mdns != 1', { |
| 1021 | 'sources!' : [ |
| 1022 | 'dns/mock_mdns_socket_factory.cc', |
| 1023 | 'dns/mock_mdns_socket_factory.h' |
| 1024 | ] |
| 1025 | }], |
Ben Murdoch | 116680a | 2014-07-20 18:25:52 -0700 | [diff] [blame] | 1026 | [ 'use_nss != 1', { |
| 1027 | 'sources!': [ |
| 1028 | 'test/cert_test_util_nss.cc', |
| 1029 | ], |
| 1030 | }], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1031 | ], |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1032 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 1033 | 'msvs_disabled_warnings': [4267, ], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1034 | }, |
| 1035 | { |
| 1036 | 'target_name': 'net_resources', |
| 1037 | 'type': 'none', |
| 1038 | 'variables': { |
| 1039 | 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/net', |
| 1040 | }, |
| 1041 | 'actions': [ |
| 1042 | { |
| 1043 | 'action_name': 'net_resources', |
| 1044 | 'variables': { |
| 1045 | 'grit_grd_file': 'base/net_resources.grd', |
| 1046 | }, |
| 1047 | 'includes': [ '../build/grit_action.gypi' ], |
| 1048 | }, |
| 1049 | ], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1050 | }, |
| 1051 | { |
| 1052 | 'target_name': 'http_server', |
| 1053 | 'type': 'static_library', |
| 1054 | 'variables': { 'enable_wexit_time_destructors': 1, }, |
| 1055 | 'dependencies': [ |
| 1056 | '../base/base.gyp:base', |
| 1057 | 'net', |
| 1058 | ], |
| 1059 | 'sources': [ |
| 1060 | 'server/http_connection.cc', |
| 1061 | 'server/http_connection.h', |
| 1062 | 'server/http_server.cc', |
| 1063 | 'server/http_server.h', |
| 1064 | 'server/http_server_request_info.cc', |
| 1065 | 'server/http_server_request_info.h', |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 1066 | 'server/http_server_response_info.cc', |
| 1067 | 'server/http_server_response_info.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1068 | 'server/web_socket.cc', |
| 1069 | 'server/web_socket.h', |
| 1070 | ], |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1071 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 1072 | 'msvs_disabled_warnings': [4267, ], |
| 1073 | }, |
| 1074 | { |
Torne (Richard Coles) | f8ee788 | 2014-06-20 14:52:04 +0100 | [diff] [blame] | 1075 | 'target_name': 'balsa', |
| 1076 | 'type': 'static_library', |
| 1077 | 'dependencies': [ |
| 1078 | '../base/base.gyp:base', |
| 1079 | 'net', |
| 1080 | ], |
| 1081 | 'sources': [ |
| 1082 | 'tools/balsa/balsa_enums.h', |
| 1083 | 'tools/balsa/balsa_frame.cc', |
| 1084 | 'tools/balsa/balsa_frame.h', |
| 1085 | 'tools/balsa/balsa_headers.cc', |
| 1086 | 'tools/balsa/balsa_headers.h', |
| 1087 | 'tools/balsa/balsa_headers_token_utils.cc', |
| 1088 | 'tools/balsa/balsa_headers_token_utils.h', |
| 1089 | 'tools/balsa/balsa_visitor_interface.h', |
| 1090 | 'tools/balsa/http_message_constants.cc', |
| 1091 | 'tools/balsa/http_message_constants.h', |
| 1092 | 'tools/balsa/noop_balsa_visitor.h', |
| 1093 | 'tools/balsa/simple_buffer.cc', |
| 1094 | 'tools/balsa/simple_buffer.h', |
| 1095 | 'tools/balsa/split.cc', |
| 1096 | 'tools/balsa/split.h', |
| 1097 | 'tools/balsa/string_piece_utils.h', |
| 1098 | 'tools/quic/spdy_utils.cc', |
| 1099 | 'tools/quic/spdy_utils.h', |
| 1100 | ], |
| 1101 | }, |
| 1102 | { |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1103 | 'target_name': 'dump_cache', |
| 1104 | 'type': 'executable', |
| 1105 | 'dependencies': [ |
| 1106 | '../base/base.gyp:base', |
| 1107 | 'net', |
| 1108 | 'net_test_support', |
| 1109 | ], |
| 1110 | 'sources': [ |
| 1111 | 'tools/dump_cache/cache_dumper.cc', |
| 1112 | 'tools/dump_cache/cache_dumper.h', |
| 1113 | 'tools/dump_cache/dump_cache.cc', |
| 1114 | 'tools/dump_cache/dump_files.cc', |
| 1115 | 'tools/dump_cache/dump_files.h', |
| 1116 | 'tools/dump_cache/simple_cache_dumper.cc', |
| 1117 | 'tools/dump_cache/simple_cache_dumper.h', |
| 1118 | 'tools/dump_cache/upgrade_win.cc', |
| 1119 | 'tools/dump_cache/upgrade_win.h', |
| 1120 | 'tools/dump_cache/url_to_filename_encoder.cc', |
| 1121 | 'tools/dump_cache/url_to_filename_encoder.h', |
| 1122 | 'tools/dump_cache/url_utilities.h', |
| 1123 | 'tools/dump_cache/url_utilities.cc', |
| 1124 | ], |
| 1125 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 1126 | 'msvs_disabled_warnings': [4267, ], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1127 | }, |
Ben Murdoch | 116680a | 2014-07-20 18:25:52 -0700 | [diff] [blame] | 1128 | { |
| 1129 | # This is a temporary target which will be merged into 'net' once the |
| 1130 | # dependency on balsa is eliminated and the classes are actually used. |
| 1131 | 'target_name': 'quic_tools', |
| 1132 | 'type': 'static_library', |
| 1133 | 'dependencies': [ |
| 1134 | '../base/base.gyp:base', |
| 1135 | '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', |
| 1136 | '../url/url.gyp:url_lib', |
| 1137 | 'net', |
| 1138 | ], |
| 1139 | 'sources': [ |
| 1140 | 'quic/quic_dispatcher.cc', |
| 1141 | 'quic/quic_dispatcher.h', |
| 1142 | 'quic/quic_in_memory_cache.cc', |
| 1143 | 'quic/quic_in_memory_cache.h', |
| 1144 | 'quic/quic_per_connection_packet_writer.cc', |
| 1145 | 'quic/quic_per_connection_packet_writer.h', |
| 1146 | 'quic/quic_server.cc', |
| 1147 | 'quic/quic_server.h', |
| 1148 | 'quic/quic_server_packet_writer.cc', |
| 1149 | 'quic/quic_server_packet_writer.h', |
| 1150 | 'quic/quic_server_session.cc', |
| 1151 | 'quic/quic_server_session.h', |
| 1152 | 'quic/quic_spdy_server_stream.cc', |
| 1153 | 'quic/quic_spdy_server_stream.h', |
| 1154 | 'quic/quic_time_wait_list_manager.cc', |
| 1155 | 'quic/quic_time_wait_list_manager.h', |
| 1156 | ], |
| 1157 | }, |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1158 | ], |
| 1159 | 'conditions': [ |
| 1160 | ['use_v8_in_net == 1', { |
| 1161 | 'targets': [ |
| 1162 | { |
| 1163 | 'target_name': 'net_with_v8', |
| 1164 | 'type': '<(component)', |
| 1165 | 'variables': { 'enable_wexit_time_destructors': 1, }, |
| 1166 | 'dependencies': [ |
| 1167 | '../base/base.gyp:base', |
Ben Murdoch | c5cede9 | 2014-04-10 11:22:14 +0100 | [diff] [blame] | 1168 | '../gin/gin.gyp:gin', |
Torne (Richard Coles) | 868fa2f | 2013-06-11 10:57:03 +0100 | [diff] [blame] | 1169 | '../url/url.gyp:url_lib', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1170 | '../v8/tools/gyp/v8.gyp:v8', |
| 1171 | 'net' |
| 1172 | ], |
| 1173 | 'defines': [ |
| 1174 | 'NET_IMPLEMENTATION', |
| 1175 | ], |
| 1176 | 'sources': [ |
| 1177 | 'proxy/proxy_resolver_v8.cc', |
| 1178 | 'proxy/proxy_resolver_v8.h', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1179 | 'proxy/proxy_resolver_v8_tracing.cc', |
| 1180 | 'proxy/proxy_resolver_v8_tracing.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1181 | 'proxy/proxy_service_v8.cc', |
| 1182 | 'proxy/proxy_service_v8.h', |
| 1183 | ], |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1184 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 1185 | 'msvs_disabled_warnings': [4267, ], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1186 | }, |
| 1187 | ], |
| 1188 | }], |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 1189 | ['OS != "ios" and OS != "android"', { |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1190 | 'targets': [ |
| 1191 | # iOS doesn't have the concept of simple executables, these targets |
| 1192 | # can't be compiled on the platform. |
| 1193 | { |
| 1194 | 'target_name': 'crash_cache', |
| 1195 | 'type': 'executable', |
| 1196 | 'dependencies': [ |
| 1197 | '../base/base.gyp:base', |
| 1198 | 'net', |
| 1199 | 'net_test_support', |
| 1200 | ], |
| 1201 | 'sources': [ |
| 1202 | 'tools/crash_cache/crash_cache.cc', |
| 1203 | ], |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1204 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 1205 | 'msvs_disabled_warnings': [4267, ], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1206 | }, |
| 1207 | { |
| 1208 | 'target_name': 'crl_set_dump', |
| 1209 | 'type': 'executable', |
| 1210 | 'dependencies': [ |
| 1211 | '../base/base.gyp:base', |
| 1212 | 'net', |
| 1213 | ], |
| 1214 | 'sources': [ |
| 1215 | 'tools/crl_set_dump/crl_set_dump.cc', |
| 1216 | ], |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1217 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 1218 | 'msvs_disabled_warnings': [4267, ], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1219 | }, |
| 1220 | { |
| 1221 | 'target_name': 'dns_fuzz_stub', |
| 1222 | 'type': 'executable', |
| 1223 | 'dependencies': [ |
| 1224 | '../base/base.gyp:base', |
| 1225 | 'net', |
| 1226 | ], |
| 1227 | 'sources': [ |
| 1228 | 'tools/dns_fuzz_stub/dns_fuzz_stub.cc', |
| 1229 | ], |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1230 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 1231 | 'msvs_disabled_warnings': [4267, ], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1232 | }, |
| 1233 | { |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1234 | 'target_name': 'gdig', |
| 1235 | 'type': 'executable', |
| 1236 | 'dependencies': [ |
| 1237 | '../base/base.gyp:base', |
| 1238 | 'net', |
| 1239 | ], |
| 1240 | 'sources': [ |
| 1241 | 'tools/gdig/file_net_log.cc', |
| 1242 | 'tools/gdig/gdig.cc', |
| 1243 | ], |
| 1244 | }, |
| 1245 | { |
| 1246 | 'target_name': 'get_server_time', |
| 1247 | 'type': 'executable', |
| 1248 | 'dependencies': [ |
| 1249 | '../base/base.gyp:base', |
| 1250 | '../base/base.gyp:base_i18n', |
Torne (Richard Coles) | 868fa2f | 2013-06-11 10:57:03 +0100 | [diff] [blame] | 1251 | '../url/url.gyp:url_lib', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1252 | 'net', |
| 1253 | ], |
| 1254 | 'sources': [ |
| 1255 | 'tools/get_server_time/get_server_time.cc', |
| 1256 | ], |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1257 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 1258 | 'msvs_disabled_warnings': [4267, ], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1259 | }, |
| 1260 | { |
Torne (Richard Coles) | 010d83a | 2014-05-14 12:12:37 +0100 | [diff] [blame] | 1261 | 'target_name': 'hpack_example_generator', |
| 1262 | 'type': 'executable', |
| 1263 | 'dependencies': [ |
| 1264 | '../base/base.gyp:base', |
| 1265 | 'net', |
| 1266 | ], |
| 1267 | 'sources': [ |
| 1268 | 'spdy/fuzzing/hpack_example_generator.cc', |
| 1269 | ], |
| 1270 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 1271 | 'msvs_disabled_warnings': [4267, ], |
| 1272 | }, |
| 1273 | { |
| 1274 | 'target_name': 'hpack_fuzz_mutator', |
| 1275 | 'type': 'executable', |
| 1276 | 'dependencies': [ |
| 1277 | '../base/base.gyp:base', |
| 1278 | 'net', |
| 1279 | ], |
| 1280 | 'sources': [ |
| 1281 | 'spdy/fuzzing/hpack_fuzz_mutator.cc', |
| 1282 | ], |
| 1283 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 1284 | 'msvs_disabled_warnings': [4267, ], |
| 1285 | }, |
| 1286 | { |
| 1287 | 'target_name': 'hpack_fuzz_wrapper', |
| 1288 | 'type': 'executable', |
| 1289 | 'dependencies': [ |
| 1290 | '../base/base.gyp:base', |
| 1291 | 'net', |
| 1292 | ], |
| 1293 | 'sources': [ |
| 1294 | 'spdy/fuzzing/hpack_fuzz_wrapper.cc', |
| 1295 | ], |
| 1296 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 1297 | 'msvs_disabled_warnings': [4267, ], |
| 1298 | }, |
| 1299 | { |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1300 | 'target_name': 'net_watcher', |
| 1301 | 'type': 'executable', |
| 1302 | 'dependencies': [ |
| 1303 | '../base/base.gyp:base', |
| 1304 | 'net', |
| 1305 | 'net_with_v8', |
| 1306 | ], |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1307 | 'conditions': [ |
| 1308 | [ 'use_glib == 1', { |
| 1309 | 'dependencies': [ |
| 1310 | '../build/linux/system.gyp:gconf', |
| 1311 | '../build/linux/system.gyp:gio', |
| 1312 | ], |
| 1313 | }, |
| 1314 | ], |
| 1315 | ], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1316 | 'sources': [ |
| 1317 | 'tools/net_watcher/net_watcher.cc', |
| 1318 | ], |
| 1319 | }, |
| 1320 | { |
| 1321 | 'target_name': 'run_testserver', |
| 1322 | 'type': 'executable', |
| 1323 | 'dependencies': [ |
| 1324 | '../base/base.gyp:base', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1325 | '../base/base.gyp:test_support_base', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1326 | '../testing/gtest.gyp:gtest', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1327 | 'net_test_support', |
| 1328 | ], |
| 1329 | 'sources': [ |
| 1330 | 'tools/testserver/run_testserver.cc', |
| 1331 | ], |
| 1332 | }, |
| 1333 | { |
| 1334 | 'target_name': 'stress_cache', |
| 1335 | 'type': 'executable', |
| 1336 | 'dependencies': [ |
| 1337 | '../base/base.gyp:base', |
| 1338 | 'net', |
| 1339 | 'net_test_support', |
| 1340 | ], |
| 1341 | 'sources': [ |
Torne (Richard Coles) | a140131 | 2014-03-18 10:20:56 +0000 | [diff] [blame] | 1342 | 'disk_cache/blockfile/stress_cache.cc', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1343 | ], |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1344 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 1345 | 'msvs_disabled_warnings': [4267, ], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1346 | }, |
| 1347 | { |
| 1348 | 'target_name': 'tld_cleanup', |
| 1349 | 'type': 'executable', |
| 1350 | 'dependencies': [ |
| 1351 | '../base/base.gyp:base', |
| 1352 | '../base/base.gyp:base_i18n', |
Torne (Richard Coles) | a93a17c | 2013-05-15 11:34:50 +0100 | [diff] [blame] | 1353 | '../net/tools/tld_cleanup/tld_cleanup.gyp:tld_cleanup_util', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1354 | ], |
| 1355 | 'sources': [ |
| 1356 | 'tools/tld_cleanup/tld_cleanup.cc', |
| 1357 | ], |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1358 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 1359 | 'msvs_disabled_warnings': [4267, ], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1360 | }, |
| 1361 | ], |
| 1362 | }], |
| 1363 | ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', { |
| 1364 | 'targets': [ |
| 1365 | { |
Torne (Richard Coles) | 4e180b6 | 2013-10-18 15:46:22 +0100 | [diff] [blame] | 1366 | 'target_name': 'epoll_server', |
| 1367 | 'type': 'static_library', |
| 1368 | 'dependencies': [ |
| 1369 | '../base/base.gyp:base', |
| 1370 | 'net', |
| 1371 | ], |
| 1372 | 'sources': [ |
| 1373 | 'tools/epoll_server/epoll_server.cc', |
| 1374 | 'tools/epoll_server/epoll_server.h', |
| 1375 | ], |
| 1376 | }, |
| 1377 | { |
| 1378 | 'target_name': 'flip_in_mem_edsm_server_base', |
Ben Murdoch | 2385ea3 | 2013-08-06 11:01:04 +0100 | [diff] [blame] | 1379 | 'type': 'static_library', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1380 | 'cflags': [ |
| 1381 | '-Wno-deprecated', |
| 1382 | ], |
| 1383 | 'dependencies': [ |
| 1384 | '../base/base.gyp:base', |
Torne (Richard Coles) | 5f1c943 | 2014-08-12 13:47:38 +0100 | [diff] [blame] | 1385 | '../third_party/boringssl/boringssl.gyp:boringssl', |
Torne (Richard Coles) | 4e180b6 | 2013-10-18 15:46:22 +0100 | [diff] [blame] | 1386 | 'balsa', |
| 1387 | 'epoll_server', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1388 | 'net', |
| 1389 | ], |
| 1390 | 'sources': [ |
| 1391 | 'tools/dump_cache/url_to_filename_encoder.cc', |
| 1392 | 'tools/dump_cache/url_to_filename_encoder.h', |
| 1393 | 'tools/dump_cache/url_utilities.h', |
| 1394 | 'tools/dump_cache/url_utilities.cc', |
| 1395 | 'tools/flip_server/acceptor_thread.h', |
| 1396 | 'tools/flip_server/acceptor_thread.cc', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1397 | 'tools/flip_server/create_listener.cc', |
| 1398 | 'tools/flip_server/create_listener.h', |
Torne (Richard Coles) | 4e180b6 | 2013-10-18 15:46:22 +0100 | [diff] [blame] | 1399 | 'tools/flip_server/constants.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1400 | 'tools/flip_server/flip_config.cc', |
| 1401 | 'tools/flip_server/flip_config.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1402 | 'tools/flip_server/http_interface.cc', |
| 1403 | 'tools/flip_server/http_interface.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1404 | 'tools/flip_server/loadtime_measurement.h', |
| 1405 | 'tools/flip_server/mem_cache.h', |
| 1406 | 'tools/flip_server/mem_cache.cc', |
| 1407 | 'tools/flip_server/output_ordering.cc', |
| 1408 | 'tools/flip_server/output_ordering.h', |
| 1409 | 'tools/flip_server/ring_buffer.cc', |
| 1410 | 'tools/flip_server/ring_buffer.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1411 | 'tools/flip_server/sm_connection.cc', |
| 1412 | 'tools/flip_server/sm_connection.h', |
| 1413 | 'tools/flip_server/sm_interface.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1414 | 'tools/flip_server/spdy_ssl.cc', |
| 1415 | 'tools/flip_server/spdy_ssl.h', |
| 1416 | 'tools/flip_server/spdy_interface.cc', |
| 1417 | 'tools/flip_server/spdy_interface.h', |
| 1418 | 'tools/flip_server/spdy_util.cc', |
| 1419 | 'tools/flip_server/spdy_util.h', |
| 1420 | 'tools/flip_server/streamer_interface.cc', |
| 1421 | 'tools/flip_server/streamer_interface.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1422 | ], |
| 1423 | }, |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 1424 | { |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 1425 | 'target_name': 'flip_in_mem_edsm_server_unittests', |
| 1426 | 'type': 'executable', |
| 1427 | 'dependencies': [ |
| 1428 | '../testing/gtest.gyp:gtest', |
| 1429 | '../testing/gmock.gyp:gmock', |
Torne (Richard Coles) | 5f1c943 | 2014-08-12 13:47:38 +0100 | [diff] [blame] | 1430 | '../third_party/boringssl/boringssl.gyp:boringssl', |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 1431 | 'flip_in_mem_edsm_server_base', |
| 1432 | 'net', |
| 1433 | 'net_test_support', |
| 1434 | ], |
| 1435 | 'sources': [ |
| 1436 | 'tools/flip_server/flip_test_utils.cc', |
| 1437 | 'tools/flip_server/flip_test_utils.h', |
| 1438 | 'tools/flip_server/http_interface_test.cc', |
| 1439 | 'tools/flip_server/mem_cache_test.cc', |
| 1440 | 'tools/flip_server/run_all_tests.cc', |
| 1441 | 'tools/flip_server/spdy_interface_test.cc', |
| 1442 | ], |
| 1443 | }, |
| 1444 | { |
Ben Murdoch | 2385ea3 | 2013-08-06 11:01:04 +0100 | [diff] [blame] | 1445 | 'target_name': 'flip_in_mem_edsm_server', |
| 1446 | 'type': 'executable', |
| 1447 | 'cflags': [ |
| 1448 | '-Wno-deprecated', |
| 1449 | ], |
| 1450 | 'dependencies': [ |
| 1451 | '../base/base.gyp:base', |
Torne (Richard Coles) | 4e180b6 | 2013-10-18 15:46:22 +0100 | [diff] [blame] | 1452 | 'flip_in_mem_edsm_server_base', |
Ben Murdoch | 2385ea3 | 2013-08-06 11:01:04 +0100 | [diff] [blame] | 1453 | 'net', |
| 1454 | ], |
| 1455 | 'sources': [ |
| 1456 | 'tools/flip_server/flip_in_mem_edsm_server.cc', |
| 1457 | ], |
| 1458 | }, |
| 1459 | { |
Torne (Richard Coles) | 4e180b6 | 2013-10-18 15:46:22 +0100 | [diff] [blame] | 1460 | 'target_name': 'quic_base', |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 1461 | 'type': 'static_library', |
| 1462 | 'dependencies': [ |
| 1463 | '../base/base.gyp:base', |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 1464 | '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', |
Torne (Richard Coles) | 868fa2f | 2013-06-11 10:57:03 +0100 | [diff] [blame] | 1465 | '../url/url.gyp:url_lib', |
Torne (Richard Coles) | 4e180b6 | 2013-10-18 15:46:22 +0100 | [diff] [blame] | 1466 | 'balsa', |
| 1467 | 'epoll_server', |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 1468 | 'net', |
| 1469 | ], |
| 1470 | 'sources': [ |
| 1471 | 'tools/quic/quic_client.cc', |
| 1472 | 'tools/quic/quic_client.h', |
| 1473 | 'tools/quic/quic_client_session.cc', |
| 1474 | 'tools/quic/quic_client_session.h', |
Torne (Richard Coles) | 1e9bf3e | 2013-10-31 11:16:26 +0000 | [diff] [blame] | 1475 | 'tools/quic/quic_default_packet_writer.cc', |
| 1476 | 'tools/quic/quic_default_packet_writer.h', |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 1477 | 'tools/quic/quic_dispatcher.h', |
| 1478 | 'tools/quic/quic_dispatcher.cc', |
| 1479 | 'tools/quic/quic_epoll_clock.cc', |
| 1480 | 'tools/quic/quic_epoll_clock.h', |
| 1481 | 'tools/quic/quic_epoll_connection_helper.cc', |
| 1482 | 'tools/quic/quic_epoll_connection_helper.h', |
| 1483 | 'tools/quic/quic_in_memory_cache.cc', |
| 1484 | 'tools/quic/quic_in_memory_cache.h', |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 1485 | 'tools/quic/quic_packet_writer_wrapper.cc', |
| 1486 | 'tools/quic/quic_packet_writer_wrapper.h', |
Torne (Richard Coles) | 03b57e0 | 2014-08-28 12:05:23 +0100 | [diff] [blame^] | 1487 | 'tools/quic/quic_per_connection_packet_writer.cc', |
| 1488 | 'tools/quic/quic_per_connection_packet_writer.h', |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 1489 | 'tools/quic/quic_server.cc', |
| 1490 | 'tools/quic/quic_server.h', |
| 1491 | 'tools/quic/quic_server_session.cc', |
| 1492 | 'tools/quic/quic_server_session.h', |
| 1493 | 'tools/quic/quic_socket_utils.cc', |
| 1494 | 'tools/quic/quic_socket_utils.h', |
| 1495 | 'tools/quic/quic_spdy_client_stream.cc', |
| 1496 | 'tools/quic/quic_spdy_client_stream.h', |
| 1497 | 'tools/quic/quic_spdy_server_stream.cc', |
| 1498 | 'tools/quic/quic_spdy_server_stream.h', |
| 1499 | 'tools/quic/quic_time_wait_list_manager.h', |
| 1500 | 'tools/quic/quic_time_wait_list_manager.cc', |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 1501 | ], |
| 1502 | }, |
| 1503 | { |
| 1504 | 'target_name': 'quic_client', |
| 1505 | 'type': 'executable', |
| 1506 | 'dependencies': [ |
| 1507 | '../base/base.gyp:base', |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 1508 | 'net', |
Torne (Richard Coles) | 4e180b6 | 2013-10-18 15:46:22 +0100 | [diff] [blame] | 1509 | 'quic_base', |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 1510 | ], |
| 1511 | 'sources': [ |
| 1512 | 'tools/quic/quic_client_bin.cc', |
| 1513 | ], |
| 1514 | }, |
| 1515 | { |
| 1516 | 'target_name': 'quic_server', |
| 1517 | 'type': 'executable', |
| 1518 | 'dependencies': [ |
| 1519 | '../base/base.gyp:base', |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 1520 | 'net', |
Ben Murdoch | 116680a | 2014-07-20 18:25:52 -0700 | [diff] [blame] | 1521 | 'quic_tools', |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 1522 | ], |
| 1523 | 'sources': [ |
Ben Murdoch | 116680a | 2014-07-20 18:25:52 -0700 | [diff] [blame] | 1524 | 'quic/quic_server_bin.cc', |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 1525 | ], |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame] | 1526 | }, |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1527 | ] |
| 1528 | }], |
| 1529 | ['OS=="android"', { |
| 1530 | 'targets': [ |
| 1531 | { |
| 1532 | 'target_name': 'net_jni_headers', |
| 1533 | 'type': 'none', |
| 1534 | 'sources': [ |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 1535 | 'android/java/src/org/chromium/net/AndroidCertVerifyResult.java', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1536 | 'android/java/src/org/chromium/net/AndroidKeyStore.java', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1537 | 'android/java/src/org/chromium/net/AndroidNetworkLibrary.java', |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 1538 | 'android/java/src/org/chromium/net/AndroidPrivateKey.java', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1539 | 'android/java/src/org/chromium/net/GURLUtils.java', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1540 | 'android/java/src/org/chromium/net/NetworkChangeNotifier.java', |
| 1541 | 'android/java/src/org/chromium/net/ProxyChangeListener.java', |
Torne (Richard Coles) | 1e9bf3e | 2013-10-31 11:16:26 +0000 | [diff] [blame] | 1542 | 'android/java/src/org/chromium/net/X509Util.java', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1543 | ], |
| 1544 | 'variables': { |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1545 | 'jni_gen_package': 'net', |
| 1546 | }, |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1547 | 'includes': [ '../build/jni_generator.gypi' ], |
Torne (Richard Coles) | cedac22 | 2014-06-03 10:58:34 +0100 | [diff] [blame] | 1548 | |
| 1549 | 'conditions': [ |
| 1550 | ['use_icu_alternatives_on_android==1', { |
| 1551 | 'sources': [ |
| 1552 | 'android/java/src/org/chromium/net/NetStringUtil.java', |
| 1553 | ], |
| 1554 | }], |
| 1555 | ], |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1556 | }, |
| 1557 | { |
| 1558 | 'target_name': 'net_test_jni_headers', |
| 1559 | 'type': 'none', |
| 1560 | 'sources': [ |
| 1561 | 'android/javatests/src/org/chromium/net/AndroidKeyStoreTestUtil.java', |
| 1562 | ], |
| 1563 | 'variables': { |
| 1564 | 'jni_gen_package': 'net', |
| 1565 | }, |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1566 | 'includes': [ '../build/jni_generator.gypi' ], |
| 1567 | }, |
| 1568 | { |
| 1569 | 'target_name': 'net_java', |
| 1570 | 'type': 'none', |
| 1571 | 'variables': { |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1572 | 'java_in_dir': '../net/android/java', |
| 1573 | }, |
| 1574 | 'dependencies': [ |
| 1575 | '../base/base.gyp:base', |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 1576 | 'cert_verify_status_android_java', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1577 | 'certificate_mime_types_java', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1578 | 'net_errors_java', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1579 | 'private_key_types_java', |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 1580 | 'remote_android_keystore_aidl', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1581 | ], |
| 1582 | 'includes': [ '../build/java.gypi' ], |
| 1583 | }, |
| 1584 | { |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 1585 | # Processes the interface files for communication with an Android KeyStore |
| 1586 | # running in a separate process. |
| 1587 | 'target_name': 'remote_android_keystore_aidl', |
| 1588 | 'type': 'none', |
| 1589 | 'variables': { |
| 1590 | 'aidl_interface_file': '../net/android/java/src/org/chromium/net/IRemoteAndroidKeyStoreInterface.aidl', |
| 1591 | }, |
| 1592 | 'sources': [ |
| 1593 | '../net/android/java/src/org/chromium/net/IRemoteAndroidKeyStore.aidl', |
| 1594 | '../net/android/java/src/org/chromium/net/IRemoteAndroidKeyStoreCallbacks.aidl', |
| 1595 | ], |
| 1596 | 'includes': [ '../build/java_aidl.gypi' ], |
| 1597 | }, |
| 1598 | { |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1599 | 'target_name': 'net_java_test_support', |
| 1600 | 'type': 'none', |
| 1601 | 'variables': { |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1602 | 'java_in_dir': '../net/test/android/javatests', |
| 1603 | }, |
| 1604 | 'includes': [ '../build/java.gypi' ], |
| 1605 | }, |
| 1606 | { |
| 1607 | 'target_name': 'net_javatests', |
| 1608 | 'type': 'none', |
| 1609 | 'variables': { |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1610 | 'java_in_dir': '../net/android/javatests', |
| 1611 | }, |
| 1612 | 'dependencies': [ |
| 1613 | '../base/base.gyp:base', |
| 1614 | '../base/base.gyp:base_java_test_support', |
| 1615 | 'net_java', |
| 1616 | ], |
| 1617 | 'includes': [ '../build/java.gypi' ], |
| 1618 | }, |
| 1619 | { |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1620 | 'target_name': 'net_errors_java', |
| 1621 | 'type': 'none', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1622 | 'sources': [ |
| 1623 | 'android/java/NetError.template', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1624 | ], |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1625 | 'variables': { |
| 1626 | 'package_name': 'org/chromium/net', |
| 1627 | 'template_deps': ['base/net_error_list.h'], |
| 1628 | }, |
| 1629 | 'includes': [ '../build/android/java_cpp_template.gypi' ], |
| 1630 | }, |
| 1631 | { |
| 1632 | 'target_name': 'certificate_mime_types_java', |
| 1633 | 'type': 'none', |
| 1634 | 'sources': [ |
| 1635 | 'android/java/CertificateMimeType.template', |
| 1636 | ], |
| 1637 | 'variables': { |
| 1638 | 'package_name': 'org/chromium/net', |
| 1639 | 'template_deps': ['base/mime_util_certificate_type_list.h'], |
| 1640 | }, |
| 1641 | 'includes': [ '../build/android/java_cpp_template.gypi' ], |
| 1642 | }, |
| 1643 | { |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 1644 | 'target_name': 'cert_verify_status_android_java', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1645 | 'type': 'none', |
| 1646 | 'sources': [ |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 1647 | 'android/java/CertVerifyStatusAndroid.template', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1648 | ], |
| 1649 | 'variables': { |
| 1650 | 'package_name': 'org/chromium/net', |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 1651 | 'template_deps': ['android/cert_verify_status_android_list.h'], |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1652 | }, |
| 1653 | 'includes': [ '../build/android/java_cpp_template.gypi' ], |
| 1654 | }, |
| 1655 | { |
| 1656 | 'target_name': 'private_key_types_java', |
| 1657 | 'type': 'none', |
| 1658 | 'sources': [ |
| 1659 | 'android/java/PrivateKeyType.template', |
| 1660 | ], |
| 1661 | 'variables': { |
| 1662 | 'package_name': 'org/chromium/net', |
| 1663 | 'template_deps': ['android/private_key_type_list.h'], |
| 1664 | }, |
| 1665 | 'includes': [ '../build/android/java_cpp_template.gypi' ], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1666 | }, |
| 1667 | ], |
| 1668 | }], |
Torne (Richard Coles) | cedac22 | 2014-06-03 10:58:34 +0100 | [diff] [blame] | 1669 | ['OS == "android"', { |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1670 | 'targets': [ |
| 1671 | { |
| 1672 | 'target_name': 'net_unittests_apk', |
| 1673 | 'type': 'none', |
| 1674 | 'dependencies': [ |
| 1675 | 'net_java', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 1676 | 'net_javatests', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1677 | 'net_unittests', |
| 1678 | ], |
| 1679 | 'variables': { |
| 1680 | 'test_suite_name': 'net_unittests', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1681 | }, |
| 1682 | 'includes': [ '../build/apk_test.gypi' ], |
| 1683 | }, |
| 1684 | ], |
| 1685 | }], |
Torne (Richard Coles) | 424c4d7 | 2013-08-30 15:14:49 +0100 | [diff] [blame] | 1686 | ['OS == "android" or OS == "linux"', { |
| 1687 | 'targets': [ |
| 1688 | { |
| 1689 | 'target_name': 'disk_cache_memory_test', |
| 1690 | 'type': 'executable', |
| 1691 | 'dependencies': [ |
| 1692 | '../base/base.gyp:base', |
| 1693 | 'net', |
| 1694 | ], |
| 1695 | 'sources': [ |
| 1696 | 'tools/disk_cache_memory_test/disk_cache_memory_test.cc', |
| 1697 | ], |
| 1698 | }, |
| 1699 | ], |
| 1700 | }], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1701 | ['test_isolation_mode != "noop"', { |
| 1702 | 'targets': [ |
| 1703 | { |
| 1704 | 'target_name': 'net_unittests_run', |
| 1705 | 'type': 'none', |
| 1706 | 'dependencies': [ |
| 1707 | 'net_unittests', |
| 1708 | ], |
| 1709 | 'includes': [ |
Ben Murdoch | 7dbb3d5 | 2013-07-17 14:55:54 +0100 | [diff] [blame] | 1710 | '../build/isolate.gypi', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1711 | 'net_unittests.isolate', |
| 1712 | ], |
Ben Murdoch | 7dbb3d5 | 2013-07-17 14:55:54 +0100 | [diff] [blame] | 1713 | 'sources': [ |
| 1714 | 'net_unittests.isolate', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1715 | ], |
| 1716 | }, |
| 1717 | ], |
| 1718 | }], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1719 | ], |
| 1720 | } |