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