webview_repack_locales.gni 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  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
  3. # found in the LICENSE file.
  4. import("//tools/grit/repack.gni")
  5. import("webview_repack_locales_list.gni")
  6. # Wraps repack_locales(), setting the source_patterns and deps required for
  7. # Chrome.
  8. template("webview_repack_locales") {
  9. repack_locales(target_name) {
  10. forward_variables_from(invoker, "*")
  11. if (!defined(deps)) {
  12. deps = []
  13. }
  14. # Adding webview specific pak file? You should add it to
  15. # webview_repack_locales_source_patterns, so it is also included in
  16. # Monochrome.
  17. source_patterns = [
  18. "${root_gen_dir}/android_webview/components_strings_",
  19. "${root_gen_dir}/third_party/blink/public/strings/blink_strings_",
  20. "${root_gen_dir}/ui/strings/app_locale_settings_",
  21. "${root_gen_dir}/ui/strings/ax_strings_",
  22. ]
  23. deps += [
  24. "//android_webview:generate_components_strings",
  25. "//third_party/blink/public/strings",
  26. "//ui/strings:app_locale_settings",
  27. "//ui/strings:ax_strings",
  28. ]
  29. source_patterns += webview_repack_locales_source_patterns
  30. deps += webview_repack_locales_deps
  31. output_dir = "$root_out_dir/android_webview/locales"
  32. }
  33. }