| Index: ui/resources/BUILD.gn
|
| diff --git a/ui/resources/BUILD.gn b/ui/resources/BUILD.gn
|
| index b81ff0106b5587d0f7e1d586c7d2af4c4fdc76e2..0c1c2cf0b0347dc7a74e745fa81df6ab9bb5f7f7 100644
|
| --- a/ui/resources/BUILD.gn
|
| +++ b/ui/resources/BUILD.gn
|
| @@ -64,7 +64,7 @@ if (is_ios || is_mac) {
|
| group("ui_test_pak") {
|
| public_deps = [
|
| ":repack_ui_test_mac_locale_pack",
|
| - ":repack_ui_test_pak",
|
| + ":repack_ui_test_pak_100_percent",
|
| ]
|
| }
|
|
|
| @@ -130,20 +130,27 @@ if (is_ios || is_mac) {
|
| "$root_out_dir/ui/en-US.pak",
|
| ]
|
| public_deps = [
|
| - ":repack_ui_test_pak",
|
| + ":repack_ui_test_pak_100_percent",
|
| ]
|
| }
|
| }
|
|
|
| -# This group exists just for targets that need the data file
|
| -# to exist in the build directory so it can be loaded for test purposes.
|
| +# This group exists just for targets that need the data file to exist in the
|
| +# build directory so it can be loaded for test purposes. If a target requires
|
| +# 200 percent resources it should also depend on ui_test_pak_data_200_percent.
|
| group("ui_test_pak_data") {
|
| data_deps = [
|
| - ":repack_ui_test_pak",
|
| + ":repack_ui_test_pak_100_percent",
|
| ]
|
| }
|
|
|
| -repack("repack_ui_test_pak") {
|
| +group("ui_test_pak_data_200_percent") {
|
| + data_deps = [
|
| + ":repack_ui_test_pak_200_percent",
|
| + ]
|
| +}
|
| +
|
| +repack("repack_ui_test_pak_100_percent") {
|
| # Depend on ui_test_pak or ui_test_pak_data instead of this one.
|
| visibility = [
|
| ":ui_test_pak",
|
| @@ -200,6 +207,26 @@ repack("repack_ui_test_pak") {
|
| }
|
| }
|
|
|
| +repack("repack_ui_test_pak_200_percent") {
|
| + visibility = [ ":ui_test_pak_data_200_percent" ]
|
| +
|
| + sources = [
|
| + "$root_gen_dir/ui/resources/ui_resources_200_percent.pak",
|
| + ]
|
| +
|
| + output = "$root_out_dir/ui_test_200_percent.pak"
|
| +
|
| + deps = [
|
| + "//ui/resources",
|
| + ]
|
| +
|
| + if (toolkit_views) {
|
| + deps += [ "//ui/views/resources" ]
|
| + sources +=
|
| + [ "$root_gen_dir/ui/views/resources/views_resources_200_percent.pak" ]
|
| + }
|
| +}
|
| +
|
| # Repack just the strings for the framework locales on Mac and iOS. This
|
| # emulates repack_locales.py, but just for en-US. Note ui_test.pak is not simply
|
| # copied, because it causes leaks from allocations within system libraries when
|
|
|