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 } else if (use_openssl) { 48 sources -= [ "x509_certificate_model_nss.cc" ] 49 } else { 50 sources -= [ "x509_certificate_model_openssl.cc" ] 51 } 52 53 if (is_android) { 54 sources -= [ 55 "x509_certificate_model.cc", 56 "x509_certificate_model_openssl.cc", 57 ] 58 deps += [ "//third_party/boringssl" ] 59 } 60 61 if (is_win) { 62 cflags = [ "/wd4267" ] 63 } 64 } 65