Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(144)

Unified Diff: ui/resources/BUILD.gn

Issue 2407733002: Load 200% resources in views_content_client. (Closed)
Patch Set: Require opt-in Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/views_content_client/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | ui/views_content_client/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698