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

Unified Diff: ios/third_party/material_components_ios/BUILD.gn

Issue 2756193003: Use MDC CollectionCells bundle. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/third_party/material_components_ios/BUILD.gn
diff --git a/ios/third_party/material_components_ios/BUILD.gn b/ios/third_party/material_components_ios/BUILD.gn
index 900488c81acd37d6d0ee8bb8b4ff1f9b5ae9bd48..bdb12bebb805474d99387a8efbf0ad88191fe043 100644
--- a/ios/third_party/material_components_ios/BUILD.gn
+++ b/ios/third_party/material_components_ios/BUILD.gn
@@ -248,6 +248,7 @@ source_set("material_components_ios") {
]
deps = [
+ ":material_collection_cells_bundle",
":material_collections_bundle",
":material_component_ic_arrow_back_bundle",
"//ios/third_party/material_text_accessibility_ios",
@@ -277,6 +278,29 @@ bundle_data("material_collections_bundle") {
]
}
+_locales = [ "en" ]
+
+foreach(locale, _locales) {
+ bundle_data("material_collection_cells_bundle_$locale") {
+ visibility = [ ":material_collection_cells_bundle" ]
+ sources = [
+ "src/components/CollectionCells/src/MaterialCollectionCells.bundle/Resources/$locale.lproj/MaterialCollectionCells.strings",
+ ]
+ outputs = [
+ "{{bundle_resources_dir}}/MaterialCollectionCells.bundle/Resources/$locale.lproj/{{source_file_part}}",
+ ]
+ }
+}
+
+group("material_collection_cells_bundle") {
+ visibility = [ ":material_components_ios" ]
+
+ deps = []
+ foreach(locale, _locales) {
+ deps += [ ":material_collection_cells_bundle_$locale" ]
+ }
+}
+
# TODO(crbug.com/662421): Move back to _icon_names when there is just one
# resource.
bundle_data("material_component_ic_arrow_back_bundle") {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698