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

Side by Side Diff: ash/resources/BUILD.gn

Issue 1994993003: Moves resources used by ash/wm/common to ash/wm/common/resources (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: repack chrome Created 4 years, 7 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 unified diff | Download patch
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//tools/grit/grit_rule.gni") 5 import("//tools/grit/grit_rule.gni")
6 import("//tools/grit/repack.gni") 6 import("//tools/grit/repack.gni")
7 import("//ui/base/ui_features.gni") 7 import("//ui/base/ui_features.gni")
8 8
9 assert(enable_hidpi) 9 assert(enable_hidpi)
10 10
11 grit("resources") { 11 grit("resources") {
12 source = "ash_resources.grd" 12 source = "ash_resources.grd"
13 outputs = [ 13 outputs = [
14 "grit/ash_resources.h", 14 "grit/ash_resources.h",
15 "ash_resources_100_percent.pak", 15 "ash_resources_100_percent.pak",
16 "ash_resources_200_percent.pak", 16 "ash_resources_200_percent.pak",
17 ] 17 ]
18 } 18 }
19 19
20 # Generates a rule to repack ash resources for a given percentage (e.g. "100"). 20 # Generates a rule to repack ash resources for a given percentage (e.g. "100").
21 # TODO(msw): Use ui_test.pak instead of its pieces? (no 200% support?) 21 # TODO(msw): Use ui_test.pak instead of its pieces? (no 200% support?)
22 template("ash_test_resources") { 22 template("ash_test_resources") {
23 percent = invoker.percent 23 percent = invoker.percent
24 24
25 repack("ash_test_resources_${target_name}") { 25 repack("ash_test_resources_${target_name}") {
26 output = "$root_build_dir/ash_test_resources_${percent}_percent.pak" 26 output = "$root_build_dir/ash_test_resources_${percent}_percent.pak"
27 27
28 sources = [ 28 sources = [
29 "$root_gen_dir/ash/resources/ash_resources_${percent}_percent.pak", 29 "$root_gen_dir/ash/resources/ash_resources_${percent}_percent.pak",
30 "$root_gen_dir/ash/wm/common/resources/ash_wm_common_resources_${percent}_ percent.pak",
30 "$root_gen_dir/ui/resources/ui_resources_${percent}_percent.pak", 31 "$root_gen_dir/ui/resources/ui_resources_${percent}_percent.pak",
31 ] 32 ]
32 33
33 if (percent == "100") { 34 if (percent == "100") {
34 sources += [ 35 sources += [
35 "$root_gen_dir/content/content_resources.pak", 36 "$root_gen_dir/content/content_resources.pak",
36 "$root_gen_dir/ui/resources/webui_resources.pak", 37 "$root_gen_dir/ui/resources/webui_resources.pak",
37 ] 38 ]
38 } 39 }
39 40
40 deps = [ 41 deps = [
41 "//ash/resources", 42 ":resources",
43 "//ash/wm/common/resources",
42 "//content:resources", 44 "//content:resources",
43 "//ui/resources", 45 "//ui/resources",
44 ] 46 ]
45 47
46 if (toolkit_views) { 48 if (toolkit_views) {
47 deps += [ "//ui/views/resources" ] 49 deps += [ "//ui/views/resources" ]
48 sources += [ "$root_gen_dir/ui/views/resources/views_resources_${percent}_ percent.pak" ] 50 sources += [ "$root_gen_dir/ui/views/resources/views_resources_${percent}_ percent.pak" ]
49 51
50 if (percent == "100") { 52 if (percent == "100") {
51 # TODO(msw): This seems bad, but follows repack_ui_test_pak's example. 53 # TODO(msw): This seems bad, but follows repack_ui_test_pak's example.
(...skipping 15 matching lines...) Expand all
67 } 69 }
68 } 70 }
69 71
70 ash_test_resources("100_percent") { 72 ash_test_resources("100_percent") {
71 percent = "100" 73 percent = "100"
72 } 74 }
73 75
74 ash_test_resources("200_percent") { 76 ash_test_resources("200_percent") {
75 percent = "200" 77 percent = "200"
76 } 78 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698