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

Side by Side Diff: components/cronet/ios/BUILD.gn

Issue 2487863003: Revert of Revert "Revert of Moving gRPC support interfaces out of cronet and into a new component. (patchset … (Closed)
Patch Set: Created 4 years, 1 month 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 | « components/cronet/DEPS ('k') | components/cronet/ios/Cronet.h » ('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 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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/buildflag_header.gni") 5 import("//build/buildflag_header.gni")
6 import("//build/config/ios/rules.gni") 6 import("//build/config/ios/rules.gni")
7 import("//build/config/mac/symbols.gni") 7 import("//build/config/mac/symbols.gni")
8 import("//build/mac/tweak_info_plist.gni") 8 import("//build/mac/tweak_info_plist.gni")
9 import("//build/util/process_version.gni") 9 import("//build/util/process_version.gni")
10 import("//build/util/version.gni") 10 import("//build/util/version.gni")
11 import("//components/grpc_support/include/headers.gni")
12 import("//testing/test.gni") 11 import("//testing/test.gni")
13 import("//url/features.gni") 12 import("//url/features.gni")
14 13
15 assert(!is_component_build, "Cronet requires static library build.") 14 assert(!is_component_build, "Cronet requires static library build.")
16 15
17 declare_args() { 16 declare_args() {
18 cronet_enable_data_reduction_proxy_support = false 17 cronet_enable_data_reduction_proxy_support = false
19 } 18 }
20 19
21 process_version("cronet_version_header") { 20 process_version("cronet_version_header") {
22 template_file = "//components/cronet/version.h.in" 21 template_file = "//components/cronet/version.h.in"
23 sources = [ 22 sources = [
24 "//chrome/VERSION", 23 "//chrome/VERSION",
25 ] 24 ]
26 output = "$target_gen_dir/version.h" 25 output = "$target_gen_dir/version.h"
27 extra_args = [ 26 extra_args = [
28 "-e", 27 "-e",
29 "VERSION_FULL=\"%s.%s.%s.%s\" % (MAJOR,MINOR,BUILD,PATCH)", 28 "VERSION_FULL=\"%s.%s.%s.%s\" % (MAJOR,MINOR,BUILD,PATCH)",
30 ] 29 ]
31 } 30 }
32 31
33 source_set("cronet_sources") { 32 source_set("cronet_sources") {
34 deps = [ 33 deps = [
35 ":cronet_version_header", 34 ":cronet_version_header",
36 "//base:base", 35 "//base:base",
37 "//components/grpc_support",
38 "//components/metrics:metrics", 36 "//components/metrics:metrics",
39 "//components/metrics/proto:proto", 37 "//components/metrics/proto:proto",
40 "//components/prefs:prefs", 38 "//components/prefs:prefs",
41 "//ios/net:net", 39 "//ios/net:net",
42 "//ios/web:user_agent", 40 "//ios/web:user_agent",
43 "//net", 41 "//net",
44 "//url", 42 "//url",
45 ] 43 ]
46 44
47 sources = [ 45 sources = [
48 "../histogram_manager.cc", 46 "../histogram_manager.cc",
49 "../histogram_manager.h", 47 "../histogram_manager.h",
50 "../stale_host_resolver.cc", 48 "../stale_host_resolver.cc",
51 "../stale_host_resolver.h", 49 "../stale_host_resolver.h",
52 "../url_request_context_config.cc", 50 "../url_request_context_config.cc",
53 "../url_request_context_config.h", 51 "../url_request_context_config.h",
54 "Cronet.h", 52 "Cronet.h",
55 "Cronet.mm", 53 "Cronet.mm",
54 "cronet_bidirectional_stream.cc",
55 "cronet_bidirectional_stream.h",
56 "cronet_c_for_grpc.cc",
57 "cronet_c_for_grpc.h",
56 "cronet_environment.cc", 58 "cronet_environment.cc",
57 "cronet_environment.h", 59 "cronet_environment.h",
58 ] 60 ]
59 61
60 include_dirs = [ "//components/grpc_support/include" ]
61
62 if (!use_platform_icu_alternatives) { 62 if (!use_platform_icu_alternatives) {
63 deps += [ "//base:i18n" ] 63 deps += [ "//base:i18n" ]
64 } 64 }
65 } 65 }
66 66
67 # Tweak |info_plist| with current version and revision. 67 # Tweak |info_plist| with current version and revision.
68 tweak_info_plist("tweak_cronet_plist") { 68 tweak_info_plist("tweak_cronet_plist") {
69 info_plist = "Info.plist" 69 info_plist = "Info.plist"
70 args = [ "--platform=ios" ] 70 args = [ "--platform=ios" ]
71 } 71 }
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 141
142 deps = [ 142 deps = [
143 ":cronet_framework_resources", 143 ":cronet_framework_resources",
144 ":cronet_sources", 144 ":cronet_sources",
145 "//base", 145 "//base",
146 "//net:net", 146 "//net:net",
147 ] 147 ]
148 148
149 libs = [ "UIKit.Framework" ] 149 libs = [ "UIKit.Framework" ]
150 150
151 include_dirs = [ "//components/grpc_support/include" ] 151 public_headers = [
152 152 "Cronet.h",
153 public_deps = [ 153 "cronet_c_for_grpc.h",
154 "//components/grpc_support",
155 ] 154 ]
156 155
157 public_headers = [ "Cronet.h" ]
158 public_headers += grpc_public_headers
159
160 sources = [ 156 sources = [
161 "Cronet.h", 157 "Cronet.h",
158 "cronet_c_for_grpc.h",
162 ] 159 ]
163 160
164 configs -= [ "//build/config/compiler:default_symbols" ] 161 configs -= [ "//build/config/compiler:default_symbols" ]
165 configs += [ "//build/config/compiler:symbols" ] 162 configs += [ "//build/config/compiler:symbols" ]
166 } 163 }
167 164
168 test("cronet_unittests") { 165 test("cronet_unittests") {
169 testonly = true 166 testonly = true
170 167
171 sources = [ 168 sources = [
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 ] 221 ]
225 } 222 }
226 223
227 group("cronet_package") { 224 group("cronet_package") {
228 deps = [ 225 deps = [
229 ":cronet_package_copy", 226 ":cronet_package_copy",
230 ":generate_license", 227 ":generate_license",
231 ] 228 ]
232 } 229 }
233 } 230 }
OLDNEW
« no previous file with comments | « components/cronet/DEPS ('k') | components/cronet/ios/Cronet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698