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