[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 1 | # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
| 5 | import("//build/config/crypto.gni") |
| 6 | import("//build/config/features.gni") |
| 7 | import("//build/config/ui.gni") |
| 8 | import("//tools/grit/grit_rule.gni") |
| 9 | |
| 10 | if (is_android) { |
| 11 | import("//build/config/android/config.gni") |
[email protected] | ef0eb44 | 2014-05-15 09:32:18 | [diff] [blame] | 12 | import("//build/config/android/rules.gni") |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 13 | } else if (is_mac) { |
| 14 | import("//build/config/mac/mac_sdk.gni") |
| 15 | } |
| 16 | |
[email protected] | 85191ed | 2014-05-15 00:41:49 | [diff] [blame] | 17 | import("//url/config.gni") |
| 18 | |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 19 | # The list of net files is kept in net.gypi. Read it. |
| 20 | gypi_values = exec_script( |
| 21 | "//build/gypi_to_gn.py", |
[email protected] | c7d9b35 | 2014-04-29 22:18:04 | [diff] [blame] | 22 | [ rebase_path("net.gypi") ], |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 23 | "scope", |
| 24 | [ "net.gypi" ]) |
| 25 | |
| 26 | # Disable Kerberos on ChromeOS, Android and iOS, at least for now. It needs |
| 27 | # configuration (krb5.conf and so on). |
| 28 | use_kerberos = !is_chromeos && !is_android && !is_ios |
| 29 | |
| 30 | # The way the cache uses mmap() is inefficient on some Android devices. If |
| 31 | # this flag is set, we hackily avoid using mmap() in the disk cache. We are |
| 32 | # pretty confident that mmap-ing the index would not hurt any existing x86 |
| 33 | # android devices, but we cannot be so sure about the variety of ARM devices. |
| 34 | # So enable it for x86 only for now. |
| 35 | posix_avoid_mmap = is_android && cpu_arch != "x86" |
| 36 | |
| 37 | # WebSockets and socket stream code are used everywhere except iOS. |
| 38 | enable_websockets = !is_ios |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 39 | # TODO(brettw) put back to "!is_ios" when v8 is supported in GN build. |
| 40 | use_v8_in_net = false # TODO(brettw)!is_ios |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 41 | enable_built_in_dns = !is_ios |
| 42 | |
[email protected] | 384dab9 | 2014-06-04 20:26:08 | [diff] [blame^] | 43 | declare_args() { |
| 44 | # Disables support for file URLs. File URL support requires use of icu. |
| 45 | disable_file_support = false |
| 46 | } |
[email protected] | 02494ec | 2014-05-07 15:05:29 | [diff] [blame] | 47 | |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 48 | enable_ftp_support = !is_ios |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 49 | |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 50 | config("net_config") { |
| 51 | defines = [] |
| 52 | if (posix_avoid_mmap) { |
| 53 | defines += [ "POSIX_AVOID_MMAP" ] |
| 54 | } |
[email protected] | 02494ec | 2014-05-07 15:05:29 | [diff] [blame] | 55 | if (disable_file_support) { |
| 56 | defines += [ "DISABLE_FILE_SUPPORT" ] |
| 57 | } |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 58 | } |
| 59 | |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 60 | # Disables Windows warning about size to int truncations. |
| 61 | # TODO(jschuh): crbug.com/167187 fix this and delete this config. |
| 62 | config("net_win_size_truncation") { |
| 63 | if (is_win) { |
[email protected] | d980fd11 | 2014-04-22 04:42:13 | [diff] [blame] | 64 | cflags = [ "/wd4267" ] |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 65 | } |
| 66 | } |
| 67 | |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 68 | component("net") { |
| 69 | sources = |
| 70 | gypi_values.net_nacl_common_sources + |
| 71 | gypi_values.net_non_nacl_sources |
| 72 | |
| 73 | cflags = [] |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 74 | defines = [ |
| 75 | # TODO(GYP) Note that he GYP file supports linux_link_kerberos (defaults to |
| 76 | # 0) which implies that we run pkg_config on kerberos and link to that |
| 77 | # rather than setting this define which will dynamically open it. That |
| 78 | # doesn't seem to be set in the regular builds, so we're skipping this |
| 79 | # capability here. |
| 80 | "DLOPEN_KERBEROS", |
| 81 | "NET_IMPLEMENTATION" |
| 82 | ] |
| 83 | configs += [ ":net_win_size_truncation" ] |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 84 | direct_dependent_configs = [ ":net_config" ] |
| 85 | include_dirs = [] |
| 86 | |
| 87 | deps = [ |
[email protected] | d7f0449 | 2014-05-13 07:01:34 | [diff] [blame] | 88 | ":net_resources", |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 89 | "//base", |
| 90 | "//base:i18n", |
| 91 | "//base/third_party/dynamic_annotations", |
| 92 | "//crypto", |
| 93 | "//crypto:platform", |
[email protected] | d7f0449 | 2014-05-13 07:01:34 | [diff] [blame] | 94 | "//net/base/registry_controlled_domains:registry_controlled_domains", |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 95 | "//sdch", |
| 96 | "//third_party/icu", |
| 97 | "//third_party/zlib", |
| 98 | "//url", |
| 99 | ] |
[email protected] | d8dc700 | 2014-06-02 19:18:24 | [diff] [blame] | 100 | forward_dependent_configs_from = [ |
| 101 | "//crypto", |
| 102 | "//crypto:platform" |
| 103 | ] |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 104 | |
| 105 | if (use_kerberos) { |
| 106 | defines += [ "USE_KERBEROS" ] |
| 107 | if (is_android) { |
| 108 | include_dirs += [ "/usr/include/kerberosV" ] |
| 109 | } |
| 110 | } else { |
| 111 | sources -= [ |
| 112 | "http/http_auth_gssapi_posix.cc", |
| 113 | "http/http_auth_gssapi_posix.h", |
| 114 | "http/http_auth_handler_negotiate.h", |
| 115 | "http/http_auth_handler_negotiate.cc", |
| 116 | ] |
| 117 | } |
| 118 | |
| 119 | if (is_posix) { |
| 120 | if (posix_avoid_mmap) { |
| 121 | sources -= [ "disk_cache/blockfile/mapped_file_posix.cc" ] |
| 122 | } else { |
| 123 | sources -= [ "disk_cache/blockfile/mapped_file_avoid_mmap_posix.cc" ] |
| 124 | } |
| 125 | } |
| 126 | |
[email protected] | 02494ec | 2014-05-07 15:05:29 | [diff] [blame] | 127 | if (disable_file_support) { |
| 128 | sources -= [ |
| 129 | "base/directory_lister.cc", |
| 130 | "base/directory_lister.h", |
| 131 | "url_request/url_request_file_dir_job.cc", |
| 132 | "url_request/url_request_file_dir_job.h", |
| 133 | "url_request/url_request_file_job.cc", |
| 134 | "url_request/url_request_file_job.h", |
| 135 | "url_request/file_protocol_handler.cc", |
| 136 | "url_request/file_protocol_handler.h", |
| 137 | ] |
| 138 | } |
| 139 | |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 140 | if (!enable_ftp_support) { |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 141 | sources -= [ |
| 142 | "ftp/ftp_auth_cache.cc", |
| 143 | "ftp/ftp_auth_cache.h", |
| 144 | "ftp/ftp_ctrl_response_buffer.cc", |
| 145 | "ftp/ftp_ctrl_response_buffer.h", |
| 146 | "ftp/ftp_directory_listing_parser.cc", |
| 147 | "ftp/ftp_directory_listing_parser.h", |
| 148 | "ftp/ftp_directory_listing_parser_ls.cc", |
| 149 | "ftp/ftp_directory_listing_parser_ls.h", |
| 150 | "ftp/ftp_directory_listing_parser_netware.cc", |
| 151 | "ftp/ftp_directory_listing_parser_netware.h", |
| 152 | "ftp/ftp_directory_listing_parser_os2.cc", |
| 153 | "ftp/ftp_directory_listing_parser_os2.h", |
| 154 | "ftp/ftp_directory_listing_parser_vms.cc", |
| 155 | "ftp/ftp_directory_listing_parser_vms.h", |
| 156 | "ftp/ftp_directory_listing_parser_windows.cc", |
| 157 | "ftp/ftp_directory_listing_parser_windows.h", |
| 158 | "ftp/ftp_network_layer.cc", |
| 159 | "ftp/ftp_network_layer.h", |
| 160 | "ftp/ftp_network_session.cc", |
| 161 | "ftp/ftp_network_session.h", |
| 162 | "ftp/ftp_network_transaction.cc", |
| 163 | "ftp/ftp_network_transaction.h", |
| 164 | "ftp/ftp_request_info.h", |
| 165 | "ftp/ftp_response_info.cc", |
| 166 | "ftp/ftp_response_info.h", |
| 167 | "ftp/ftp_server_type_histograms.cc", |
| 168 | "ftp/ftp_server_type_histograms.h", |
| 169 | "ftp/ftp_transaction.h", |
| 170 | "ftp/ftp_transaction_factory.h", |
| 171 | "ftp/ftp_util.cc", |
| 172 | "ftp/ftp_util.h", |
| 173 | "url_request/ftp_protocol_handler.cc", |
| 174 | "url_request/ftp_protocol_handler.h", |
| 175 | "url_request/url_request_ftp_job.cc", |
| 176 | "url_request/url_request_ftp_job.h", |
| 177 | ] |
| 178 | } |
| 179 | |
| 180 | if (enable_built_in_dns) { |
| 181 | defines += [ "ENABLE_BUILT_IN_DNS" ] |
| 182 | } else { |
| 183 | sources -= [ |
| 184 | "dns/address_sorter_posix.cc", |
| 185 | "dns/address_sorter_posix.h", |
| 186 | "dns/dns_client.cc", |
| 187 | ] |
| 188 | } |
| 189 | |
| 190 | if (use_openssl) { |
| 191 | sources -= [ |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 192 | "base/nss_memio.c", |
| 193 | "base/nss_memio.h", |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 194 | "cert/ct_log_verifier_nss.cc", |
| 195 | "cert/ct_objects_extractor_nss.cc", |
| 196 | "cert/jwk_serializer_nss.cc", |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 197 | "cert/scoped_nss_types.h", |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 198 | "cert/x509_util_nss.cc", |
| 199 | "cert/x509_util_nss.h", |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 200 | "quic/crypto/aead_base_decrypter_nss.cc", |
| 201 | "quic/crypto/aead_base_encrypter_nss.cc", |
| 202 | "quic/crypto/aes_128_gcm_12_decrypter_nss.cc", |
| 203 | "quic/crypto/aes_128_gcm_12_encrypter_nss.cc", |
| 204 | "quic/crypto/chacha20_poly1305_decrypter_nss.cc", |
| 205 | "quic/crypto/chacha20_poly1305_encrypter_nss.cc", |
| 206 | "quic/crypto/channel_id_nss.cc", |
| 207 | "quic/crypto/p256_key_exchange_nss.cc", |
| 208 | "socket/nss_ssl_util.cc", |
| 209 | "socket/nss_ssl_util.h", |
| 210 | "socket/ssl_client_socket_nss.cc", |
| 211 | "socket/ssl_client_socket_nss.h", |
| 212 | "socket/ssl_server_socket_nss.cc", |
| 213 | "socket/ssl_server_socket_nss.h", |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 214 | ] |
[email protected] | 71d94dfce9 | 2014-04-30 16:47:24 | [diff] [blame] | 215 | if (is_chromeos) { |
| 216 | sources -= [ |
| 217 | "cert/nss_cert_database_chromeos.cc", |
| 218 | "cert/nss_cert_database_chromeos.h", |
| 219 | "cert/nss_profile_filter_chromeos.cc", |
| 220 | "cert/nss_profile_filter_chromeos.h", |
| 221 | ] |
| 222 | } |
| 223 | if (is_linux) { |
| 224 | # These are always removed for non-Linux cases below. |
| 225 | sources -= [ |
| 226 | "base/crypto_module_nss.cc", |
| 227 | "base/keygen_handler_nss.cc", |
| 228 | "cert/cert_database_nss.cc", |
| 229 | "cert/nss_cert_database.cc", |
| 230 | "cert/nss_cert_database.h", |
| 231 | "cert/x509_certificate_nss.cc", |
| 232 | "third_party/mozilla_security_manager/nsKeygenHandler.cpp", |
| 233 | "third_party/mozilla_security_manager/nsKeygenHandler.h", |
| 234 | "third_party/mozilla_security_manager/nsNSSCertificateDB.cpp", |
| 235 | "third_party/mozilla_security_manager/nsNSSCertificateDB.h", |
| 236 | "third_party/mozilla_security_manager/nsPKCS12Blob.cpp", |
| 237 | "third_party/mozilla_security_manager/nsPKCS12Blob.h", |
| 238 | ] |
| 239 | } |
| 240 | if (is_ios) { |
| 241 | # Always removed for !ios below. |
| 242 | sources -= [ |
| 243 | "cert/cert_verify_proc_nss.cc", |
| 244 | "cert/cert_verify_proc_nss.h", |
| 245 | "cert/test_root_certs_nss.cc", |
| 246 | "ocsp/nss_ocsp.cc", |
| 247 | "ocsp/nss_ocsp.h", |
| 248 | ] |
| 249 | } |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 250 | } else { |
| 251 | sources -= [ |
| 252 | "base/crypto_module_openssl.cc", |
| 253 | "base/keygen_handler_openssl.cc", |
| 254 | "cert/ct_log_verifier_openssl.cc", |
| 255 | "cert/ct_objects_extractor_openssl.cc", |
| 256 | "cert/jwk_serializer_openssl.cc", |
| 257 | "cert/x509_util_openssl.cc", |
| 258 | "cert/x509_util_openssl.h", |
| 259 | "quic/crypto/aead_base_decrypter_openssl.cc", |
| 260 | "quic/crypto/aead_base_encrypter_openssl.cc", |
| 261 | "quic/crypto/aes_128_gcm_12_decrypter_openssl.cc", |
| 262 | "quic/crypto/aes_128_gcm_12_encrypter_openssl.cc", |
| 263 | "quic/crypto/chacha20_poly1305_decrypter_openssl.cc", |
| 264 | "quic/crypto/chacha20_poly1305_encrypter_openssl.cc", |
| 265 | "quic/crypto/channel_id_openssl.cc", |
| 266 | "quic/crypto/p256_key_exchange_openssl.cc", |
| 267 | "quic/crypto/scoped_evp_aead_ctx.cc", |
| 268 | "quic/crypto/scoped_evp_aead_ctx.h", |
[email protected] | c8a80e9 | 2014-05-17 16:02:08 | [diff] [blame] | 269 | "socket/openssl_ssl_util.cc", |
| 270 | "socket/openssl_ssl_util.h", |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 271 | "socket/ssl_client_socket_openssl.cc", |
| 272 | "socket/ssl_client_socket_openssl.h", |
| 273 | "socket/ssl_server_socket_openssl.cc", |
[email protected] | c8a80e9 | 2014-05-17 16:02:08 | [diff] [blame] | 274 | "socket/ssl_server_socket_openssl.h", |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 275 | "socket/ssl_session_cache_openssl.cc", |
| 276 | "socket/ssl_session_cache_openssl.h", |
| 277 | ] |
| 278 | } |
| 279 | |
| 280 | if (!use_openssl_certs) { |
| 281 | sources -= [ |
| 282 | "base/openssl_private_key_store.h", |
| 283 | "base/openssl_private_key_store_memory.cc", |
| 284 | "cert/cert_database_openssl.cc", |
| 285 | "cert/cert_verify_proc_openssl.cc", |
| 286 | "cert/cert_verify_proc_openssl.h", |
| 287 | "cert/test_root_certs_openssl.cc", |
| 288 | "cert/x509_certificate_openssl.cc", |
| 289 | "ssl/openssl_client_key_store.cc", |
| 290 | "ssl/openssl_client_key_store.h", |
| 291 | ] |
| 292 | if (is_android) { |
| 293 | sources -= [ |
| 294 | "base/openssl_private_key_store_android.cc", |
| 295 | ] |
| 296 | } |
[email protected] | 1ea0175 | 2014-05-23 19:01:46 | [diff] [blame] | 297 | } else if (is_android) { |
| 298 | # Android doesn't use these even when using OpenSSL. |
| 299 | sources -= [ |
| 300 | "base/openssl_private_key_store_memory.cc", |
| 301 | "cert/cert_database_openssl.cc", |
| 302 | "cert/cert_verify_proc_openssl.cc", |
| 303 | "cert/test_root_certs_openssl.cc", |
| 304 | ] |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 305 | } |
| 306 | |
| 307 | if (use_glib) { |
| 308 | configs += [ "//build/config/linux:gconf" ] |
| 309 | deps += [ "//build/config/linux:gio" ] |
| 310 | } |
| 311 | |
| 312 | if (is_linux) { |
| 313 | configs += [ "//build/config/linux:libresolv" ] |
| 314 | } else { |
| 315 | sources -= [ |
| 316 | "base/crypto_module_nss.cc", |
| 317 | "base/keygen_handler_nss.cc", |
| 318 | "cert/cert_database_nss.cc", |
| 319 | "cert/nss_cert_database.cc", |
| 320 | "cert/nss_cert_database.h", |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 321 | "cert/x509_certificate_nss.cc", |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 322 | "third_party/mozilla_security_manager/nsKeygenHandler.cpp", |
| 323 | "third_party/mozilla_security_manager/nsKeygenHandler.h", |
| 324 | "third_party/mozilla_security_manager/nsNSSCertificateDB.cpp", |
| 325 | "third_party/mozilla_security_manager/nsNSSCertificateDB.h", |
| 326 | "third_party/mozilla_security_manager/nsPKCS12Blob.cpp", |
| 327 | "third_party/mozilla_security_manager/nsPKCS12Blob.h", |
| 328 | ] |
[email protected] | e8ab691 | 2014-04-21 20:54:51 | [diff] [blame] | 329 | |
| 330 | if (!is_ios) { |
| 331 | # These files are part of the partial implementation of NSS on iOS so |
| 332 | # keep them in that case. |
| 333 | sources -= [ |
| 334 | "cert/test_root_certs_nss.cc", |
| 335 | "ocsp/nss_ocsp.cc", |
| 336 | "ocsp/nss_ocsp.h", |
| 337 | ] |
| 338 | } |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 339 | } |
| 340 | |
[email protected] | e8ab691 | 2014-04-21 20:54:51 | [diff] [blame] | 341 | if (!use_nss_certs) { |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 342 | sources -= [ |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 343 | "ssl/client_cert_store_nss.cc", |
| 344 | "ssl/client_cert_store_nss.h", |
| 345 | ] |
[email protected] | e8ab691 | 2014-04-21 20:54:51 | [diff] [blame] | 346 | if (!is_ios) { |
| 347 | # These files are part of the partial implementation of NSS on iOS so |
| 348 | # keep them in that case (even though use_nss_certs is not set). |
| 349 | sources -= [ |
| 350 | "cert/cert_verify_proc_nss.cc", |
| 351 | "cert/cert_verify_proc_nss.h", |
| 352 | ] |
| 353 | } |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 354 | if (is_chromeos) { |
| 355 | # These were already removed on non-ChromeOS. |
| 356 | sources -= [ |
| 357 | "ssl/client_cert_store_chromeos.cc", |
| 358 | "ssl/client_cert_store_chromeos.h", |
| 359 | ] |
| 360 | } |
| 361 | } |
| 362 | |
| 363 | if (!enable_websockets) { |
| 364 | sources -= [ |
| 365 | "socket_stream/socket_stream.cc", |
| 366 | "socket_stream/socket_stream.h", |
| 367 | "socket_stream/socket_stream_job.cc", |
| 368 | "socket_stream/socket_stream_job.h", |
| 369 | "socket_stream/socket_stream_job_manager.cc", |
| 370 | "socket_stream/socket_stream_job_manager.h", |
| 371 | "socket_stream/socket_stream_metrics.cc", |
| 372 | "socket_stream/socket_stream_metrics.h", |
| 373 | "spdy/spdy_websocket_stream.cc", |
| 374 | "spdy/spdy_websocket_stream.h", |
| 375 | "websockets/websocket_basic_handshake_stream.cc", |
| 376 | "websockets/websocket_basic_handshake_stream.h", |
| 377 | "websockets/websocket_basic_stream.cc", |
| 378 | "websockets/websocket_basic_stream.h", |
| 379 | "websockets/websocket_channel.cc", |
| 380 | "websockets/websocket_channel.h", |
| 381 | "websockets/websocket_deflate_predictor.h", |
| 382 | "websockets/websocket_deflate_predictor_impl.cc", |
| 383 | "websockets/websocket_deflate_predictor_impl.h", |
| 384 | "websockets/websocket_deflate_stream.cc", |
| 385 | "websockets/websocket_deflate_stream.h", |
| 386 | "websockets/websocket_deflater.cc", |
| 387 | "websockets/websocket_deflater.h", |
| 388 | "websockets/websocket_errors.cc", |
| 389 | "websockets/websocket_errors.h", |
| 390 | "websockets/websocket_extension.cc", |
| 391 | "websockets/websocket_extension.h", |
| 392 | "websockets/websocket_extension_parser.cc", |
| 393 | "websockets/websocket_extension_parser.h", |
| 394 | "websockets/websocket_frame.cc", |
| 395 | "websockets/websocket_frame.h", |
| 396 | "websockets/websocket_frame_parser.cc", |
| 397 | "websockets/websocket_frame_parser.h", |
| 398 | "websockets/websocket_handshake_constants.cc", |
| 399 | "websockets/websocket_handshake_constants.h", |
| 400 | "websockets/websocket_handshake_handler.cc", |
| 401 | "websockets/websocket_handshake_handler.h", |
| 402 | "websockets/websocket_handshake_request_info.cc", |
| 403 | "websockets/websocket_handshake_request_info.h", |
| 404 | "websockets/websocket_handshake_response_info.cc", |
| 405 | "websockets/websocket_handshake_response_info.h", |
| 406 | "websockets/websocket_handshake_stream_base.h", |
| 407 | "websockets/websocket_handshake_stream_create_helper.cc", |
| 408 | "websockets/websocket_handshake_stream_create_helper.h", |
| 409 | "websockets/websocket_inflater.cc", |
| 410 | "websockets/websocket_inflater.h", |
| 411 | "websockets/websocket_job.cc", |
| 412 | "websockets/websocket_job.h", |
| 413 | "websockets/websocket_mux.h", |
| 414 | "websockets/websocket_net_log_params.cc", |
| 415 | "websockets/websocket_net_log_params.h", |
| 416 | "websockets/websocket_stream.cc", |
| 417 | "websockets/websocket_stream.h", |
| 418 | "websockets/websocket_throttle.cc", |
| 419 | "websockets/websocket_throttle.h", |
| 420 | ] |
| 421 | } |
| 422 | |
| 423 | if (!enable_mdns) { |
| 424 | sources -= [ |
| 425 | "dns/mdns_cache.cc", |
| 426 | "dns/mdns_cache.h", |
| 427 | "dns/mdns_client.cc", |
| 428 | "dns/mdns_client.h", |
| 429 | "dns/mdns_client_impl.cc", |
| 430 | "dns/mdns_client_impl.h", |
| 431 | "dns/record_parsed.cc", |
| 432 | "dns/record_parsed.h", |
| 433 | "dns/record_rdata.cc", |
| 434 | "dns/record_rdata.h", |
| 435 | ] |
| 436 | } |
| 437 | |
| 438 | if (is_win) { |
| 439 | sources -= [ |
| 440 | "http/http_auth_handler_ntlm_portable.cc", |
| 441 | "socket/tcp_socket_libevent.cc", |
| 442 | "socket/tcp_socket_libevent.h", |
| 443 | "udp/udp_socket_libevent.cc", |
| 444 | "udp/udp_socket_libevent.h", |
| 445 | ] |
| 446 | deps += [ |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 447 | "//third_party/nss:nspr", |
| 448 | "//third_party/nss", |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 449 | ] |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 450 | } else { # !is_win |
| 451 | sources -= [ |
| 452 | "base/winsock_init.cc", |
| 453 | "base/winsock_init.h", |
| 454 | "base/winsock_util.cc", |
| 455 | "base/winsock_util.h", |
| 456 | "proxy/proxy_resolver_winhttp.cc", |
| 457 | "proxy/proxy_resolver_winhttp.h", |
| 458 | ] |
| 459 | } |
| 460 | |
| 461 | if (is_mac) { |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 462 | deps += [ |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 463 | "//third_party/nss:nspr", |
| 464 | "//third_party/nss", |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 465 | ] |
| 466 | libs = [ |
[email protected] | ab9ce6e | 2014-04-17 20:33:19 | [diff] [blame] | 467 | "Foundation.framework", |
| 468 | "Security.framework", |
| 469 | "SystemConfiguration.framework", |
| 470 | "resolv", |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 471 | ] |
| 472 | } |
| 473 | |
| 474 | if (is_ios) { |
[email protected] | b2b2bf5 | 2014-05-28 20:26:57 | [diff] [blame] | 475 | # Add back some sources that were otherwise filtered out. iOS additionally |
| 476 | # doesn't set USE_NSS but needs some of the files. |
| 477 | set_sources_assignment_filter([]) |
| 478 | sources += [ |
| 479 | "base/network_change_notifier_mac.cc", |
| 480 | "base/network_config_watcher_mac.cc", |
| 481 | "base/platform_mime_util_mac.mm", |
| 482 | "cert/cert_verify_proc_nss.cc", |
| 483 | "cert/cert_verify_proc_nss.h", |
| 484 | "cert/test_root_certs_nss.cc", |
| 485 | "cert/x509_util_nss.cc", |
| 486 | "cert/x509_util_nss.h", |
| 487 | "proxy/proxy_resolver_mac.cc", |
| 488 | "proxy/proxy_server_mac.cc", |
| 489 | "ocsp/nss_ocsp.cc", |
| 490 | "ocsp/nss_ocsp.h", |
| 491 | ] |
| 492 | set_sources_assignment_filter(sources_assignment_filter) |
| 493 | |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 494 | sources -= [ "disk_cache/blockfile/file_posix.cc" ] |
| 495 | deps += [ |
| 496 | "//third_party/nss", |
| 497 | ] |
| 498 | libs = [ |
[email protected] | ab9ce6e | 2014-04-17 20:33:19 | [diff] [blame] | 499 | "CFNetwork.framework", |
| 500 | "MobileCoreServices.framework", |
| 501 | "Security.framework", |
| 502 | "SystemConfiguration.framework", |
| 503 | "resolv", |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 504 | ] |
| 505 | } |
| 506 | |
| 507 | if (is_android) { |
[email protected] | b2b2bf5 | 2014-05-28 20:26:57 | [diff] [blame] | 508 | # Add some Linux sources that were excluded by the filter, but which |
| 509 | # are needed. |
| 510 | set_sources_assignment_filter([]) |
| 511 | sources += [ |
| 512 | "base/platform_mime_util_linux.cc", |
| 513 | "base/address_tracker_linux.cc", |
| 514 | "base/address_tracker_linux.h", |
| 515 | ] |
| 516 | set_sources_assignment_filter(sources_assignment_filter) |
| 517 | |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 518 | if (!is_android_webview_build) { |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 519 | deps += [ ":net_jni_headers" ] |
| 520 | |
| 521 | # The net/android/keystore_openssl.cc source file needs to access an |
| 522 | # OpenSSL-internal header. |
| 523 | include_dirs = [ "//third_party/openssl" ] |
| 524 | } |
| 525 | } |
[email protected] | 85191ed | 2014-05-15 00:41:49 | [diff] [blame] | 526 | |
| 527 | if (use_icu_alternatives_on_android) { |
| 528 | deps -= [ |
| 529 | "//base:i18n", |
| 530 | "//third_party/icu", |
| 531 | ] |
| 532 | sources -= [ |
| 533 | "base/filename_util_icu.cc", |
| 534 | "base/net_string_util_icu.cc", |
| 535 | "base/net_util_icu.cc", |
| 536 | ] |
| 537 | sources += [ |
| 538 | "base/net_string_util_icu_alternatives_android.cc", |
| 539 | "base/net_string_util_icu_alternatives_android.h", |
| 540 | ] |
| 541 | } |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 542 | } |
| 543 | |
| 544 | grit("net_resources") { |
| 545 | source = "base/net_resources.grd" |
| 546 | } |
| 547 | |
| 548 | source_set("http_server") { |
| 549 | sources = [ |
| 550 | "server/http_connection.cc", |
| 551 | "server/http_connection.h", |
| 552 | "server/http_server.cc", |
| 553 | "server/http_server.h", |
| 554 | "server/http_server_request_info.cc", |
| 555 | "server/http_server_request_info.h", |
| 556 | "server/http_server_response_info.cc", |
| 557 | "server/http_server_response_info.h", |
| 558 | "server/web_socket.cc", |
| 559 | "server/web_socket.h", |
| 560 | ] |
| 561 | configs += [ "//build/config/compiler:wexit_time_destructors" ] |
| 562 | deps = [ |
| 563 | ":net", |
| 564 | "//base", |
| 565 | ] |
| 566 | } |
| 567 | |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 568 | executable("dump_cache") { |
| 569 | sources = [ |
| 570 | "tools/dump_cache/cache_dumper.cc", |
| 571 | "tools/dump_cache/cache_dumper.h", |
| 572 | "tools/dump_cache/dump_cache.cc", |
| 573 | "tools/dump_cache/dump_files.cc", |
| 574 | "tools/dump_cache/dump_files.h", |
| 575 | "tools/dump_cache/simple_cache_dumper.cc", |
| 576 | "tools/dump_cache/simple_cache_dumper.h", |
| 577 | "tools/dump_cache/upgrade_win.cc", |
| 578 | "tools/dump_cache/upgrade_win.h", |
| 579 | "tools/dump_cache/url_to_filename_encoder.cc", |
| 580 | "tools/dump_cache/url_to_filename_encoder.h", |
| 581 | "tools/dump_cache/url_utilities.h", |
| 582 | "tools/dump_cache/url_utilities.cc", |
| 583 | ] |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 584 | |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 585 | configs += [ ":net_win_size_truncation" ] |
| 586 | |
| 587 | deps = [ |
| 588 | "//base", |
| 589 | ":net", |
[email protected] | b2b2bf5 | 2014-05-28 20:26:57 | [diff] [blame] | 590 | ":test_support", |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 591 | ] |
| 592 | } |
| 593 | |
[email protected] | b2b2bf5 | 2014-05-28 20:26:57 | [diff] [blame] | 594 | source_set("test_support") { |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 595 | sources = [ |
| 596 | "base/capturing_net_log.cc", |
| 597 | "base/capturing_net_log.h", |
| 598 | "base/load_timing_info_test_util.cc", |
| 599 | "base/load_timing_info_test_util.h", |
| 600 | "base/mock_file_stream.cc", |
| 601 | "base/mock_file_stream.h", |
| 602 | "base/test_completion_callback.cc", |
| 603 | "base/test_completion_callback.h", |
| 604 | "base/test_data_directory.cc", |
| 605 | "base/test_data_directory.h", |
| 606 | "cert/mock_cert_verifier.cc", |
| 607 | "cert/mock_cert_verifier.h", |
| 608 | "cookies/cookie_monster_store_test.cc", |
| 609 | "cookies/cookie_monster_store_test.h", |
| 610 | "cookies/cookie_store_test_callbacks.cc", |
| 611 | "cookies/cookie_store_test_callbacks.h", |
| 612 | "cookies/cookie_store_test_helpers.cc", |
| 613 | "cookies/cookie_store_test_helpers.h", |
| 614 | "disk_cache/disk_cache_test_base.cc", |
| 615 | "disk_cache/disk_cache_test_base.h", |
| 616 | "disk_cache/disk_cache_test_util.cc", |
| 617 | "disk_cache/disk_cache_test_util.h", |
| 618 | "dns/dns_test_util.cc", |
| 619 | "dns/dns_test_util.h", |
| 620 | "dns/mock_host_resolver.cc", |
| 621 | "dns/mock_host_resolver.h", |
| 622 | "dns/mock_mdns_socket_factory.cc", |
| 623 | "dns/mock_mdns_socket_factory.h", |
| 624 | "proxy/mock_proxy_resolver.cc", |
| 625 | "proxy/mock_proxy_resolver.h", |
| 626 | "proxy/mock_proxy_script_fetcher.cc", |
| 627 | "proxy/mock_proxy_script_fetcher.h", |
| 628 | "proxy/proxy_config_service_common_unittest.cc", |
| 629 | "proxy/proxy_config_service_common_unittest.h", |
| 630 | "socket/socket_test_util.cc", |
| 631 | "socket/socket_test_util.h", |
| 632 | "test/cert_test_util.cc", |
| 633 | "test/cert_test_util.h", |
| 634 | "test/ct_test_util.cc", |
| 635 | "test/ct_test_util.h", |
| 636 | "test/embedded_test_server/embedded_test_server.cc", |
| 637 | "test/embedded_test_server/embedded_test_server.h", |
| 638 | "test/embedded_test_server/http_connection.cc", |
| 639 | "test/embedded_test_server/http_connection.h", |
| 640 | "test/embedded_test_server/http_request.cc", |
| 641 | "test/embedded_test_server/http_request.h", |
| 642 | "test/embedded_test_server/http_response.cc", |
| 643 | "test/embedded_test_server/http_response.h", |
| 644 | "test/net_test_suite.cc", |
| 645 | "test/net_test_suite.h", |
| 646 | "test/python_utils.cc", |
| 647 | "test/python_utils.h", |
| 648 | "test/spawned_test_server/base_test_server.cc", |
| 649 | "test/spawned_test_server/base_test_server.h", |
| 650 | "test/spawned_test_server/local_test_server_posix.cc", |
| 651 | "test/spawned_test_server/local_test_server_win.cc", |
| 652 | "test/spawned_test_server/local_test_server.cc", |
| 653 | "test/spawned_test_server/local_test_server.h", |
| 654 | "test/spawned_test_server/remote_test_server.cc", |
| 655 | "test/spawned_test_server/remote_test_server.h", |
| 656 | "test/spawned_test_server/spawned_test_server.h", |
| 657 | "test/spawned_test_server/spawner_communicator.cc", |
| 658 | "test/spawned_test_server/spawner_communicator.h", |
| 659 | "url_request/test_url_fetcher_factory.cc", |
| 660 | "url_request/test_url_fetcher_factory.h", |
| 661 | "url_request/url_request_test_util.cc", |
| 662 | "url_request/url_request_test_util.h", |
| 663 | ] |
| 664 | |
| 665 | configs += [ ":net_win_size_truncation" ] |
| 666 | |
| 667 | deps = [ |
| 668 | "//base", |
| 669 | "//base/test:test_support", |
| 670 | "//crypto:platform", |
[email protected] | 59ff2d4 | 2014-04-22 22:25:23 | [diff] [blame] | 671 | "//net", |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 672 | "//net/tools/tld_cleanup", |
| 673 | "//testing/gmock", |
| 674 | "//testing/gtest", |
| 675 | "//url", |
| 676 | ] |
| 677 | |
| 678 | if (is_ios) { |
| 679 | deps += [ "//third_party/nss" ] |
| 680 | } |
| 681 | |
| 682 | if (!is_android) { |
| 683 | sources -= [ |
| 684 | "test/spawned_test_server/remote_test_server.cc", |
| 685 | "test/spawned_test_server/remote_test_server.h", |
| 686 | "test/spawned_test_server/spawner_communicator.cc", |
| 687 | "test/spawned_test_server/spawner_communicator.h", |
| 688 | ] |
| 689 | } |
| 690 | |
| 691 | if (use_v8_in_net) { |
| 692 | deps += [ ":net_with_v8" ] |
| 693 | } |
| 694 | |
| 695 | if (!enable_mdns) { |
| 696 | sources -= [ |
| 697 | "dns/mock_mdns_socket_factory.cc", |
| 698 | "dns/mock_mdns_socket_factory.h", |
| 699 | ] |
| 700 | } |
| 701 | |
| 702 | forward_dependent_configs_from = deps |
| 703 | } |
| 704 | |
| 705 | if (use_v8_in_net) { |
| 706 | component("net_with_v8") { |
| 707 | sources = [ |
| 708 | "proxy/proxy_resolver_v8.cc", |
| 709 | "proxy/proxy_resolver_v8.h", |
| 710 | "proxy/proxy_resolver_v8_tracing.cc", |
| 711 | "proxy/proxy_resolver_v8_tracing.h", |
| 712 | "proxy/proxy_service_v8.cc", |
| 713 | "proxy/proxy_service_v8.h", |
| 714 | ] |
| 715 | |
| 716 | defines = [ "NET_IMPLEMENTATION" ] |
| 717 | configs += [ |
| 718 | ":net_win_size_truncation", |
| 719 | "//build/config/compiler:wexit_time_destructors", |
| 720 | ] |
| 721 | |
| 722 | deps = [ |
| 723 | ":net", |
| 724 | "//base", |
| 725 | "//gin", |
| 726 | "//url", |
| 727 | "//v8", |
| 728 | ] |
| 729 | } |
| 730 | } |
| 731 | |
| 732 | if (!is_ios && !is_android) { |
| 733 | executable("crash_cache") { |
| 734 | sources = [ "tools/crash_cache/crash_cache.cc" ] |
| 735 | configs += [ ":net_win_size_truncation" ] |
| 736 | deps = [ |
| 737 | ":net", |
[email protected] | b2b2bf5 | 2014-05-28 20:26:57 | [diff] [blame] | 738 | ":test_support", |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 739 | "//base", |
| 740 | ] |
| 741 | } |
| 742 | |
| 743 | executable("crl_set_dump") { |
| 744 | sources = [ "tools/crl_set_dump/crl_set_dump.cc" ] |
| 745 | configs += [ ":net_win_size_truncation" ] |
| 746 | deps = [ |
| 747 | ":net", |
| 748 | "//base", |
| 749 | ] |
| 750 | } |
| 751 | |
| 752 | executable("dns_fuzz_stub") { |
| 753 | sources = [ "tools/dns_fuzz_stub/dns_fuzz_stub.cc" ] |
| 754 | configs += [ ":net_win_size_truncation" ] |
| 755 | deps = [ |
| 756 | ":net", |
| 757 | "//base", |
| 758 | ] |
| 759 | } |
| 760 | |
| 761 | executable("gdig") { |
| 762 | sources = [ |
| 763 | "tools/gdig/file_net_log.cc", |
| 764 | "tools/gdig/gdig.cc", |
| 765 | ] |
| 766 | deps = [ |
| 767 | ":net", |
| 768 | "//base", |
| 769 | ] |
| 770 | } |
| 771 | |
| 772 | executable("get_server_time") { |
| 773 | sources = [ "tools/get_server_time/get_server_time.cc" ] |
| 774 | configs += [ ":net_win_size_truncation" ] |
| 775 | deps = [ |
| 776 | ":net", |
| 777 | "//base", |
| 778 | "//base:i18n", |
| 779 | "//url", |
| 780 | ] |
| 781 | } |
| 782 | |
| 783 | if (use_v8_in_net) { |
| 784 | executable("net_watcher") { |
| 785 | sources = [ "tools/net_watcher/net_watcher.cc" ] |
| 786 | deps = [ |
| 787 | ":net", |
| 788 | ":net_with_v8", |
| 789 | "//base", |
| 790 | ] |
| 791 | |
| 792 | if (is_linux) { |
| 793 | configs += [ "//build/config/linux:gconf" ] |
| 794 | deps += [ "//build/config/linux:gio" ] |
| 795 | } |
| 796 | } |
| 797 | } |
| 798 | |
| 799 | executable("run_testserver") { |
| 800 | sources = [ "tools/testserver/run_testserver.cc" ] |
| 801 | deps = [ |
| 802 | ":net", # TODO(brettw) bug 363749: this shouldn't be necessary. It's not |
| 803 | # in the GYP build, and can be removed when the bug is fixed. |
[email protected] | b2b2bf5 | 2014-05-28 20:26:57 | [diff] [blame] | 804 | ":test_support", |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 805 | "//base", |
| 806 | "//base/test:test_support", |
| 807 | "//testing/gtest", |
| 808 | ] |
| 809 | } |
| 810 | |
| 811 | executable("stress_cache") { |
| 812 | sources = [ "disk_cache/blockfile/stress_cache.cc" ] |
| 813 | configs += [ ":net_win_size_truncation" ] |
| 814 | deps = [ |
| 815 | ":net", |
[email protected] | b2b2bf5 | 2014-05-28 20:26:57 | [diff] [blame] | 816 | ":test_support", |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 817 | "//base", |
| 818 | ] |
| 819 | } |
| 820 | |
| 821 | executable("tld_cleanup") { |
| 822 | sources = [ "tools/tld_cleanup/tld_cleanup.cc" ] |
| 823 | configs += [ ":net_win_size_truncation" ] |
| 824 | deps = [ |
| 825 | "//base", |
| 826 | "//base:i18n", |
| 827 | "//net/tools/tld_cleanup", |
| 828 | ] |
| 829 | } |
| 830 | } |
| 831 | |
| 832 | if (is_linux) { |
| 833 | source_set("balsa") { |
| 834 | sources = [ |
| 835 | "tools/balsa/balsa_enums.h", |
| 836 | "tools/balsa/balsa_frame.cc", |
| 837 | "tools/balsa/balsa_frame.h", |
| 838 | "tools/balsa/balsa_headers.cc", |
| 839 | "tools/balsa/balsa_headers.h", |
| 840 | "tools/balsa/balsa_headers_token_utils.cc", |
| 841 | "tools/balsa/balsa_headers_token_utils.h", |
| 842 | "tools/balsa/balsa_visitor_interface.h", |
| 843 | "tools/balsa/http_message_constants.cc", |
| 844 | "tools/balsa/http_message_constants.h", |
| 845 | "tools/balsa/noop_balsa_visitor.h", |
| 846 | "tools/balsa/simple_buffer.cc", |
| 847 | "tools/balsa/simple_buffer.h", |
| 848 | "tools/balsa/split.cc", |
| 849 | "tools/balsa/split.h", |
| 850 | "tools/balsa/string_piece_utils.h", |
| 851 | ] |
| 852 | deps = [ |
| 853 | ":net", |
| 854 | "//base", |
| 855 | ] |
| 856 | } |
| 857 | |
| 858 | source_set("epoll_server") { |
| 859 | sources = [ |
| 860 | "tools/epoll_server/epoll_server.cc", |
| 861 | "tools/epoll_server/epoll_server.h", |
| 862 | ] |
| 863 | deps = [ |
| 864 | ":net", |
| 865 | "//base", |
| 866 | ] |
| 867 | } |
| 868 | |
| 869 | source_set("flip_in_mem_edsm_server_base") { |
| 870 | sources = [ |
| 871 | "tools/dump_cache/url_to_filename_encoder.cc", |
| 872 | "tools/dump_cache/url_to_filename_encoder.h", |
| 873 | "tools/dump_cache/url_utilities.h", |
| 874 | "tools/dump_cache/url_utilities.cc", |
| 875 | "tools/flip_server/acceptor_thread.h", |
| 876 | "tools/flip_server/acceptor_thread.cc", |
| 877 | "tools/flip_server/create_listener.cc", |
| 878 | "tools/flip_server/create_listener.h", |
| 879 | "tools/flip_server/constants.h", |
| 880 | "tools/flip_server/flip_config.cc", |
| 881 | "tools/flip_server/flip_config.h", |
| 882 | "tools/flip_server/http_interface.cc", |
| 883 | "tools/flip_server/http_interface.h", |
| 884 | "tools/flip_server/loadtime_measurement.h", |
| 885 | "tools/flip_server/mem_cache.h", |
| 886 | "tools/flip_server/mem_cache.cc", |
| 887 | "tools/flip_server/output_ordering.cc", |
| 888 | "tools/flip_server/output_ordering.h", |
| 889 | "tools/flip_server/ring_buffer.cc", |
| 890 | "tools/flip_server/ring_buffer.h", |
| 891 | "tools/flip_server/sm_connection.cc", |
| 892 | "tools/flip_server/sm_connection.h", |
| 893 | "tools/flip_server/sm_interface.h", |
| 894 | "tools/flip_server/spdy_ssl.cc", |
| 895 | "tools/flip_server/spdy_ssl.h", |
| 896 | "tools/flip_server/spdy_interface.cc", |
| 897 | "tools/flip_server/spdy_interface.h", |
| 898 | "tools/flip_server/spdy_util.cc", |
| 899 | "tools/flip_server/spdy_util.h", |
| 900 | "tools/flip_server/streamer_interface.cc", |
| 901 | "tools/flip_server/streamer_interface.h", |
| 902 | ] |
| 903 | deps = [ |
| 904 | ":balsa", |
| 905 | ":epoll_server", |
| 906 | ":net", |
| 907 | "//base", |
| 908 | "//third_party/openssl", |
| 909 | ] |
| 910 | } |
| 911 | |
| 912 | executable("flip_in_mem_edsm_server_unittests") { |
| 913 | sources = [ |
| 914 | "tools/flip_server/flip_test_utils.cc", |
| 915 | "tools/flip_server/flip_test_utils.h", |
| 916 | "tools/flip_server/http_interface_test.cc", |
| 917 | "tools/flip_server/mem_cache_test.cc", |
| 918 | "tools/flip_server/run_all_tests.cc", |
| 919 | "tools/flip_server/spdy_interface_test.cc", |
| 920 | ] |
| 921 | deps = [ |
| 922 | ":flip_in_mem_edsm_server_base", |
| 923 | ":net", |
[email protected] | b2b2bf5 | 2014-05-28 20:26:57 | [diff] [blame] | 924 | ":test_support", |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 925 | "//testing/gtest", |
| 926 | "//testing/gmock", |
| 927 | "//third_party/openssl", |
| 928 | ] |
| 929 | } |
| 930 | |
| 931 | executable("flip_in_mem_edsm_server") { |
| 932 | sources = [ "tools/flip_server/flip_in_mem_edsm_server.cc" ] |
| 933 | deps = [ |
| 934 | ":flip_in_mem_edsm_server_base", |
| 935 | ":net", |
| 936 | "//base", |
| 937 | ] |
| 938 | } |
| 939 | |
| 940 | source_set("quic_base") { |
| 941 | sources = [ |
| 942 | "tools/quic/quic_client.cc", |
| 943 | "tools/quic/quic_client.h", |
| 944 | "tools/quic/quic_client_session.cc", |
| 945 | "tools/quic/quic_client_session.h", |
| 946 | "tools/quic/quic_default_packet_writer.cc", |
| 947 | "tools/quic/quic_default_packet_writer.h", |
| 948 | "tools/quic/quic_dispatcher.h", |
| 949 | "tools/quic/quic_dispatcher.cc", |
| 950 | "tools/quic/quic_epoll_clock.cc", |
| 951 | "tools/quic/quic_epoll_clock.h", |
| 952 | "tools/quic/quic_epoll_connection_helper.cc", |
| 953 | "tools/quic/quic_epoll_connection_helper.h", |
| 954 | "tools/quic/quic_in_memory_cache.cc", |
| 955 | "tools/quic/quic_in_memory_cache.h", |
| 956 | "tools/quic/quic_packet_writer_wrapper.cc", |
| 957 | "tools/quic/quic_packet_writer_wrapper.h", |
| 958 | "tools/quic/quic_server.cc", |
| 959 | "tools/quic/quic_server.h", |
| 960 | "tools/quic/quic_server_session.cc", |
| 961 | "tools/quic/quic_server_session.h", |
| 962 | "tools/quic/quic_socket_utils.cc", |
| 963 | "tools/quic/quic_socket_utils.h", |
| 964 | "tools/quic/quic_spdy_client_stream.cc", |
| 965 | "tools/quic/quic_spdy_client_stream.h", |
| 966 | "tools/quic/quic_spdy_server_stream.cc", |
| 967 | "tools/quic/quic_spdy_server_stream.h", |
| 968 | "tools/quic/quic_time_wait_list_manager.h", |
| 969 | "tools/quic/quic_time_wait_list_manager.cc", |
| 970 | "tools/quic/spdy_utils.cc", |
| 971 | "tools/quic/spdy_utils.h", |
| 972 | ] |
| 973 | deps = [ |
| 974 | ":balsa", |
| 975 | ":epoll_server", |
| 976 | ":net", |
| 977 | "//base", |
| 978 | "//base/third_party/dynamic_annotations", |
| 979 | "//crypto", |
| 980 | "//third_party/openssl", |
| 981 | "//url", |
| 982 | ] |
| 983 | } |
| 984 | |
| 985 | executable("quic_client") { |
| 986 | sources = [ "tools/quic/quic_client_bin.cc" ] |
| 987 | deps = [ |
| 988 | ":quic_base", |
| 989 | ":net", |
| 990 | "//base", |
| 991 | "//third_party/openssl", |
| 992 | ] |
| 993 | } |
| 994 | |
| 995 | executable("quic_server") { |
| 996 | sources = [ "tools/quic/quic_server_bin.cc" ] |
| 997 | deps = [ |
| 998 | ":quic_base", |
| 999 | ":net", |
| 1000 | "//base", |
| 1001 | "//third_party/openssl", |
| 1002 | ] |
| 1003 | } |
| 1004 | } |
| 1005 | |
[email protected] | ef0eb44 | 2014-05-15 09:32:18 | [diff] [blame] | 1006 | if (is_android) { |
| 1007 | generate_jni("net_jni_headers") { |
| 1008 | sources = [ |
| 1009 | "android/java/src/org/chromium/net/AndroidCertVerifyResult.java", |
| 1010 | "android/java/src/org/chromium/net/AndroidKeyStore.java", |
| 1011 | "android/java/src/org/chromium/net/AndroidNetworkLibrary.java", |
| 1012 | "android/java/src/org/chromium/net/AndroidPrivateKey.java", |
| 1013 | "android/java/src/org/chromium/net/GURLUtils.java", |
| 1014 | "android/java/src/org/chromium/net/NetworkChangeNotifier.java", |
| 1015 | "android/java/src/org/chromium/net/ProxyChangeListener.java", |
| 1016 | "android/java/src/org/chromium/net/X509Util.java", |
| 1017 | ] |
| 1018 | jni_package = "net" |
| 1019 | } |
| 1020 | } |
[email protected] | 8603c5de | 2014-04-16 20:34:31 | [diff] [blame] | 1021 | |
| 1022 | if (is_android || is_linux) { |
| 1023 | executable("disk_cache_memory_test") { |
| 1024 | sources = [ "tools/disk_cache_memory_test/disk_cache_memory_test.cc" ] |
| 1025 | deps = [ |
| 1026 | ":net", |
| 1027 | "//base", |
| 1028 | ] |
| 1029 | } |
| 1030 | } |