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_error_info.cc", | 10 "net_error_info.cc", |
(...skipping 26 matching lines...) Expand all Loading... |
37 ] | 37 ] |
38 } else { | 38 } else { |
39 deps += [ "//gpu/ipc" ] | 39 deps += [ "//gpu/ipc" ] |
40 } | 40 } |
41 | 41 |
42 if (is_win || is_mac || is_ios) { | 42 if (is_win || is_mac || is_ios) { |
43 sources -= [ | 43 sources -= [ |
44 "x509_certificate_model_nss.cc", | 44 "x509_certificate_model_nss.cc", |
45 "x509_certificate_model_openssl.cc", | 45 "x509_certificate_model_openssl.cc", |
46 ] | 46 ] |
| 47 } else if (use_openssl) { |
| 48 sources -= [ "x509_certificate_model_nss.cc" ] |
| 49 } else { |
| 50 sources -= [ "x509_certificate_model_openssl.cc" ] |
47 } | 51 } |
48 | 52 |
49 if (is_android) { | 53 if (is_android) { |
50 sources -= [ | 54 sources -= [ |
51 "x509_certificate_model.cc", | 55 "x509_certificate_model.cc", |
52 "x509_certificate_model_openssl.cc", | 56 "x509_certificate_model_openssl.cc", |
53 ] | 57 ] |
54 deps += [ "//third_party/boringssl" ] | 58 deps += [ "//third_party/boringssl" ] |
55 } | 59 } |
56 | 60 |
57 if (use_openssl) { | |
58 # networking_private_crypto.cc uses NSS functions. | |
59 sources -= [ | |
60 "x509_certificate_model_nss.cc", | |
61 ] | |
62 } else if (is_linux) { | |
63 # Already removed for non-Linux cases above. | |
64 sources -= [ | |
65 "x509_certificate_model_openssl.cc", | |
66 ] | |
67 } | |
68 | |
69 if (is_win) { | 61 if (is_win) { |
70 cflags = [ "/wd4267" ] | 62 cflags = [ "/wd4267" ] |
71 } | 63 } |
72 } | 64 } |
OLD | NEW |