1 # Copyright 2014 The Chromium Authors
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 import("//build/config/chrome_build.gni")
6 import("//build/config/chromeos/ui_mode.gni")
7 import("//build/config/features.gni")
8 import("//build/config/ui.gni")
9 import("//extensions/buildflags/buildflags.gni")
10 import("//tools/grit/repack.gni")
12 assert(!is_ios, "Chromium/iOS shouldn't use anything in //chrome")
14 # Wraps repack_locales(), setting the source_patterns and deps required for
19 # additional_source_patterns [optional]
20 # Extra source_patterns for repack_locales().
21 template("chrome_repack_locales") {
22 repack_locales(target_name) {
23 forward_variables_from(invoker, "*", [ "additional_source_patterns" ])
25 # Each input pak file should also have a deps line.
27 "${root_gen_dir}/chrome/generated_resources_",
28 "${root_gen_dir}/chrome/locale_settings_",
29 "${root_gen_dir}/chrome/platform_locale_settings_",
30 "${root_gen_dir}/components/omnibox/resources/omnibox_pedal_synonyms_",
31 "${root_gen_dir}/components/strings/components_locale_settings_",
32 "${root_gen_dir}/components/strings/components_strings_",
33 "${root_gen_dir}/third_party/blink/public/strings/blink_accessibility_strings_",
34 "${root_gen_dir}/third_party/blink/public/strings/blink_strings_",
35 "${root_gen_dir}/device/bluetooth/strings/bluetooth_strings_",
36 "${root_gen_dir}/device/fido/strings/fido_strings_",
37 "${root_gen_dir}/services/strings/services_strings_",
38 "${root_gen_dir}/third_party/libaddressinput/address_input_strings_",
39 "${root_gen_dir}/ui/strings/app_locale_settings_",
40 "${root_gen_dir}/ui/strings/ax_strings_",
41 "${root_gen_dir}/ui/strings/ui_strings_",
47 "//chrome/app:generated_resources",
48 "//chrome/app/resources:locale_settings",
49 "//chrome/app/resources:platform_locale_settings",
50 "//components/omnibox/resources:omnibox_pedal_synonyms",
51 "//components/strings:components_locale_settings",
52 "//components/strings:components_strings",
53 "//device/bluetooth/strings",
54 "//device/fido/strings",
56 "//third_party/blink/public/strings",
57 "//third_party/blink/public/strings:accessibility_strings",
58 "//third_party/libaddressinput:strings",
59 "//ui/strings:app_locale_settings",
60 "//ui/strings:ax_strings",
61 "//ui/strings:ui_strings",
63 if (defined(invoker.deps)) {
69 [ "${root_gen_dir}/ui/chromeos/strings/ui_chromeos_strings_" ]
70 deps += [ "//ui/chromeos/strings" ]
72 if (is_chromeos_ash) {
74 "${root_gen_dir}/ash/shortcut_viewer/strings/shortcut_viewer_strings_",
75 "${root_gen_dir}/ash/strings/ash_strings_",
76 "${root_gen_dir}/ash/webui/camera_app_ui/resources/strings/ash_camera_app_strings_",
77 "${root_gen_dir}/chromeos/strings/chromeos_strings_",
78 "${root_gen_dir}/remoting/resources/",
81 "//ash/shortcut_viewer/strings",
83 "//ash/webui/camera_app_ui/resources/strings",
85 "//remoting/resources",
89 if (is_chromeos_lacros) {
91 [ "${root_gen_dir}/chromeos/strings/chromeos_strings_" ]
92 deps += [ "//chromeos/strings" ]
94 if (enable_extensions) {
96 [ "${root_gen_dir}/extensions/strings/extensions_strings_" ]
97 deps += [ "//extensions/strings" ]
100 if (is_chrome_branded) {
102 "${root_gen_dir}/chrome/google_chrome_strings_",
103 "${root_gen_dir}/components/strings/components_google_chrome_strings_",
106 "//chrome/app:google_chrome_strings",
107 "//components/strings:components_google_chrome_strings",
111 "${root_gen_dir}/chrome/chromium_strings_",
112 "${root_gen_dir}/components/strings/components_chromium_strings_",
115 "//chrome/app:chromium_strings",
116 "//components/strings:components_chromium_strings",
120 if (defined(invoker.additional_source_patterns)) {
121 source_patterns += invoker.additional_source_patterns