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",
22 "//components/error_page/common",
23 "//components/network_hints/common",
26 "//net:net_resources",
32 sources -= [ "net_resource_provider.cc" ]
34 deps += [ "//gpu/ipc" ]
37 if (is_android || is_ios) {
38 sources -= [ "x509_certificate_model.cc" ]
41 if (use_openssl_certs && !is_android) {
42 deps += [ "//third_party/boringssl" ]
44 sources -= [ "x509_certificate_model_openssl.cc" ]
48 deps += [ "//crypto:platform" ]
50 sources -= [ "x509_certificate_model_nss.cc" ]
53 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]