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

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

Issue 2273403003: Moving gRPC support interfaces out of cronet and into a new component. (Closed)
Patch Set: Add DEPS Created 4 years, 2 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
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")
11 import("//testing/test.gni") 12 import("//testing/test.gni")
12 import("//url/features.gni") 13 import("//url/features.gni")
13 14
14 assert(!is_component_build, "Cronet requires static library build.") 15 assert(!is_component_build, "Cronet requires static library build.")
15 16
16 declare_args() { 17 declare_args() {
17 cronet_enable_data_reduction_proxy_support = false 18 cronet_enable_data_reduction_proxy_support = false
18 } 19 }
19 20
20 process_version("cronet_version_header") { 21 process_version("cronet_version_header") {
21 template_file = "//components/cronet/version.h.in" 22 template_file = "//components/cronet/version.h.in"
22 sources = [ 23 sources = [
23 "//chrome/VERSION", 24 "//chrome/VERSION",
24 ] 25 ]
25 output = "$target_gen_dir/version.h" 26 output = "$target_gen_dir/version.h"
26 extra_args = [ 27 extra_args = [
27 "-e", 28 "-e",
28 "VERSION_FULL=\"%s.%s.%s.%s\" % (MAJOR,MINOR,BUILD,PATCH)", 29 "VERSION_FULL=\"%s.%s.%s.%s\" % (MAJOR,MINOR,BUILD,PATCH)",
29 ] 30 ]
30 } 31 }
31 32
32 source_set("cronet_sources") { 33 source_set("cronet_sources") {
33 deps = [ 34 deps = [
34 ":cronet_version_header", 35 ":cronet_version_header",
35 "//base:base", 36 "//base:base",
37 "//components/grpc_support",
36 "//components/metrics:metrics", 38 "//components/metrics:metrics",
37 "//components/metrics/proto:proto", 39 "//components/metrics/proto:proto",
38 "//components/prefs:prefs", 40 "//components/prefs:prefs",
39 "//net", 41 "//net",
40 "//url", 42 "//url",
41 ] 43 ]
42 44
43 sources = [ 45 sources = [
44 "../histogram_manager.cc", 46 "../histogram_manager.cc",
45 "../histogram_manager.h", 47 "../histogram_manager.h",
46 "../stale_host_resolver.cc", 48 "../stale_host_resolver.cc",
47 "../stale_host_resolver.h", 49 "../stale_host_resolver.h",
48 "../url_request_context_config.cc", 50 "../url_request_context_config.cc",
49 "../url_request_context_config.h", 51 "../url_request_context_config.h",
50 "cronet_bidirectional_stream.cc",
51 "cronet_bidirectional_stream.h",
52 "cronet_c_for_grpc.cc",
53 "cronet_c_for_grpc.h",
54 "cronet_environment.cc", 52 "cronet_environment.cc",
55 "cronet_environment.h", 53 "cronet_environment.h",
56 ] 54 ]
57 55
58 if (!use_platform_icu_alternatives) { 56 if (!use_platform_icu_alternatives) {
59 deps += [ "//base:i18n" ] 57 deps += [ "//base:i18n" ]
60 } 58 }
61 } 59 }
62 60
63 # Tweak |info_plist| with current version and revision. 61 # Tweak |info_plist| with current version and revision.
64 tweak_info_plist("tweak_cronet_plist") { 62 tweak_info_plist("tweak_cronet_plist") {
65 info_plist = "Info.plist" 63 info_plist = "Info.plist"
66 args = [ "--platform=ios" ] 64 args = [ "--platform=ios" ]
67 } 65 }
68 66
69 ios_framework_bundle("cronet_framework") { 67 ios_framework_bundle("cronet_framework") {
70 output_name = "Cronet" 68 output_name = "Cronet"
71 info_plist_target = ":tweak_cronet_plist" 69 info_plist_target = ":tweak_cronet_plist"
72 70
73 deps = [ 71 deps = [
74 ":cronet_sources", 72 ":cronet_sources",
75 "//base", 73 "//base",
76 "//net:net", 74 "//net:net",
77 ] 75 ]
78 76
79 libs = [ "UIKit.Framework" ] 77 libs = [ "UIKit.Framework" ]
80 78
81 public_headers = [ 79 include_dirs = [ "//components/grpc_support/include" ]
82 "Cronet.h", 80
83 "cronet_c_for_grpc.h", 81 public_deps = [
82 "//components/grpc_support",
84 ] 83 ]
85 84
85 public_headers = [ "Cronet.h" ]
86 public_headers += grpc_public_headers
87
86 sources = [ 88 sources = [
87 "Cronet.h", 89 "Cronet.h",
88 "Cronet.mm", 90 "Cronet.mm",
89 ] 91 ]
90 92
91 configs -= [ "//build/config/compiler:default_symbols" ] 93 configs -= [ "//build/config/compiler:default_symbols" ]
92 configs += [ "//build/config/compiler:symbols" ] 94 configs += [ "//build/config/compiler:symbols" ]
93 } 95 }
94 96
95 bundle_data("cronet_test_bundle_data") { 97 bundle_data("cronet_test_bundle_data") {
(...skipping 17 matching lines...) Expand all
113 "test/quic_test_server.cc", 115 "test/quic_test_server.cc",
114 "test/quic_test_server.h", 116 "test/quic_test_server.h",
115 ] 117 ]
116 118
117 deps = [ 119 deps = [
118 ":cronet_sources", 120 ":cronet_sources",
119 ":cronet_test_bundle_data", 121 ":cronet_test_bundle_data",
120 ":cronet_version_header", 122 ":cronet_version_header",
121 "//base", 123 "//base",
122 "//base:i18n", 124 "//base:i18n",
125 "//components/grpc_support",
123 "//net", 126 "//net",
124 "//net:simple_quic_tools", 127 "//net:simple_quic_tools",
125 "//net:test_support", 128 "//net:test_support",
126 "//third_party/icu", 129 "//third_party/icu",
127 ] 130 ]
128 } 131 }
129 132
130 test("cronet_unittests") { 133 test("cronet_unittests") {
131 sources = [ 134 sources = [
132 "//components/cronet/histogram_manager_unittest.cc", 135 "//components/cronet/histogram_manager_unittest.cc",
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 ] 186 ]
184 } 187 }
185 188
186 group("cronet_package") { 189 group("cronet_package") {
187 deps = [ 190 deps = [
188 ":cronet_package_copy", 191 ":cronet_package_copy",
189 ":generate_license", 192 ":generate_license",
190 ] 193 ]
191 } 194 }
192 } 195 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698