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

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

Issue 1874703003: Load ash_sysui resources with ResourceLoader. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 8 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
« no previous file with comments | « no previous file | ash/mus/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 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("//build/config/ui.gni") 5 import("//build/config/ui.gni")
6 import("//mojo/public/mojo_application.gni") 6 import("//mojo/public/mojo_application.gni")
7 import("//mojo/public/mojo_application_manifest.gni") 7 import("//mojo/public/mojo_application_manifest.gni")
8 import("//mojo/public/tools/bindings/mojom.gni") 8 import("//mojo/public/tools/bindings/mojom.gni")
9 import("//tools/grit/repack.gni") 9 import("//tools/grit/repack.gni")
10 10
(...skipping 13 matching lines...) Expand all
24 "sysui_application.h", 24 "sysui_application.h",
25 ] 25 ]
26 26
27 deps = [ 27 deps = [
28 "//ash", 28 "//ash",
29 "//cc", 29 "//cc",
30 "//cc/surfaces", 30 "//cc/surfaces",
31 "//components/mus/common:mus_common", 31 "//components/mus/common:mus_common",
32 "//components/mus/public/cpp", 32 "//components/mus/public/cpp",
33 "//components/mus/public/interfaces", 33 "//components/mus/public/interfaces",
34 "//components/resource_provider/public/cpp",
34 "//components/user_manager", 35 "//components/user_manager",
35 "//device/bluetooth", 36 "//device/bluetooth",
36 "//mash/shelf/public/interfaces", 37 "//mash/shelf/public/interfaces",
37 "//mash/wm/public/interfaces", 38 "//mash/wm/public/interfaces",
38 "//mojo/common:common_base", 39 "//mojo/common:common_base",
39 "//mojo/converters/geometry", 40 "//mojo/converters/geometry",
40 "//mojo/converters/input_events", 41 "//mojo/converters/input_events",
41 "//mojo/services/tracing/public/cpp", 42 "//mojo/services/tracing/public/cpp",
42 "//mojo/shell/public/cpp", 43 "//mojo/shell/public/cpp",
43 "//skia/public", 44 "//skia/public",
44 "//ui/app_list/shower", 45 "//ui/app_list/shower",
45 "//ui/aura", 46 "//ui/aura",
46 "//ui/events", 47 "//ui/events",
47 "//ui/events/devices", 48 "//ui/events/devices",
48 "//ui/gfx", 49 "//ui/gfx",
49 "//ui/gfx/geometry", 50 "//ui/gfx/geometry",
50 "//ui/keyboard:mojom", 51 "//ui/keyboard:mojom",
51 "//ui/message_center", 52 "//ui/message_center",
52 "//ui/mojo/init", 53 "//ui/mojo/init",
53 "//ui/platform_window/stub", 54 "//ui/platform_window/stub",
54 "//ui/resources", 55 "//ui/resources",
55 "//ui/strings", 56 "//ui/strings",
56 "//ui/views", 57 "//ui/views",
57 "//ui/views/mus:for_mojo_application", 58 "//ui/views/mus:for_mojo_application",
58 ] 59 ]
59 60
60 data_deps = [
61 "//ash/strings:ash_test_strings",
62 "//ash/resources:ash_test_resources_100_percent",
63 "//ash/resources:ash_test_resources_200_percent",
64 ]
65
66 if (is_chromeos) { 61 if (is_chromeos) {
67 deps += [ "//chromeos" ] 62 deps += [ "//chromeos" ]
68 } 63 }
69 } 64 }
70 65
71 mojo_application_manifest("manifest") { 66 mojo_application_manifest("manifest") {
72 application_name = "ash_sysui" 67 application_name = "ash_sysui"
73 source = "manifest.json" 68 source = "manifest.json"
74 } 69 }
75 70
76 mojo_native_application("mus") { 71 mojo_native_application("mus") {
77 output_name = "ash_sysui" 72 output_name = "ash_sysui"
78 sources = [ 73 sources = [
79 "main.cc", 74 "main.cc",
80 ] 75 ]
81 deps = [ 76 deps = [
82 ":lib", 77 ":lib",
78 ":resources_100",
79 ":resources_200",
80 ":resources_strings",
83 "//mojo/shell/public/cpp", 81 "//mojo/shell/public/cpp",
84 ] 82 ]
85 83
86 data_deps = [ 84 data_deps = [
87 ":manifest", 85 ":manifest",
88 "//components/mus", 86 "//components/mus",
89 ] 87 ]
88
89 resources = [
90 "$root_out_dir/ash_resources_strings.pak",
91 "$root_out_dir/ash_resources_100_percent.pak",
92 "$root_out_dir/ash_resources_200_percent.pak",
93 ]
90 } 94 }
95
96 #TODO(msw): Do not load 'test' resources (include sys lang?).
97 repack("resources_strings") {
98 sources = [
99 "$root_out_dir/ash_test_strings.pak",
100 ]
101 output = "$root_out_dir/ash_resources_strings.pak"
102 deps = [
103 "//ash/strings:ash_test_strings",
104 ]
105 }
106
107 repack("resources_100") {
108 sources = [
109 "$root_out_dir/ash_test_resources_100_percent.pak",
110 ]
111 output = "$root_out_dir/ash_resources_100_percent.pak"
112 deps = [
113 "//ash/resources:ash_test_resources_100_percent",
114 ]
115 }
116
117 repack("resources_200") {
118 sources = [
119 "$root_out_dir/ash_test_resources_200_percent.pak",
120 ]
121 output = "$root_out_dir/ash_resources_200_percent.pak"
122 deps = [
123 "//ash/resources:ash_test_resources_200_percent",
124 ]
125 }
OLDNEW
« no previous file with comments | « no previous file | ash/mus/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698