| OLD | NEW |
| (Empty) |
| 1 # Copyright 2015 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 { | |
| 6 # This target is included by 'net' target. | |
| 7 'type': '<(component)', | |
| 8 'variables': { 'enable_wexit_time_destructors': 1, }, | |
| 9 'dependencies': [ | |
| 10 '../base/base.gyp:base', | |
| 11 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_ann
otations', | |
| 12 '../crypto/crypto.gyp:crypto', | |
| 13 '../sdch/sdch.gyp:sdch', | |
| 14 '../third_party/boringssl/boringssl.gyp:boringssl', | |
| 15 '../third_party/protobuf/protobuf.gyp:protobuf_lite', | |
| 16 '../third_party/zlib/zlib.gyp:zlib', | |
| 17 '../url/url.gyp:url_url_features', | |
| 18 'net_derived_sources', | |
| 19 'net_quic_proto', | |
| 20 'net_resources', | |
| 21 ], | |
| 22 'sources': [ | |
| 23 '<@(net_nacl_common_sources)', | |
| 24 '<@(net_non_nacl_sources)', | |
| 25 ], | |
| 26 'defines': [ | |
| 27 'NET_IMPLEMENTATION', | |
| 28 ], | |
| 29 'export_dependent_settings': [ | |
| 30 '../base/base.gyp:base', | |
| 31 '../third_party/boringssl/boringssl.gyp:boringssl', | |
| 32 ], | |
| 33 'conditions': [ | |
| 34 ['chromeos==1', { | |
| 35 'sources!': [ | |
| 36 'base/network_change_notifier_linux.cc', | |
| 37 'base/network_change_notifier_linux.h', | |
| 38 'base/network_change_notifier_netlink_linux.cc', | |
| 39 'base/network_change_notifier_netlink_linux.h', | |
| 40 'proxy/proxy_config_service_linux.cc', | |
| 41 'proxy/proxy_config_service_linux.h', | |
| 42 ], | |
| 43 }], | |
| 44 ['use_kerberos==1', { | |
| 45 'defines': [ | |
| 46 'USE_KERBEROS', | |
| 47 ], | |
| 48 'conditions': [ | |
| 49 ['OS=="openbsd"', { | |
| 50 'include_dirs': [ | |
| 51 '/usr/include/kerberosV' | |
| 52 ], | |
| 53 }], | |
| 54 ['linux_link_kerberos==1', { | |
| 55 'link_settings': { | |
| 56 'ldflags': [ | |
| 57 '<!@(krb5-config --libs gssapi)', | |
| 58 ], | |
| 59 }, | |
| 60 }, { # linux_link_kerberos==0 | |
| 61 'defines': [ | |
| 62 'DLOPEN_KERBEROS', | |
| 63 ], | |
| 64 }], | |
| 65 ], | |
| 66 }, { # use_kerberos == 0 | |
| 67 'sources!': [ | |
| 68 'http/http_auth_gssapi_posix.cc', | |
| 69 'http/http_auth_gssapi_posix.h', | |
| 70 'http/http_auth_handler_negotiate.cc', | |
| 71 'http/http_auth_handler_negotiate.h', | |
| 72 ], | |
| 73 }], | |
| 74 ['posix_avoid_mmap==1', { | |
| 75 'defines': [ | |
| 76 'POSIX_AVOID_MMAP', | |
| 77 ], | |
| 78 'direct_dependent_settings': { | |
| 79 'defines': [ | |
| 80 'POSIX_AVOID_MMAP', | |
| 81 ], | |
| 82 }, | |
| 83 'sources!': [ | |
| 84 'disk_cache/blockfile/mapped_file_posix.cc', | |
| 85 ], | |
| 86 }, { # else | |
| 87 'sources!': [ | |
| 88 'disk_cache/blockfile/mapped_file_avoid_mmap_posix.cc', | |
| 89 ], | |
| 90 }], | |
| 91 ['disable_file_support!=1', { | |
| 92 # TODO(mmenke): Should probably get rid of the dependency on | |
| 93 # net_resources in this case (It's used in net_util, to format | |
| 94 # directory listings. Also used outside of net/). | |
| 95 'sources': ['<@(net_file_support_sources)'] | |
| 96 }], | |
| 97 ['disable_ftp_support!=1', { | |
| 98 'sources': ['<@(net_ftp_support_sources)'] | |
| 99 }], | |
| 100 ['enable_built_in_dns==1', { | |
| 101 'defines': [ | |
| 102 'ENABLE_BUILT_IN_DNS', | |
| 103 ] | |
| 104 }, { # else | |
| 105 'sources!': [ | |
| 106 'dns/address_sorter_posix.cc', | |
| 107 'dns/address_sorter_posix.h', | |
| 108 'dns/dns_client.cc', | |
| 109 ], | |
| 110 }], | |
| 111 [ 'use_nss_certs == 1', { | |
| 112 'dependencies': [ | |
| 113 '../build/linux/system.gyp:nss', | |
| 114 ], | |
| 115 }, { | |
| 116 'sources!': [ | |
| 117 'cert/x509_util_nss.h', | |
| 118 ] | |
| 119 } | |
| 120 ], | |
| 121 ['chromecast==1 and use_nss_certs==1', { | |
| 122 'sources': [ | |
| 123 'ssl/ssl_platform_key_chromecast.cc', | |
| 124 ], | |
| 125 'sources!': [ | |
| 126 'ssl/ssl_platform_key_nss.cc', | |
| 127 ], | |
| 128 }], | |
| 129 [ 'use_openssl_certs == 0', { | |
| 130 'sources!': [ | |
| 131 'base/crypto_module_openssl.cc', | |
| 132 'base/keygen_handler_openssl.cc', | |
| 133 'base/openssl_private_key_store.h', | |
| 134 'base/openssl_private_key_store_android.cc', | |
| 135 'base/openssl_private_key_store_memory.cc', | |
| 136 'cert/cert_database_openssl.cc', | |
| 137 'cert/cert_verify_proc_openssl.cc', | |
| 138 'cert/cert_verify_proc_openssl.h', | |
| 139 'cert/test_root_certs_openssl.cc', | |
| 140 'cert/x509_certificate_openssl.cc', | |
| 141 'ssl/openssl_client_key_store.cc', | |
| 142 'ssl/openssl_client_key_store.h', | |
| 143 ], | |
| 144 }], | |
| 145 [ 'use_glib == 1', { | |
| 146 'dependencies': [ | |
| 147 '../build/linux/system.gyp:gconf', | |
| 148 '../build/linux/system.gyp:gio', | |
| 149 ], | |
| 150 }], | |
| 151 [ 'desktop_linux == 1 or chromeos == 1', { | |
| 152 'conditions': [ | |
| 153 ['os_bsd==1', { | |
| 154 'sources!': [ | |
| 155 'base/network_change_notifier_linux.cc', | |
| 156 'base/network_change_notifier_netlink_linux.cc', | |
| 157 'proxy/proxy_config_service_linux.cc', | |
| 158 ], | |
| 159 },{ | |
| 160 'dependencies': [ | |
| 161 '../build/linux/system.gyp:libresolv', | |
| 162 ], | |
| 163 }], | |
| 164 ['OS=="solaris"', { | |
| 165 'link_settings': { | |
| 166 'ldflags': [ | |
| 167 '-R/usr/lib/mps', | |
| 168 ], | |
| 169 }, | |
| 170 }], | |
| 171 ], | |
| 172 }, | |
| 173 ], | |
| 174 [ 'use_nss_certs != 1', { | |
| 175 'sources!': [ | |
| 176 'base/crypto_module_nss.cc', | |
| 177 'base/keygen_handler_nss.cc', | |
| 178 'cert/cert_database_nss.cc', | |
| 179 'cert/cert_verify_proc_nss.cc', | |
| 180 'cert/cert_verify_proc_nss.h', | |
| 181 'cert/nss_cert_database.cc', | |
| 182 'cert/nss_cert_database.h', | |
| 183 'cert/nss_cert_database_chromeos.cc', | |
| 184 'cert/nss_cert_database_chromeos.h', | |
| 185 'cert/nss_profile_filter_chromeos.cc', | |
| 186 'cert/nss_profile_filter_chromeos.h', | |
| 187 'cert/test_root_certs_nss.cc', | |
| 188 'cert/x509_certificate_nss.cc', | |
| 189 'cert/x509_util_nss.cc', | |
| 190 'cert_net/nss_ocsp.cc', | |
| 191 'cert_net/nss_ocsp.h', | |
| 192 'ssl/client_cert_store_nss.cc', | |
| 193 'ssl/client_cert_store_nss.h', | |
| 194 'ssl/client_key_store.cc', | |
| 195 'ssl/client_key_store.h', | |
| 196 'ssl/ssl_platform_key_nss.cc', | |
| 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 ], | |
| 204 }, | |
| 205 ], | |
| 206 [ 'use_nss_certs == 1', { | |
| 207 'sources': [ | |
| 208 'third_party/nss/ssl/cmpcert.cc', | |
| 209 'third_party/nss/ssl/cmpcert.h', | |
| 210 ], | |
| 211 }], | |
| 212 [ 'enable_websockets == 1', { | |
| 213 'defines': ['ENABLE_WEBSOCKETS'], | |
| 214 'sources': ['<@(net_websockets_sources)'] | |
| 215 }], | |
| 216 [ 'enable_mdns != 1', { | |
| 217 'sources!' : [ | |
| 218 'dns/mdns_cache.cc', | |
| 219 'dns/mdns_cache.h', | |
| 220 'dns/mdns_client.cc', | |
| 221 'dns/mdns_client.h', | |
| 222 'dns/mdns_client_impl.cc', | |
| 223 'dns/mdns_client_impl.h', | |
| 224 ] | |
| 225 }], | |
| 226 [ 'OS == "win"', { | |
| 227 'sources!': [ | |
| 228 'http/http_auth_handler_ntlm_portable.cc', | |
| 229 ], | |
| 230 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | |
| 231 'msvs_disabled_warnings': [4267, ], | |
| 232 'all_dependent_settings': { | |
| 233 'msvs_settings': { | |
| 234 'VCLinkerTool': { | |
| 235 'AdditionalDependencies': [ | |
| 236 'crypt32.lib', | |
| 237 'dhcpcsvc.lib', | |
| 238 'iphlpapi.lib', | |
| 239 'rpcrt4.lib', | |
| 240 'secur32.lib', | |
| 241 'urlmon.lib', | |
| 242 'winhttp.lib', | |
| 243 ], | |
| 244 }, | |
| 245 }, | |
| 246 }, | |
| 247 'msvs_settings': { | |
| 248 'VCLinkerTool': { | |
| 249 'AdditionalDependencies': [ | |
| 250 'crypt32.lib', | |
| 251 'dhcpcsvc.lib', | |
| 252 'iphlpapi.lib', | |
| 253 'rpcrt4.lib', | |
| 254 'secur32.lib', | |
| 255 'urlmon.lib', | |
| 256 'winhttp.lib', | |
| 257 ], | |
| 258 }, | |
| 259 }, | |
| 260 }, { # else: OS != "win" | |
| 261 'sources!': [ | |
| 262 'base/winsock_init.cc', | |
| 263 'base/winsock_init.h', | |
| 264 'base/winsock_util.cc', | |
| 265 'base/winsock_util.h', | |
| 266 'proxy/proxy_resolver_winhttp.cc', | |
| 267 'proxy/proxy_resolver_winhttp.h', | |
| 268 ], | |
| 269 }, | |
| 270 ], | |
| 271 [ 'OS == "mac"', { | |
| 272 'link_settings': { | |
| 273 'libraries': [ | |
| 274 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', | |
| 275 '$(SDKROOT)/System/Library/Frameworks/Security.framework', | |
| 276 '$(SDKROOT)/System/Library/Frameworks/SystemConfiguration.framework'
, | |
| 277 '$(SDKROOT)/usr/lib/libresolv.dylib', | |
| 278 ] | |
| 279 }, | |
| 280 }, | |
| 281 ], | |
| 282 [ 'OS == "ios"', { | |
| 283 'sources!': [ | |
| 284 'disk_cache/blockfile/file_posix.cc', | |
| 285 ], | |
| 286 'link_settings': { | |
| 287 'libraries': [ | |
| 288 '$(SDKROOT)/System/Library/Frameworks/CFNetwork.framework', | |
| 289 '$(SDKROOT)/System/Library/Frameworks/MobileCoreServices.framework', | |
| 290 '$(SDKROOT)/System/Library/Frameworks/Security.framework', | |
| 291 '$(SDKROOT)/System/Library/Frameworks/SystemConfiguration.framework'
, | |
| 292 ], | |
| 293 'xcode_settings': { | |
| 294 'OTHER_LDFLAGS': [ | |
| 295 '-lresolv', | |
| 296 ], | |
| 297 }, | |
| 298 }, | |
| 299 }, | |
| 300 ], | |
| 301 [ 'OS == "ios" or OS == "mac"', { | |
| 302 'sources': [ | |
| 303 '<@(net_base_mac_ios_sources)', | |
| 304 ], | |
| 305 }, | |
| 306 ], | |
| 307 ['OS=="android" and _toolset=="target"', { | |
| 308 'dependencies': [ | |
| 309 'net_java', | |
| 310 ], | |
| 311 }], | |
| 312 [ 'OS == "android"', { | |
| 313 'dependencies': [ | |
| 314 'net_jni_headers', | |
| 315 ], | |
| 316 'sources!': [ | |
| 317 'base/openssl_private_key_store_memory.cc', | |
| 318 'cert/cert_database_openssl.cc', | |
| 319 'cert/cert_verify_proc_openssl.cc', | |
| 320 'cert/test_root_certs_openssl.cc', | |
| 321 'http/http_auth_gssapi_posix.cc', | |
| 322 'http/http_auth_gssapi_posix.h', | |
| 323 ], | |
| 324 }, | |
| 325 ], | |
| 326 ], | |
| 327 'target_conditions': [ | |
| 328 # These source files are excluded by default platform rules, but they | |
| 329 # are needed in specific cases on other platforms. Re-including them can | |
| 330 # only be done in target_conditions as it is evaluated after the | |
| 331 # platform rules. | |
| 332 ['OS == "android"', { | |
| 333 'sources/': [ | |
| 334 ['include', '^base/platform_mime_util_linux\\.cc$'], | |
| 335 ['include', '^base/address_tracker_linux\\.cc$'], | |
| 336 ['include', '^base/address_tracker_linux\\.h$'], | |
| 337 ['include', '^base/network_interfaces_linux\\.cc$'], | |
| 338 ['include', '^base/network_interfaces_linux\\.h$'], | |
| 339 ], | |
| 340 }], | |
| 341 ['OS == "ios"', { | |
| 342 'sources/': [ | |
| 343 ['include', '^base/mac/url_conversions\\.h$'], | |
| 344 ['include', '^base/mac/url_conversions\\.mm$'], | |
| 345 ['include', '^base/network_change_notifier_mac\\.cc$'], | |
| 346 ['include', '^base/network_config_watcher_mac\\.cc$'], | |
| 347 ['include', '^base/network_interfaces_mac\\.cc$'], | |
| 348 ['include', '^base/network_interfaces_mac\\.h$'], | |
| 349 ['include', '^base/platform_mime_util_mac\\.mm$'], | |
| 350 ['include', '^proxy/proxy_resolver_mac\\.cc$'], | |
| 351 ['include', '^proxy/proxy_server_mac\\.cc$'], | |
| 352 ], | |
| 353 }], | |
| 354 ['OS == "ios"', { | |
| 355 'sources/': [ | |
| 356 ['include', '^cert/test_root_certs_mac\\.cc$'], | |
| 357 ], | |
| 358 }], | |
| 359 ], | |
| 360 } | |
| OLD | NEW |