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

Unified Diff: ash/resources/BUILD.gn

Issue 2316803002: Splits ash_test_resources_100_percent into two pak files (Closed)
Patch Set: feedback Created 4 years, 3 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 | « ash/BUILD.gn ('k') | ash/shell/content/client/shell_main_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/resources/BUILD.gn
diff --git a/ash/resources/BUILD.gn b/ash/resources/BUILD.gn
index 8fa121fbc1875fc4c42ba1614f1617ceddd31105..1454da54676143d1717b93eef70514ad4044977c 100644
--- a/ash/resources/BUILD.gn
+++ b/ash/resources/BUILD.gn
@@ -23,7 +23,7 @@ template("ash_test_resources") {
percent = invoker.percent
repack("ash_test_resources_${target_name}") {
- output = "$root_build_dir/ash_test_resources_${percent}_percent.pak"
+ output = "$root_build_dir/${target_name}.pak"
sources = [
"$root_gen_dir/ash/resources/ash_resources_${percent}_percent.pak",
@@ -31,18 +31,22 @@ template("ash_test_resources") {
]
if (percent == "100") {
- sources += [
- "$root_gen_dir/content/content_resources.pak",
- "$root_gen_dir/ui/resources/webui_resources.pak",
- ]
+ sources += [ "$root_gen_dir/ui/resources/webui_resources.pak" ]
+ }
+
+ if (defined(invoker.sources)) {
+ sources += invoker.sources
}
deps = [
"//ash/resources",
- "//content:resources",
"//ui/resources",
]
+ if (defined(invoker.deps)) {
+ deps += invoker.deps
+ }
+
if (toolkit_views) {
deps += [
"//ui/app_list/resources",
@@ -75,3 +79,15 @@ ash_test_resources("100_percent") {
ash_test_resources("200_percent") {
percent = "200"
}
+
+# There is no with_content_200_percent as content resources are only available
+# at 100%.
+ash_test_resources("with_content_100_percent") {
+ percent = "100"
+ sources = [
+ "$root_gen_dir/content/content_resources.pak",
+ ]
+ deps = [
+ "//content:resources",
+ ]
+}
« no previous file with comments | « ash/BUILD.gn ('k') | ash/shell/content/client/shell_main_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698