OLD | NEW |
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("//mojo/public/tools/bindings/mojom.gni") | 6 import("//mojo/public/tools/bindings/mojom.gni") |
7 import("//services/shell/public/cpp/service.gni") | 7 import("//services/shell/public/cpp/service.gni") |
8 import("//services/shell/public/service_manifest.gni") | 8 import("//services/shell/public/service_manifest.gni") |
9 import("//tools/grit/repack.gni") | 9 import("//tools/grit/repack.gni") |
10 | 10 |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 service("mus") { | 142 service("mus") { |
143 output_name = "ash" | 143 output_name = "ash" |
144 | 144 |
145 sources = [ | 145 sources = [ |
146 "main.cc", | 146 "main.cc", |
147 ] | 147 ] |
148 | 148 |
149 deps = [ | 149 deps = [ |
150 ":lib", | 150 ":lib", |
151 ":resources", | 151 ":resources", |
| 152 ":resources_200", |
152 "//services/shell/public/cpp", | 153 "//services/shell/public/cpp", |
153 ] | 154 ] |
154 | 155 |
155 # TODO(beng): This target relies on //mash/session, but there is a cycle so we | 156 # TODO(beng): This target relies on //mash/session, but there is a cycle so we |
156 # can't state that dependency here. | 157 # can't state that dependency here. |
157 data_deps = [ | 158 data_deps = [ |
158 ":manifest", | 159 ":manifest", |
159 "//services/ui", | 160 "//services/ui", |
160 ] | 161 ] |
161 | 162 |
162 resources = [ "$root_out_dir/ash_mus_resources.pak" ] | 163 resources = [ |
| 164 "$root_out_dir/ash_mus_resources.pak", |
| 165 "$root_out_dir/ash_mus_resources_200.pak", |
| 166 ] |
163 } | 167 } |
164 | 168 |
165 service_manifest("manifest") { | 169 service_manifest("manifest") { |
166 name = "ash" | 170 name = "ash" |
167 source = "manifest.json" | 171 source = "manifest.json" |
168 } | 172 } |
169 | 173 |
170 # TODO: Load resources at additional scales and load locale-specific strings. | 174 # TODO: Load locale-specific strings. |
171 # TODO: Avoid duplication between Mash and Chrome pak files: crbug.com/628715. | 175 # TODO: Avoid duplication between Mash and Chrome pak files: crbug.com/628715. |
172 repack("resources") { | 176 repack("resources") { |
173 output = "$root_out_dir/ash_mus_resources.pak" | 177 output = "$root_out_dir/ash_mus_resources.pak" |
174 sources = [ | 178 sources = [ |
175 "$root_gen_dir/ash/common/strings/ash_strings_en-US.pak", | 179 "$root_gen_dir/ash/common/strings/ash_strings_en-US.pak", |
176 "$root_gen_dir/ash/resources/ash_resources_100_percent.pak", | 180 "$root_gen_dir/ash/resources/ash_resources_100_percent.pak", |
177 "$root_gen_dir/ui/resources/ui_resources_100_percent.pak", | 181 "$root_gen_dir/ui/resources/ui_resources_100_percent.pak", |
178 "$root_gen_dir/ui/strings/app_locale_settings_en-US.pak", | 182 "$root_gen_dir/ui/strings/app_locale_settings_en-US.pak", |
179 "$root_gen_dir/ui/strings/ui_strings_en-US.pak", | 183 "$root_gen_dir/ui/strings/ui_strings_en-US.pak", |
180 "$root_gen_dir/ui/views/resources/views_resources_100_percent.pak", | 184 "$root_gen_dir/ui/views/resources/views_resources_100_percent.pak", |
181 ] | 185 ] |
182 deps = [ | 186 deps = [ |
183 "//ash/common/strings", | 187 "//ash/common/strings", |
184 "//ash/resources", | 188 "//ash/resources", |
185 "//ui/resources", | 189 "//ui/resources", |
186 "//ui/strings", | 190 "//ui/strings", |
187 "//ui/views/mus:resources", | 191 "//ui/views/mus:resources", |
188 "//ui/views/resources", | 192 "//ui/views/resources", |
189 ] | 193 ] |
190 } | 194 } |
191 | 195 |
| 196 repack("resources_200") { |
| 197 output = "$root_out_dir/ash_mus_resources_200.pak" |
| 198 sources = [ |
| 199 "$root_gen_dir/ash/resources/ash_resources_200_percent.pak", |
| 200 "$root_gen_dir/ui/resources/ui_resources_200_percent.pak", |
| 201 "$root_gen_dir/ui/views/resources/views_resources_200_percent.pak", |
| 202 ] |
| 203 deps = [ |
| 204 "//ash/resources", |
| 205 "//ui/resources", |
| 206 "//ui/views/resources", |
| 207 ] |
| 208 } |
| 209 |
192 source_set("unittests") { | 210 source_set("unittests") { |
193 testonly = true | 211 testonly = true |
194 | 212 |
195 sources = [ | 213 sources = [ |
196 "accelerators/accelerator_controller_registrar_test_api.cc", | 214 "accelerators/accelerator_controller_registrar_test_api.cc", |
197 "accelerators/accelerator_controller_registrar_test_api.h", | 215 "accelerators/accelerator_controller_registrar_test_api.h", |
198 "accelerators/accelerator_controller_unittest.cc", | 216 "accelerators/accelerator_controller_unittest.cc", |
199 "accelerators/accelerator_registrar_unittest.cc", | 217 "accelerators/accelerator_registrar_unittest.cc", |
200 "app_launch_unittest.cc", | 218 "app_launch_unittest.cc", |
201 "bridge/wm_shell_mus_test_api.h", | 219 "bridge/wm_shell_mus_test_api.h", |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 "//ui/views/mus", | 261 "//ui/views/mus", |
244 ] | 262 ] |
245 | 263 |
246 data_deps = [ | 264 data_deps = [ |
247 ":mus", | 265 ":mus", |
248 "//mash/quick_launch", | 266 "//mash/quick_launch", |
249 ] | 267 ] |
250 | 268 |
251 defines = [ "NOTIMPLEMENTED_POLICY=5" ] | 269 defines = [ "NOTIMPLEMENTED_POLICY=5" ] |
252 } | 270 } |
OLD | NEW |