| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/config/crypto.gni") | 5 import("//build/config/crypto.gni") |
| 6 | 6 |
| 7 # GYP version: chrome/chrome_common.gypi:common_net | 7 # GYP version: chrome/chrome_common.gypi:common_net |
| 8 static_library("net") { | 8 static_library("net") { |
| 9 sources = [ | 9 sources = [ |
| 10 "net_resource_provider.cc", | 10 "net_resource_provider.cc", |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 "//chrome:strings", | 23 "//chrome:strings", |
| 24 "//components/error_page/common", | 24 "//components/error_page/common", |
| 25 "//crypto", | 25 "//crypto", |
| 26 "//net", | 26 "//net", |
| 27 "//net:net_resources", | 27 "//net:net_resources", |
| 28 "//third_party/icu", | 28 "//third_party/icu", |
| 29 "//ui/base/", | 29 "//ui/base/", |
| 30 ] | 30 ] |
| 31 | 31 |
| 32 if (is_ios) { | 32 if (is_ios) { |
| 33 sources -= [ | 33 sources -= [ "net_resource_provider.cc" ] |
| 34 "net_resource_provider.cc", | |
| 35 "x509_certificate_model.cc", | |
| 36 ] | |
| 37 } else { | 34 } else { |
| 38 deps += [ "//gpu/ipc" ] | 35 deps += [ "//gpu/ipc" ] |
| 39 } | 36 } |
| 40 | 37 |
| 41 if (is_win || is_mac || is_ios) { | 38 if (is_android || is_ios) { |
| 42 sources -= [ | 39 sources -= [ "x509_certificate_model.cc" ] |
| 43 "x509_certificate_model_nss.cc", | 40 } |
| 44 "x509_certificate_model_openssl.cc", | 41 |
| 45 ] | 42 if (use_openssl_certs && !is_android) { |
| 46 } else if (use_openssl) { | 43 deps += [ "//third_party/boringssl" ] |
| 47 sources -= [ "x509_certificate_model_nss.cc" ] | |
| 48 } else { | 44 } else { |
| 49 sources -= [ "x509_certificate_model_openssl.cc" ] | 45 sources -= [ "x509_certificate_model_openssl.cc" ] |
| 50 } | 46 } |
| 51 | 47 |
| 52 if (is_android) { | 48 if (use_nss_certs) { |
| 53 sources -= [ | 49 deps += [ "//crypto:platform" ] |
| 54 "x509_certificate_model.cc", | 50 } else { |
| 55 "x509_certificate_model_openssl.cc", | 51 sources -= [ "x509_certificate_model_nss.cc" ] |
| 56 ] | |
| 57 deps += [ "//third_party/boringssl" ] | |
| 58 } | 52 } |
| 59 | 53 |
| 60 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 54 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 61 } | 55 } |
| OLD | NEW |