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

Unified Diff: components/BUILD.gn

Issue 967613003: Add components resources repack to GN build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 years, 10 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 | « BUILD.gn ('k') | components/components_tests.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/BUILD.gn
diff --git a/components/BUILD.gn b/components/BUILD.gn
index 450fe0ed7b8b7fafd40cfb07f394276c2342666b..95b02c9aa2a552a3adcd0f30b0241d222aaa528c 100644
--- a/components/BUILD.gn
+++ b/components/BUILD.gn
@@ -5,6 +5,7 @@
import("//build/config/features.gni")
import("//build/config/ui.gni")
import("//testing/test.gni")
+import("//tools/grit/repack.gni")
# Collection of all components. You wouldn't link to this, but this is rather
# to reference the files so they can be compiled by the build system.
@@ -264,6 +265,7 @@ if (!is_win || link_chrome_on_windows) {
"//content/test:test_support",
"//ui/base",
]
+ data_deps = [ ":components_tests_pak" ]
if (is_android) {
deps += [ "//components/data_reduction_proxy/content/browser:unit_tests" ]
@@ -283,4 +285,24 @@ if (!is_win || link_chrome_on_windows) {
deps += [ "//components/browser_watcher:unit_tests" ]
}
}
+
+ repack("components_tests_pak") {
+ sources = [
+ "$root_gen_dir/components/components_resources.pak",
+ "$root_gen_dir/components/strings/components_strings_en-US.pak",
+ "$root_gen_dir/ui/resources/ui_resources_100_percent.pak",
+ "$root_gen_dir/ui/resources/webui_resources.pak",
+ "$root_gen_dir/ui/strings/app_locale_settings_en-US.pak",
+ "$root_gen_dir/ui/strings/ui_strings_en-US.pak",
+ ]
+
+ output = "$root_out_dir/components_tests_resources.pak"
+
+ deps = [
+ "//components/resources",
+ "//components/strings",
+ "//ui/resources",
+ "//ui/strings",
+ ]
+ }
}
« no previous file with comments | « BUILD.gn ('k') | components/components_tests.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698