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.
5 import("//build/config/crypto.gni")
7 # GYP version: chrome/chrome_common.gypi:common_net
8 static_library("net") {
10 "net_resource_provider.cc",
11 "net_resource_provider.h",
12 "x509_certificate_model.cc",
13 "x509_certificate_model.h",
14 "x509_certificate_model_nss.cc",
15 "x509_certificate_model_openssl.cc",
18 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
24 "//components/url_formatter",
27 "//net:net_resources",
33 sources -= [ "net_resource_provider.cc" ]
36 if (is_android || is_ios) {
37 sources -= [ "x509_certificate_model.cc" ]
40 if (use_openssl_certs && !is_android) {
41 deps += [ "//third_party/boringssl" ]
43 sources -= [ "x509_certificate_model_openssl.cc" ]
47 deps += [ "//crypto:platform" ]
49 sources -= [ "x509_certificate_model_nss.cc" ]