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

Unified Diff: ios/chrome/app/resources/BUILD.gn

Issue 2119433002: Convert "ios_packed_resources" gyp target to gn. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | « ios/chrome/BUILD.gn ('k') | ios/chrome/app/resources/ios_chrome_repack.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/app/resources/BUILD.gn
diff --git a/ios/chrome/app/resources/BUILD.gn b/ios/chrome/app/resources/BUILD.gn
index 78556999c08519489929b1afa0bce57ebefaa113..fd4da5c45b4a5f82cc7b693279f30a232e68f0d1 100644
--- a/ios/chrome/app/resources/BUILD.gn
+++ b/ios/chrome/app/resources/BUILD.gn
@@ -2,7 +2,9 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import("//build/config/locales.gni")
import("//tools/grit/grit_rule.gni")
+import("//ios/chrome/app/resources/ios_chrome_repack.gni")
grit("resources") {
source = "ios_resources.grd"
@@ -13,3 +15,46 @@ grit("resources") {
"ios_resources.pak",
]
}
+
+group("packed_resources") {
+ public_deps = [
+ ":repack_locales",
+ ":repack_scalable_resources",
+ ":repack_unscaled_resources",
+ ]
+}
+
+ios_chrome_repack_locales("repack_locales") {
+ visibility = [ ":packed_resources" ]
+ input_locales = ios_packed_locales
+ output_locales = ios_packed_locales_as_mac_outputs
+}
+
+ios_chrome_repack_all_scales("repack_scalable_resources") {
+ visibility = [ ":packed_resources" ]
+ scales = [
+ "100",
+ "200",
+ "300",
+ ]
+}
+
+ios_repack("repack_unscaled_resources") {
+ visibility = [ ":packed_resources" ]
+ sources = [
+ "$root_gen_dir/components/components_resources.pak",
+ "$root_gen_dir/ios/chrome/ios_resources.pak",
+ "$root_gen_dir/ios/web/ios_web_resources.pak",
+ "$root_gen_dir/net/net_resources.pak",
+ "$root_gen_dir/ui/resources/webui_resources.pak",
+ ]
+ deps = [
+ ":resources",
+ "//components/resources",
+ "//ios/web:resources",
+ "//net:net_resources",
+ "//ui/resources",
+ ]
+ output = "$target_gen_dir/resources.pak"
+ bundle_output = "{{bundle_resources_dir}}/{{source_file_part}}"
+}
« no previous file with comments | « ios/chrome/BUILD.gn ('k') | ios/chrome/app/resources/ios_chrome_repack.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698