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", |
11 "net_resource_provider.h", | 11 "net_resource_provider.h", |
12 "x509_certificate_model.cc", | 12 "x509_certificate_model.cc", |
13 "x509_certificate_model.h", | 13 "x509_certificate_model.h", |
14 "x509_certificate_model_nss.cc", | 14 "x509_certificate_model_nss.cc", |
15 "x509_certificate_model_openssl.cc", | 15 "x509_certificate_model_openssl.cc", |
16 ] | 16 ] |
17 | 17 |
18 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 18 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
19 | 19 |
20 deps = [ | 20 deps = [ |
21 "//base", | 21 "//base", |
| 22 "//base:i18n", |
22 "//chrome:resources", | 23 "//chrome:resources", |
23 "//chrome:strings", | 24 "//chrome:strings", |
24 "//components/url_formatter", | 25 "//components/url_formatter", |
25 "//crypto", | 26 "//crypto", |
26 "//net", | 27 "//net", |
27 "//net:net_resources", | 28 "//net:net_resources", |
28 "//third_party/icu", | 29 "//third_party/icu", |
29 "//ui/base", | 30 "//ui/base", |
30 ] | 31 ] |
31 | 32 |
32 if (is_ios) { | 33 if (is_ios) { |
33 sources -= [ "net_resource_provider.cc" ] | 34 sources -= [ "net_resource_provider.cc" ] |
34 } | 35 } |
35 | 36 |
36 if (is_android || is_ios) { | 37 if (is_android || is_ios) { |
37 sources -= [ "x509_certificate_model.cc" ] | 38 sources -= [ "x509_certificate_model.cc" ] |
38 } | 39 } |
39 | 40 |
40 if (use_openssl_certs && !is_android) { | 41 if (use_openssl_certs && !is_android) { |
41 deps += [ "//third_party/boringssl" ] | 42 deps += [ "//third_party/boringssl" ] |
42 } else { | 43 } else { |
43 sources -= [ "x509_certificate_model_openssl.cc" ] | 44 sources -= [ "x509_certificate_model_openssl.cc" ] |
44 } | 45 } |
45 | 46 |
46 if (use_nss_certs) { | 47 if (use_nss_certs) { |
47 deps += [ "//crypto:platform" ] | 48 deps += [ |
| 49 "//chrome/third_party/mozilla_security_manager", |
| 50 "//crypto:platform", |
| 51 ] |
48 } else { | 52 } else { |
49 sources -= [ "x509_certificate_model_nss.cc" ] | 53 sources -= [ "x509_certificate_model_nss.cc" ] |
50 } | 54 } |
51 } | 55 } |
OLD | NEW |