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

Side by Side Diff: android_webview/webview_repack_locales.gni

Issue 2343083003: Add resource whitelisting to android_webview pak files. (Closed)
Patch Set: better docs Created 4 years, 3 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 | « android_webview/BUILD.gn ('k') | chrome/BUILD.gn » ('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("//tools/grit/repack.gni") 5 import("//tools/grit/repack.gni")
6 import("webview_repack_locales_list.gni") 6 import("webview_repack_locales_list.gni")
7 7
8 # Wraps repack_locales(), setting the source_patterns and deps required for 8 # Wraps repack_locales(), setting the source_patterns and deps required for
9 # Chrome. 9 # Chrome.
10 template("webview_repack_locales") { 10 template("webview_repack_locales") {
11 repack_locales(target_name) { 11 repack_locales(target_name) {
12 forward_variables_from(invoker, "*") 12 forward_variables_from(invoker, "*")
13 if (!defined(deps)) {
14 deps = []
15 }
13 16
14 # Adding webview specific pak file? You should add it to 17 # Adding webview specific pak file? You should add it to
15 # webview_repack_locales_source_patterns, so it is also included in 18 # webview_repack_locales_source_patterns, so it is also included in
16 # Monochrome. 19 # Monochrome.
17 20
18 source_patterns = [ 21 source_patterns = [
19 "${root_gen_dir}/android_webview/components_strings_", 22 "${root_gen_dir}/android_webview/components_strings_",
20 "${root_gen_dir}/content/app/strings/content_strings_", 23 "${root_gen_dir}/content/app/strings/content_strings_",
21 "${root_gen_dir}/ui/strings/app_locale_settings_", 24 "${root_gen_dir}/ui/strings/app_locale_settings_",
22 ] 25 ]
23 deps = [ 26 deps += [
24 "//android_webview:generate_components_strings", 27 "//android_webview:generate_components_strings",
25 "//content/app/strings", 28 "//content/app/strings",
26 "//ui/strings:app_locale_settings", 29 "//ui/strings:app_locale_settings",
27 ] 30 ]
28 source_patterns += webview_repack_locales_source_patterns 31 source_patterns += webview_repack_locales_source_patterns
29 deps += webview_repack_locales_deps 32 deps += webview_repack_locales_deps
30 output_dir = "$root_out_dir/android_webview/locales" 33 output_dir = "$root_out_dir/android_webview/locales"
31 } 34 }
32 } 35 }
OLDNEW
« no previous file with comments | « android_webview/BUILD.gn ('k') | chrome/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698