[go: nahoru, domu]

blob: e6fea78901f447d53bd0aebbfce40eca3f66d202 [file] [log] [blame]
Avi Drissman4a6ec7e2022-09-08 20:26:461# Copyright 2015 The Chromium Authors
michaelbaief836d82015-10-30 05:04:192# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
michaelbaief836d82015-10-30 05:04:194
michaelbaief836d82015-10-30 05:04:195import("//tools/grit/repack.gni")
michaelbai3be42fa2016-07-06 23:51:556import("webview_repack_locales_list.gni")
michaelbaief836d82015-10-30 05:04:197
sdefresne659ad2532016-09-15 13:57:508# Wraps repack_locales(), setting the source_patterns and deps required for
9# Chrome.
10template("webview_repack_locales") {
11 repack_locales(target_name) {
12 forward_variables_from(invoker, "*")
agrieve425d5502016-09-20 01:21:3013 if (!defined(deps)) {
14 deps = []
15 }
michaelbaief836d82015-10-30 05:04:1916
michaelbai3be42fa2016-07-06 23:51:5517 # 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
sdefresne659ad2532016-09-15 13:57:5021 source_patterns = [
22 "${root_gen_dir}/android_webview/components_strings_",
Gyuyoung Kim8c5d0772019-09-18 15:41:3923 "${root_gen_dir}/third_party/blink/public/strings/blink_strings_",
sdefresne659ad2532016-09-15 13:57:5024 "${root_gen_dir}/ui/strings/app_locale_settings_",
Alexander Surkov54ca1f52021-11-17 18:20:4325 "${root_gen_dir}/ui/strings/ax_strings_",
michaelbaief836d82015-10-30 05:04:1926 ]
agrieve425d5502016-09-20 01:21:3027 deps += [
michaelbaief836d82015-10-30 05:04:1928 "//android_webview:generate_components_strings",
Gyuyoung Kim8c5d0772019-09-18 15:41:3929 "//third_party/blink/public/strings",
aberenta7f273b2016-08-18 10:46:1130 "//ui/strings:app_locale_settings",
Alexander Surkov54ca1f52021-11-17 18:20:4331 "//ui/strings:ax_strings",
michaelbaief836d82015-10-30 05:04:1932 ]
sdefresne659ad2532016-09-15 13:57:5033 source_patterns += webview_repack_locales_source_patterns
michaelbai3be42fa2016-07-06 23:51:5534 deps += webview_repack_locales_deps
sdefresne659ad2532016-09-15 13:57:5035 output_dir = "$root_out_dir/android_webview/locales"
michaelbaief836d82015-10-30 05:04:1936 }
37}