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

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

Issue 2146643002: [Cronet] Integrate CrNet functionality into Cronet on iOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix gn header dependencies warnings. 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
« no previous file with comments | « no previous file | 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")
(...skipping 18 matching lines...) Expand all
29 ] 29 ]
30 } 30 }
31 31
32 source_set("cronet_sources") { 32 source_set("cronet_sources") {
33 deps = [ 33 deps = [
34 ":cronet_version_header", 34 ":cronet_version_header",
35 "//base:base", 35 "//base:base",
36 "//components/metrics:metrics", 36 "//components/metrics:metrics",
37 "//components/metrics/proto:proto", 37 "//components/metrics/proto:proto",
38 "//components/prefs:prefs", 38 "//components/prefs:prefs",
39 "//ios/net:net",
40 "//ios/web:user_agent",
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",
52 "Cronet.h",
53 "Cronet.mm",
50 "cronet_bidirectional_stream.cc", 54 "cronet_bidirectional_stream.cc",
51 "cronet_bidirectional_stream.h", 55 "cronet_bidirectional_stream.h",
52 "cronet_c_for_grpc.cc", 56 "cronet_c_for_grpc.cc",
53 "cronet_c_for_grpc.h", 57 "cronet_c_for_grpc.h",
54 "cronet_environment.cc", 58 "cronet_environment.cc",
55 "cronet_environment.h", 59 "cronet_environment.h",
56 ] 60 ]
57 61
58 if (!use_platform_icu_alternatives) { 62 if (!use_platform_icu_alternatives) {
59 deps += [ "//base:i18n" ] 63 deps += [ "//base:i18n" ]
60 } 64 }
61 } 65 }
62 66
63 # Tweak |info_plist| with current version and revision. 67 # Tweak |info_plist| with current version and revision.
64 tweak_info_plist("tweak_cronet_plist") { 68 tweak_info_plist("tweak_cronet_plist") {
65 info_plist = "Info.plist" 69 info_plist = "Info.plist"
66 args = [ "--platform=ios" ] 70 args = [ "--platform=ios" ]
67 } 71 }
68 72
73 bundle_data("cronet_framework_resources") {
74 # This bundle contains "Accept-Languages" header values for known locales.
75 # TODO(mef): These strings should be auto-generated from chrome's .xtb
76 # files, not hardcoded.
77 sources = [
78 "Resources/Localization/am.lproj",
sdefresne 2016/10/20 19:00:43 Can you use //ios/chrome/tools/strings/generate_lo
79 "Resources/Localization/ar.lproj",
80 "Resources/Localization/bg.lproj",
81 "Resources/Localization/bn.lproj",
82 "Resources/Localization/ca.lproj",
83 "Resources/Localization/cs.lproj",
84 "Resources/Localization/da.lproj",
85 "Resources/Localization/de.lproj",
86 "Resources/Localization/el.lproj",
87 "Resources/Localization/en-GB.lproj",
88 "Resources/Localization/en.lproj",
89 "Resources/Localization/es-419.lproj",
90 "Resources/Localization/es.lproj",
91 "Resources/Localization/fa.lproj",
92 "Resources/Localization/fi.lproj",
93 "Resources/Localization/fil.lproj",
94 "Resources/Localization/fr.lproj",
95 "Resources/Localization/gu.lproj",
96 "Resources/Localization/he.lproj",
97 "Resources/Localization/hi.lproj",
98 "Resources/Localization/hr.lproj",
99 "Resources/Localization/hu.lproj",
100 "Resources/Localization/id.lproj",
101 "Resources/Localization/it.lproj",
102 "Resources/Localization/ja.lproj",
103 "Resources/Localization/kn.lproj",
104 "Resources/Localization/ko.lproj",
105 "Resources/Localization/lt.lproj",
106 "Resources/Localization/lv.lproj",
107 "Resources/Localization/ml.lproj",
108 "Resources/Localization/mr.lproj",
109 "Resources/Localization/ms.lproj",
110 "Resources/Localization/nb.lproj",
111 "Resources/Localization/nl.lproj",
112 "Resources/Localization/pl.lproj",
113 "Resources/Localization/pt-BR.lproj",
114 "Resources/Localization/pt-PT.lproj",
115 "Resources/Localization/pt.lproj",
116 "Resources/Localization/ro.lproj",
117 "Resources/Localization/ru.lproj",
118 "Resources/Localization/sk.lproj",
119 "Resources/Localization/sl.lproj",
120 "Resources/Localization/sr.lproj",
121 "Resources/Localization/sv.lproj",
122 "Resources/Localization/sw.lproj",
123 "Resources/Localization/ta.lproj",
124 "Resources/Localization/te.lproj",
125 "Resources/Localization/th.lproj",
126 "Resources/Localization/tr.lproj",
127 "Resources/Localization/uk.lproj",
128 "Resources/Localization/vi.lproj",
129 "Resources/Localization/zh-Hans.lproj",
130 "Resources/Localization/zh-Hant.lproj",
131 "Resources/Localization/zh.lproj",
132 ]
133 outputs = [
134 "{{bundle_resources_dir}}/cronet_resources.bundle/{{source_file_part}}",
135 ]
136 }
137
69 ios_framework_bundle("cronet_framework") { 138 ios_framework_bundle("cronet_framework") {
70 output_name = "Cronet" 139 output_name = "Cronet"
71 info_plist_target = ":tweak_cronet_plist" 140 info_plist_target = ":tweak_cronet_plist"
72 141
73 deps = [ 142 deps = [
143 ":cronet_framework_resources",
74 ":cronet_sources", 144 ":cronet_sources",
75 "//base", 145 "//base",
76 "//net:net", 146 "//net:net",
77 ] 147 ]
78 148
79 libs = [ "UIKit.Framework" ] 149 libs = [ "UIKit.Framework" ]
80 150
81 public_headers = [ 151 public_headers = [
82 "Cronet.h", 152 "Cronet.h",
83 "cronet_c_for_grpc.h", 153 "cronet_c_for_grpc.h",
84 ] 154 ]
85 155
86 sources = [ 156 sources = [
87 "Cronet.h", 157 "Cronet.h",
88 "Cronet.mm", 158 "cronet_c_for_grpc.h",
89 ] 159 ]
90 160
91 configs -= [ "//build/config/compiler:default_symbols" ] 161 configs -= [ "//build/config/compiler:default_symbols" ]
92 configs += [ "//build/config/compiler:symbols" ] 162 configs += [ "//build/config/compiler:symbols" ]
93 } 163 }
94 164
95 bundle_data("cronet_test_bundle_data") { 165 test("cronet_unittests") {
96 testonly = true 166 testonly = true
97 sources = [
98 "//net/data/ssl/certificates/quic_test.example.com.crt",
99 "//net/data/ssl/certificates/quic_test.example.com.key",
100 "//net/data/ssl/certificates/quic_test.example.com.key.pkcs8",
101 "//net/data/ssl/certificates/quic_test.example.com.key.sct",
102 ]
103 outputs = [
104 "{{bundle_resources_dir}}/{{source_file_part}}",
105 ]
106 }
107 167
108 test("cronet_test") {
109 testonly = true
110 sources = [
111 "test/cronet_bidirectional_stream_test.mm",
112 "test/cronet_test_runner.mm",
113 "test/quic_test_server.cc",
114 "test/quic_test_server.h",
115 ]
116
117 deps = [
118 ":cronet_sources",
119 ":cronet_test_bundle_data",
120 ":cronet_version_header",
121 "//base",
122 "//base:i18n",
123 "//net",
124 "//net:simple_quic_tools",
125 "//net:test_support",
126 "//third_party/icu",
127 ]
128 }
129
130 test("cronet_unittests") {
131 sources = [ 168 sources = [
132 "//components/cronet/histogram_manager_unittest.cc", 169 "//components/cronet/histogram_manager_unittest.cc",
133 "//components/cronet/run_all_unittests.cc", 170 "//components/cronet/run_all_unittests.cc",
134 "//components/cronet/stale_host_resolver_unittest.cc", 171 "//components/cronet/stale_host_resolver_unittest.cc",
135 "//components/cronet/url_request_context_config_unittest.cc", 172 "//components/cronet/url_request_context_config_unittest.cc",
136 ] 173 ]
137 174
138 deps = [ 175 deps = [
139 ":cronet_sources", 176 ":cronet_sources",
140 "//base", 177 "//base",
141 "//base/test:test_support", 178 "//base/test:test_support",
179 "//components/cronet/ios/test:cronet_test",
142 "//components/metrics", 180 "//components/metrics",
143 "//net", 181 "//net",
144 "//testing/gtest", 182 "//testing/gtest",
145 ] 183 ]
146 } 184 }
147 185
148 if (additional_toolchains == [] || current_toolchain == default_toolchain) { 186 if (additional_toolchains == [] || current_toolchain == default_toolchain) {
149 _package_dir = "$root_out_dir/cronet" 187 _package_dir = "$root_out_dir/cronet"
150 188
151 action("generate_license") { 189 action("generate_license") {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 ] 221 ]
184 } 222 }
185 223
186 group("cronet_package") { 224 group("cronet_package") {
187 deps = [ 225 deps = [
188 ":cronet_package_copy", 226 ":cronet_package_copy",
189 ":generate_license", 227 ":generate_license",
190 ] 228 ]
191 } 229 }
192 } 230 }
OLDNEW
« no previous file with comments | « no previous file | components/cronet/ios/Cronet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698