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

Unified Diff: ui/resources/BUILD.gn

Issue 1806033002: [iOS] Define bundle_data target for //ui unittests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@google_apis
Patch Set: Created 4 years, 9 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
« ui/gfx/BUILD.gn ('K') | « ui/gfx/BUILD.gn ('k') | no next file » | 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 eaf4646b4ea79ec14f7dcab144361a9fdadd41e0..bd75fddd2f80c7ecd8d40455b1f87f31e8d4d2cb 100644
--- a/ui/resources/BUILD.gn
+++ b/ui/resources/BUILD.gn
@@ -71,6 +71,21 @@ if (is_ios || is_mac) {
":repack_ui_test_pak",
]
}
+
+ # This needs to be a separate target from ui_test_pak as ui_base_unittests
+ # wants the generate .pak file in the bundle to be named en.lpro/locale.pak
+ # while components_unittests wants it to be named ui_test.pak.
+ bundle_data("ui_test_pak_bundle_data") {
+ public_deps = [
+ ":ui_test_pak",
+ ]
+ sources = [
+ "$root_out_dir/ui_test.pak",
+ ]
+ outputs = [
+ "{{bundle_resources_dir}}/en.lproj/locale.pak",
+ ]
+ }
} else {
copy("ui_test_pak") {
sources = [
« ui/gfx/BUILD.gn ('K') | « ui/gfx/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698