| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |