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

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

Issue 2769483002: Don't check is_ios in chrome/, it's always false there. (Closed)
Patch Set: Created 3 years, 9 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/common/features.gni ('k') | no next file » | 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 assert(!is_ios, "Chromium/iOS shouldn't use anything in //chrome")
8
7 static_library("net") { 9 static_library("net") {
8 sources = [ 10 sources = [
9 "net_resource_provider.cc", 11 "net_resource_provider.cc",
10 "net_resource_provider.h", 12 "net_resource_provider.h",
11 "x509_certificate_model.cc", 13 "x509_certificate_model.cc",
12 "x509_certificate_model.h", 14 "x509_certificate_model.h",
13 "x509_certificate_model_nss.cc", 15 "x509_certificate_model_nss.cc",
14 ] 16 ]
15 17
16 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 18 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
17 19
18 deps = [ 20 deps = [
19 "//base", 21 "//base",
20 "//base:i18n", 22 "//base:i18n",
21 "//chrome:resources", 23 "//chrome:resources",
22 "//chrome:strings", 24 "//chrome:strings",
23 "//components/url_formatter", 25 "//components/url_formatter",
24 "//crypto", 26 "//crypto",
25 "//net", 27 "//net",
26 "//net:net_resources", 28 "//net:net_resources",
27 "//third_party/icu", 29 "//third_party/icu",
28 "//ui/base", 30 "//ui/base",
29 ] 31 ]
30 32
31 if (is_ios) { 33 if (is_android) {
32 sources -= [ "net_resource_provider.cc" ]
33 }
34
35 if (is_android || is_ios) {
36 sources -= [ "x509_certificate_model.cc" ] 34 sources -= [ "x509_certificate_model.cc" ]
37 } 35 }
38 36
39 if (use_nss_certs) { 37 if (use_nss_certs) {
40 deps += [ 38 deps += [
41 "//chrome/third_party/mozilla_security_manager", 39 "//chrome/third_party/mozilla_security_manager",
42 "//crypto:platform", 40 "//crypto:platform",
43 ] 41 ]
44 allow_circular_includes_from = 42 allow_circular_includes_from =
45 [ "//chrome/third_party/mozilla_security_manager" ] 43 [ "//chrome/third_party/mozilla_security_manager" ]
46 } else { 44 } else {
47 sources -= [ "x509_certificate_model_nss.cc" ] 45 sources -= [ "x509_certificate_model_nss.cc" ]
48 } 46 }
49 } 47 }
OLDNEW
« no previous file with comments | « chrome/common/features.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698