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

Side by Side Diff: components/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 | « ash/mus/sysui_application.cc ('k') | components/mus/android_loader.h » ('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 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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("//testing/test.gni") 6 import("//testing/test.gni")
7 import("//mojo/public/mojo_application.gni") 7 import("//mojo/public/mojo_application.gni")
8 import("//mojo/public/mojo_application_manifest.gni") 8 import("//mojo/public/mojo_application_manifest.gni")
9 import("//mojo/public/mojo_constants.gni") 9 import("//mojo/public/mojo_constants.gni")
10 import("//tools/grit/repack.gni") 10 import("//tools/grit/repack.gni")
11 11
12 if (is_android) { 12 mojo_native_application("mus") {
13 import("//build/config/android/config.gni") 13 sources = [
14 import("//build/config/android/rules.gni") 14 "main.cc",
15 ]
15 16
16 source_set("mus") { 17 deps = [
17 sources = [ 18 ":lib",
18 "android_loader.cc", 19 ":resources_100",
19 "android_loader.h", 20 ":resources_200",
20 ] 21 ":resources_strings",
22 "//mojo/platform_handle:for_shared_library",
23 "//mojo/shell/public/cpp:sources",
24 ]
21 25
22 deps = [ 26 if (is_win) {
23 ":lib", 27 deps += [ ":copy_gl_libraries" ]
24 "public/interfaces",
25 "//mojo/public/cpp/bindings",
26 "//mojo/services/tracing/public/interfaces",
27 "//mojo/shell",
28 "//mojo/shell/public/cpp:sources",
29 ]
30 }
31 } else {
32 mojo_native_application("mus") {
33 sources = [
34 "main.cc",
35 ]
36
37 deps = [
38 ":lib",
39 "//mojo/platform_handle:for_shared_library",
40 "//mojo/shell/public/cpp:sources",
41 ]
42
43 if (is_win) {
44 deps += [ ":copy_gl_libraries" ]
45 }
46
47 data_deps = [
48 ":manifest",
49 ]
50 } 28 }
51 29
52 mojo_application_manifest("manifest") { 30 data_deps = [
53 application_name = "mus" 31 ":manifest",
54 source = "manifest.json" 32 ]
55 } 33
34 resources = [
35 "$root_out_dir/mus_app_resources_strings.pak",
36 "$root_out_dir/mus_app_resources_100.pak",
37 "$root_out_dir/mus_app_resources_200.pak",
38 ]
39 }
40
41 mojo_application_manifest("manifest") {
42 application_name = "mus"
43 source = "manifest.json"
56 } 44 }
57 45
58 if (is_win) { 46 if (is_win) {
59 copy("copy_gl_libraries") { 47 copy("copy_gl_libraries") {
60 deps = [ 48 deps = [
61 "//third_party/angle:libEGL", 49 "//third_party/angle:libEGL",
62 "//third_party/angle:libGLESv2", 50 "//third_party/angle:libGLESv2",
63 ] 51 ]
64 52
65 sources = [ 53 sources = [
(...skipping 29 matching lines...) Expand all
95 "//mojo/services/tracing/public/cpp", 83 "//mojo/services/tracing/public/cpp",
96 "//mojo/shell/public/cpp", 84 "//mojo/shell/public/cpp",
97 "//ui/events", 85 "//ui/events",
98 "//ui/events/ozone:events_ozone_layout", 86 "//ui/events/ozone:events_ozone_layout",
99 "//ui/gl:gl", 87 "//ui/gl:gl",
100 "//ui/platform_window:platform_impls", 88 "//ui/platform_window:platform_impls",
101 "//ui/platform_window:platform_window", 89 "//ui/platform_window:platform_window",
102 ] 90 ]
103 91
104 data_deps = [ 92 data_deps = [
105 ":resources_100",
106 ":resources_200",
107 ":resources_strings",
108 "//components/resource_provider", 93 "//components/resource_provider",
109 ] 94 ]
110 95
111 if (use_x11) { 96 if (use_x11) {
112 public_configs = [ "//build/config/linux:x11" ] 97 public_configs = [ "//build/config/linux:x11" ]
113 public_deps += [ "//ui/events/platform/x11" ] 98 public_deps += [ "//ui/events/platform/x11" ]
114 } 99 }
115 100
116 if (use_ozone) { 101 if (use_ozone) {
117 deps += [ "//ui/ozone:ozone" ] 102 deps += [ "//ui/ozone:ozone" ]
118 } 103 }
119 } 104 }
120 105
121 repack("resources_strings") { 106 repack("resources_strings") {
122 sources = [ 107 sources = [
123 "$root_gen_dir/ui/strings/app_locale_settings_en-US.pak", 108 "$root_gen_dir/ui/strings/app_locale_settings_en-US.pak",
124 ] 109 ]
125 output = "$root_out_dir/$mojo_application_subdir/mus/resources/mus_app_resourc es_strings.pak" 110 output = "$root_out_dir/mus_app_resources_strings.pak"
126 deps = [ 111 deps = [
127 "//ui/strings", 112 "//ui/strings",
128 ] 113 ]
129 } 114 }
130 115
131 repack("resources_100") { 116 repack("resources_100") {
132 sources = [ 117 sources = [
133 "$root_gen_dir/ui/resources/ui_resources_100_percent.pak", 118 "$root_gen_dir/ui/resources/ui_resources_100_percent.pak",
134 ] 119 ]
135 output = "$root_out_dir/$mojo_application_subdir/mus/resources/mus_app_resourc es_100.pak" 120 output = "$root_out_dir/mus_app_resources_100.pak"
136 deps = [ 121 deps = [
137 "//ui/resources", 122 "//ui/resources",
138 ] 123 ]
139 } 124 }
140 125
141 repack("resources_200") { 126 repack("resources_200") {
142 sources = [ 127 sources = [
143 "$root_gen_dir/ui/resources/ui_resources_200_percent.pak", 128 "$root_gen_dir/ui/resources/ui_resources_200_percent.pak",
144 ] 129 ]
145 output = "$root_out_dir/$mojo_application_subdir/mus/resources/mus_app_resourc es_200.pak" 130 output = "$root_out_dir/mus_app_resources_200.pak"
146 deps = [ 131 deps = [
147 "//ui/resources", 132 "//ui/resources",
148 ] 133 ]
149 } 134 }
OLDNEW
« no previous file with comments | « ash/mus/sysui_application.cc ('k') | components/mus/android_loader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698