Make a few more build targets work when translate_genders=true
Bug: 416291329 Change-Id: I25d639d0372d9a1243e6c4841c5482976c2bce47 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6542649 Reviewed-by: Andrew Grieve <agrieve@chromium.org> Owners-Override: Andrew Grieve <agrieve@chromium.org> Commit-Queue: Glenn Hartmann <hartmanng@chromium.org> Cr-Commit-Position: refs/heads/main@{#1460287}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
638ddc95bb
commit
d7b232eb0a
@ -584,13 +584,15 @@ if (!is_fuchsia) {
|
||||
# should not be depended on directly; depend on ":chromecast_locales_pak"
|
||||
# instead.
|
||||
foreach(locale, cast_locales) {
|
||||
repack("_cast_repack_${locale}") {
|
||||
visibility = [ ":chromecast_locales_pak" ]
|
||||
output = "$root_out_dir/chromecast_locales/${locale}.pak"
|
||||
mark_as_data = true
|
||||
sources =
|
||||
[ "$root_gen_dir/chromecast/app/chromecast_settings_${locale}.pak" ]
|
||||
deps = [ "//chromecast/app:chromecast_settings" ]
|
||||
foreach(_gender_suffix, gender_suffixes) {
|
||||
repack("_cast_repack_${locale}${_gender_suffix}") {
|
||||
visibility = [ ":chromecast_locales_pak" ]
|
||||
output =
|
||||
"$root_out_dir/chromecast_locales/${locale}${_gender_suffix}.pak"
|
||||
mark_as_data = true
|
||||
sources = [ "$root_gen_dir/chromecast/app/chromecast_settings_${locale}${_gender_suffix}.pak" ]
|
||||
deps = [ "//chromecast/app:chromecast_settings" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -598,7 +600,9 @@ if (!is_fuchsia) {
|
||||
group("chromecast_locales_pak") {
|
||||
public_deps = []
|
||||
foreach(locale, cast_locales) {
|
||||
public_deps += [ ":_cast_repack_${locale}" ]
|
||||
foreach(_gender_suffix, gender_suffixes) {
|
||||
public_deps += [ ":_cast_repack_${locale}${_gender_suffix}" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
} # !is_fuchsia
|
||||
@ -638,8 +642,13 @@ if (is_android) {
|
||||
renaming_destinations = []
|
||||
|
||||
foreach(locale, cast_locales) {
|
||||
renaming_sources += [ "$root_out_dir/chromecast_locales/${locale}.pak" ]
|
||||
renaming_destinations += [ "stored-locales/${locale}.pak" ]
|
||||
foreach(_gender_suffix, gender_suffixes) {
|
||||
renaming_sources += [
|
||||
"$root_out_dir/chromecast_locales/${locale}${_gender_suffix}.pak",
|
||||
]
|
||||
renaming_destinations +=
|
||||
[ "stored-locales/${locale}${_gender_suffix}.pak" ]
|
||||
}
|
||||
}
|
||||
|
||||
deps = [ ":chromecast_locales_pak" ]
|
||||
|
@ -93,6 +93,13 @@ action("copy_locales") {
|
||||
}
|
||||
}
|
||||
|
||||
_locales = []
|
||||
foreach(_locale, remoting_locales) {
|
||||
foreach(_gender_suffix, gender_suffixes) {
|
||||
_locales += [ "${_locale}${_gender_suffix}" ]
|
||||
}
|
||||
}
|
||||
|
||||
args = [
|
||||
"-p",
|
||||
current_os,
|
||||
@ -100,7 +107,7 @@ action("copy_locales") {
|
||||
rebase_path(root_gen_dir, root_build_dir),
|
||||
"-x",
|
||||
rebase_path(root_out_dir, root_build_dir),
|
||||
] + remoting_locales
|
||||
] + _locales
|
||||
|
||||
deps = [ ":strings" ]
|
||||
}
|
||||
|
Reference in New Issue
Block a user