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

Side by Side Diff: android_webview/webview_repack_locales.gni

Issue 1890203002: Implement Web Restrictions in WebView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 # This is a copy of src/chrome/chrome_repack_locales.gni with the necessary 5 # This is a copy of src/chrome/chrome_repack_locales.gni with the necessary
6 # modifications to meet WebView's requirement. 6 # modifications to meet WebView's requirement.
7 7
8 import("//build/config/chrome_build.gni") 8 import("//build/config/chrome_build.gni")
9 import("//build/config/features.gni") 9 import("//build/config/features.gni")
10 import("//build/config/ui.gni") 10 import("//build/config/ui.gni")
(...skipping 13 matching lines...) Expand all
24 locale = invoker.locale 24 locale = invoker.locale
25 25
26 repack(target_name) { 26 repack(target_name) {
27 visibility = invoker.visibility 27 visibility = invoker.visibility
28 28
29 # Each input pak file should also have a deps line for completeness. 29 # Each input pak file should also have a deps line for completeness.
30 sources = [ 30 sources = [
31 "${root_gen_dir}/android_webview/aw_strings_${locale}.pak", 31 "${root_gen_dir}/android_webview/aw_strings_${locale}.pak",
32 "${root_gen_dir}/android_webview/components_strings_${locale}.pak", 32 "${root_gen_dir}/android_webview/components_strings_${locale}.pak",
33 "${root_gen_dir}/content/app/strings/content_strings_${locale}.pak", 33 "${root_gen_dir}/content/app/strings/content_strings_${locale}.pak",
34 "${root_gen_dir}/ui/strings/app_locale_settings_${locale}.pak",
34 ] 35 ]
35 deps = [ 36 deps = [
36 "//android_webview:generate_aw_strings", 37 "//android_webview:generate_aw_strings",
37 "//android_webview:generate_components_strings", 38 "//android_webview:generate_components_strings",
38 "//content/app/strings", 39 "//content/app/strings",
40 "//ui/strings:app_locale_settings",
39 ] 41 ]
40 output = invoker.output 42 output = invoker.output
41 } 43 }
42 } 44 }
43 45
44 # Creates an action to call the repack_locales script. 46 # Creates an action to call the repack_locales script.
45 # 47 #
46 # The GYP version generates the locales in the "gen" directory and then copies 48 # The GYP version generates the locales in the "gen" directory and then copies
47 # it to the root build directory. This isn't easy to express in a GN copy 49 # it to the root build directory. This isn't easy to express in a GN copy
48 # rule since the files on Mac have a complex structure. So we generate the 50 # rule since the files on Mac have a complex structure. So we generate the
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 95
94 current_index = current_index + 1 96 current_index = current_index + 1
95 } 97 }
96 98
97 # The group that external targets depend on which collects all deps. 99 # The group that external targets depend on which collects all deps.
98 group(group_target_name) { 100 group(group_target_name) {
99 forward_variables_from(invoker, [ "visibility" ]) 101 forward_variables_from(invoker, [ "visibility" ])
100 public_deps = locale_targets 102 public_deps = locale_targets
101 } 103 }
102 } 104 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698