Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(94)

Side by Side Diff: chrome/common/net/BUILD.gn

Issue 881213004: Support building BoringSSL with NSS certificates. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/chrome_utility.gypi ('k') | chrome/utility/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/crypto.gni") 5 import("//build/config/crypto.gni")
6 6
7 # GYP version: chrome/chrome_common.gypi:common_net 7 # GYP version: chrome/chrome_common.gypi:common_net
8 static_library("net") { 8 static_library("net") {
9 sources = [ 9 sources = [
10 "net_resource_provider.cc", 10 "net_resource_provider.cc",
(...skipping 12 matching lines...) Expand all
23 "//chrome:strings", 23 "//chrome:strings",
24 "//components/error_page/common", 24 "//components/error_page/common",
25 "//crypto", 25 "//crypto",
26 "//net", 26 "//net",
27 "//net:net_resources", 27 "//net:net_resources",
28 "//third_party/icu", 28 "//third_party/icu",
29 "//ui/base/", 29 "//ui/base/",
30 ] 30 ]
31 31
32 if (is_ios) { 32 if (is_ios) {
33 sources -= [ 33 sources -= [ "net_resource_provider.cc" ]
34 "net_resource_provider.cc",
35 "x509_certificate_model.cc",
36 ]
37 } else { 34 } else {
38 deps += [ "//gpu/ipc" ] 35 deps += [ "//gpu/ipc" ]
39 } 36 }
40 37
41 if (is_win || is_mac || is_ios) { 38 if (is_android || is_ios) {
42 sources -= [ 39 sources -= [ "x509_certificate_model.cc" ]
43 "x509_certificate_model_nss.cc", 40 }
44 "x509_certificate_model_openssl.cc", 41
45 ] 42 if (use_openssl_certs && !is_android) {
46 } else if (use_openssl) { 43 deps += [ "//third_party/boringssl" ]
47 sources -= [ "x509_certificate_model_nss.cc" ]
48 } else { 44 } else {
49 sources -= [ "x509_certificate_model_openssl.cc" ] 45 sources -= [ "x509_certificate_model_openssl.cc" ]
50 } 46 }
51 47
52 if (is_android) { 48 if (use_nss_certs) {
53 sources -= [ 49 deps += [ "//crypto:platform" ]
54 "x509_certificate_model.cc", 50 } else {
55 "x509_certificate_model_openssl.cc", 51 sources -= [ "x509_certificate_model_nss.cc" ]
56 ]
57 deps += [ "//third_party/boringssl" ]
58 } 52 }
59 53
60 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 54 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
61 } 55 }
OLDNEW
« no previous file with comments | « chrome/chrome_utility.gypi ('k') | chrome/utility/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698