| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 } | 47 } |
| 48 | 48 |
| 49 if (is_android) { | 49 if (is_android) { |
| 50 sources -= [ | 50 sources -= [ |
| 51 "x509_certificate_model.cc", | 51 "x509_certificate_model.cc", |
| 52 "x509_certificate_model_openssl.cc", | 52 "x509_certificate_model_openssl.cc", |
| 53 ] | 53 ] |
| 54 deps += [ "//third_party/openssl" ] | 54 deps += [ "//third_party/boringssl" ] |
| 55 } | 55 } |
| 56 | 56 |
| 57 if (use_openssl) { | 57 if (use_openssl) { |
| 58 # networking_private_crypto.cc uses NSS functions. | 58 # networking_private_crypto.cc uses NSS functions. |
| 59 sources -= [ | 59 sources -= [ |
| 60 "x509_certificate_model_nss.cc", | 60 "x509_certificate_model_nss.cc", |
| 61 ] | 61 ] |
| 62 } else if (is_linux) { | 62 } else if (is_linux) { |
| 63 # Already removed for non-Linux cases above. | 63 # Already removed for non-Linux cases above. |
| 64 sources -= [ | 64 sources -= [ |
| 65 "x509_certificate_model_openssl.cc", | 65 "x509_certificate_model_openssl.cc", |
| 66 ] | 66 ] |
| 67 } | 67 } |
| 68 | 68 |
| 69 if (is_win) { | 69 if (is_win) { |
| 70 cflags = [ "/wd4267" ] | 70 cflags = [ "/wd4267" ] |
| 71 } | 71 } |
| 72 } | 72 } |
| OLD | NEW |