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",
14 "x509_certificate_model.cc",
15 "x509_certificate_model.h",
16 "x509_certificate_model_nss.cc",
17 "x509_certificate_model_openssl.cc",
24 "//components/error_page/common",
25 "//components/network_hints/common",
28 "//net:net_resources",
34 sources -= [ "net_resource_provider.cc" ]
36 deps += [ "//gpu/ipc" ]
39 if (is_android || is_ios) {
40 sources -= [ "x509_certificate_model.cc" ]
43 if (use_openssl_certs && !is_android) {
44 deps += [ "//third_party/boringssl" ]
46 sources -= [ "x509_certificate_model_openssl.cc" ]
50 deps += [ "//crypto:platform" ]
52 sources -= [ "x509_certificate_model_nss.cc" ]
55 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]