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

Side by Side Diff: ios/web_view/BUILD.gn

Issue 2941683002: Add script to generate CronetChromeWebView.framework (Closed)
Patch Set: Created 3 years, 6 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 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 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/ios/ios_sdk.gni") 5 import("//build/config/ios/ios_sdk.gni")
6 import("//build/config/ios/rules.gni") 6 import("//build/config/ios/rules.gni")
7 import("//components/grpc_support/include/headers.gni") 7 import("//components/grpc_support/include/headers.gni")
8 import("//tools/grit/repack.gni") 8 import("//tools/grit/repack.gni")
9 9
10 config("config") { 10 config("config") {
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 "internal/web_view_web_main_delegate.h", 88 "internal/web_view_web_main_delegate.h",
89 "internal/web_view_web_main_delegate.mm", 89 "internal/web_view_web_main_delegate.mm",
90 "internal/web_view_web_main_parts.h", 90 "internal/web_view_web_main_parts.h",
91 "internal/web_view_web_main_parts.mm", 91 "internal/web_view_web_main_parts.mm",
92 "internal/web_view_web_state_policy_decider.h", 92 "internal/web_view_web_state_policy_decider.h",
93 "internal/web_view_web_state_policy_decider.mm", 93 "internal/web_view_web_state_policy_decider.mm",
94 ] 94 ]
95 ios_web_view_sources += ios_web_view_public_headers 95 ios_web_view_sources += ios_web_view_public_headers
96 96
97 ios_web_view_deps = [ 97 ios_web_view_deps = [
98 ":generate_license",
99 ":packed_resources", 98 ":packed_resources",
100 "//base", 99 "//base",
101 "//components/flags_ui", 100 "//components/flags_ui",
102 "//components/infobars/core", 101 "//components/infobars/core",
103 "//components/keyed_service/core", 102 "//components/keyed_service/core",
104 "//components/keyed_service/ios", 103 "//components/keyed_service/ios",
105 "//components/net_log", 104 "//components/net_log",
106 "//components/pref_registry", 105 "//components/pref_registry",
107 "//components/prefs", 106 "//components/prefs",
108 "//components/proxy_config", 107 "//components/proxy_config",
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 ":repack_resources", 220 ":repack_resources",
222 ] 221 ]
223 sources = [ 222 sources = [
224 "$target_gen_dir/web_view_resources.pak", 223 "$target_gen_dir/web_view_resources.pak",
225 ] 224 ]
226 outputs = [ 225 outputs = [
227 "{{bundle_resources_dir}}/{{source_file_part}}", 226 "{{bundle_resources_dir}}/{{source_file_part}}",
228 ] 227 ]
229 } 228 }
230 229
231 action("generate_license") { 230 if (additional_toolchains == [] || current_toolchain == default_toolchain) {
232 _license_path = "$target_out_dir/LICENSE" 231 _package_dir = "$root_out_dir/cronet_ios_web_view"
233 232
234 script = "//tools/licenses.py" 233 action("cronet_ios_web_view_generate_license") {
235 inputs = [ 234 _license_path = "$_package_dir/LICENSE"
236 "//buildtools/$host_os/gn", 235
237 ] 236 script = "//tools/licenses.py"
238 outputs = [ 237 inputs = [
239 _license_path, 238 "//buildtools/$host_os/gn",
240 ] 239 ]
241 args = [ 240 outputs = [
242 "license_file", 241 _license_path,
243 rebase_path(_license_path, root_build_dir), 242 ]
244 "--gn-target", 243 args = [
245 "//ios/web_view", 244 "license_file",
246 "--gn-out-dir", 245 rebase_path(_license_path, root_build_dir),
247 ".", 246 "--gn-target",
248 ] 247 "//ios/web_view",
248 "--gn-out-dir",
249 ".",
250 ]
251 }
252
253 copy("cronet_ios_web_view_package_copy") {
254 sources = [
255 "$root_out_dir/CronetChromeWebView.framework",
256 "//AUTHORS",
257 "//chrome/VERSION",
258 ]
259 outputs = [
260 "$_package_dir/{{source_file_part}}",
261 ]
262
263 deps = [
264 ":cronet_web_view_combined",
265 ]
266 }
267
268 if (enable_dsyms) {
269 action("cronet_ios_web_view_dsym_archive") {
270 script = "//chrome/tools/build/mac/archive_symbols.py"
271
272 # These are the dSYMs that will be archived. The sources list must be
273 # the target outputs that correspond to the dSYMs (since a dSYM is a
274 # directory it cannot be listed as a source file). The targets that
275 # generate both the dSYM and binary image are listed in deps.
276 _dsyms = [ "$root_out_dir/CronetChromeWebView.dSYM" ]
277
278 sources = [
279 "$root_out_dir/CronetChromeWebView.framework",
280 ]
281
282 _output = "$_package_dir/CronetChromeWebView.dSYM.tar.bz2"
283
284 outputs = [
285 _output,
286 ]
287
288 args = [ rebase_path(_output, root_out_dir) ] +
289 rebase_path(_dsyms, root_out_dir)
290
291 deps = [
292 ":cronet_web_view_combined",
293 ]
294 }
295 } else {
296 group("cronet_ios_web_view_dsym_archive") {
297 }
298 }
299
300 group("cronet_ios_web_view_package") {
301 deps = [
302 ":cronet_ios_web_view_dsym_archive",
303 ":cronet_ios_web_view_generate_license",
304 ":cronet_ios_web_view_package_copy",
305 ]
306 }
249 } 307 }
OLDNEW
« no previous file with comments | « no previous file | ios/web_view/internal/cwv_scroll_view_internal.h » ('j') | ios/web_view/public/ChromeWebView.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698