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