OLD | NEW |
(Empty) | |
| 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 |
| 3 # found in the LICENSE file. |
| 4 |
| 5 import("//build/config/crypto.gni") |
| 6 |
| 7 # GYP version: chrome/chrome_common.gypi:common_net |
| 8 static_library("net") { |
| 9 sources = [ |
| 10 "net_error_info.cc", |
| 11 "net_error_info.h", |
| 12 "net_resource_provider.cc", |
| 13 "net_resource_provider.h", |
| 14 "predictor_common.h", |
| 15 "url_util.cc", |
| 16 "url_util.h", |
| 17 "x509_certificate_model.cc", |
| 18 "x509_certificate_model.h", |
| 19 "x509_certificate_model_nss.cc", |
| 20 "x509_certificate_model_openssl.cc", |
| 21 ] |
| 22 |
| 23 deps = [ |
| 24 "//base", |
| 25 "//chrome:resources", |
| 26 "//chrome:strings", |
| 27 "//crypto", |
| 28 "//net", |
| 29 "//net:net_resources", |
| 30 "//third_party/icu", |
| 31 ] |
| 32 |
| 33 if (is_ios) { |
| 34 sources -= [ |
| 35 "net_resource_provider.cc", |
| 36 "x509_certificate_model.cc", |
| 37 ] |
| 38 } else { |
| 39 deps += [ "//gpu:ipc" ] |
| 40 } |
| 41 |
| 42 if (is_win || is_mac || is_ios) { |
| 43 sources -= [ |
| 44 "x509_certificate_model_nss.cc", |
| 45 "x509_certificate_model_openssl.cc", |
| 46 ] |
| 47 } |
| 48 |
| 49 if (is_android) { |
| 50 sources -= [ |
| 51 "x509_certificate_model.cc", |
| 52 "x509_certificate_model_openssl.cc", |
| 53 ] |
| 54 deps += [ "//third_party/openssl" ] |
| 55 } |
| 56 |
| 57 if (use_openssl) { |
| 58 # networking_private_crypto.cc uses NSS functions. |
| 59 sources -= [ |
| 60 "x509_certificate_model_nss.cc", |
| 61 ] |
| 62 } else { |
| 63 sources -= [ |
| 64 "x509_certificate_model_openssl.cc", |
| 65 ] |
| 66 } |
| 67 |
| 68 if (is_win) { |
| 69 cflags = [ "/wd4267" ] |
| 70 } |
| 71 } |
OLD | NEW |