| 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/mojo_application.gni") | |
| 7 import("//mojo/public/mojo_application_manifest.gni") | |
| 8 import("//mojo/public/tools/bindings/mojom.gni") | 6 import("//mojo/public/tools/bindings/mojom.gni") |
| 7 import("//services/shell/public/cpp/service.gni") |
| 8 import("//services/shell/public/service_manifest.gni") |
| 9 import("//tools/grit/repack.gni") | 9 import("//tools/grit/repack.gni") |
| 10 | 10 |
| 11 source_set("lib") { | 11 source_set("lib") { |
| 12 sources = [ | 12 sources = [ |
| 13 "accelerator_registrar_impl.cc", | 13 "accelerator_registrar_impl.cc", |
| 14 "accelerator_registrar_impl.h", | 14 "accelerator_registrar_impl.h", |
| 15 "accessibility_delegate_mus.cc", | 15 "accessibility_delegate_mus.cc", |
| 16 "accessibility_delegate_mus.h", | 16 "accessibility_delegate_mus.h", |
| 17 "bridge/mus_layout_manager_adapter.cc", | 17 "bridge/mus_layout_manager_adapter.cc", |
| 18 "bridge/mus_layout_manager_adapter.h", | 18 "bridge/mus_layout_manager_adapter.h", |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 | 112 |
| 113 if (is_chromeos) { | 113 if (is_chromeos) { |
| 114 deps += [ | 114 deps += [ |
| 115 "//chromeos", | 115 "//chromeos", |
| 116 "//chromeos:power_manager_proto", | 116 "//chromeos:power_manager_proto", |
| 117 "//device/bluetooth", | 117 "//device/bluetooth", |
| 118 ] | 118 ] |
| 119 } | 119 } |
| 120 } | 120 } |
| 121 | 121 |
| 122 mojo_native_application("mus") { | 122 service("mus") { |
| 123 output_name = "ash" | 123 output_name = "ash" |
| 124 | 124 |
| 125 sources = [ | 125 sources = [ |
| 126 "main.cc", | 126 "main.cc", |
| 127 ] | 127 ] |
| 128 | 128 |
| 129 deps = [ | 129 deps = [ |
| 130 ":lib", | 130 ":lib", |
| 131 ":resources", | 131 ":resources", |
| 132 "//services/shell/public/cpp", | 132 "//services/shell/public/cpp", |
| 133 ] | 133 ] |
| 134 | 134 |
| 135 # TODO(beng): This target relies on //mash/session, but there is a cycle so we | 135 # TODO(beng): This target relies on //mash/session, but there is a cycle so we |
| 136 # can't state that dependency here. | 136 # can't state that dependency here. |
| 137 data_deps = [ | 137 data_deps = [ |
| 138 ":manifest", | 138 ":manifest", |
| 139 "//services/ui", | 139 "//services/ui", |
| 140 ] | 140 ] |
| 141 | 141 |
| 142 resources = [ "$root_out_dir/ash_mus_resources.pak" ] | 142 resources = [ "$root_out_dir/ash_mus_resources.pak" ] |
| 143 } | 143 } |
| 144 | 144 |
| 145 mojo_application_manifest("manifest") { | 145 service_manifest("manifest") { |
| 146 application_name = "ash" | 146 name = "ash" |
| 147 source = "manifest.json" | 147 source = "manifest.json" |
| 148 } | 148 } |
| 149 | 149 |
| 150 # TODO: Load resources at additional scales and load locale-specific strings. | 150 # TODO: Load resources at additional scales and load locale-specific strings. |
| 151 # TODO: Avoid duplication between Mash and Chrome pak files: crbug.com/628715. | 151 # TODO: Avoid duplication between Mash and Chrome pak files: crbug.com/628715. |
| 152 repack("resources") { | 152 repack("resources") { |
| 153 output = "$root_out_dir/ash_mus_resources.pak" | 153 output = "$root_out_dir/ash_mus_resources.pak" |
| 154 sources = [ | 154 sources = [ |
| 155 "$root_gen_dir/ash/mus/resources/ash_mus_resources_100_percent.pak", | 155 "$root_gen_dir/ash/mus/resources/ash_mus_resources_100_percent.pak", |
| 156 "$root_gen_dir/ash/resources/ash_resources_100_percent.pak", | 156 "$root_gen_dir/ash/resources/ash_resources_100_percent.pak", |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 "//ui/gfx/geometry", | 213 "//ui/gfx/geometry", |
| 214 "//ui/gfx/geometry/mojo", | 214 "//ui/gfx/geometry/mojo", |
| 215 "//ui/views/mus", | 215 "//ui/views/mus", |
| 216 ] | 216 ] |
| 217 | 217 |
| 218 data_deps = [ | 218 data_deps = [ |
| 219 ":mus", | 219 ":mus", |
| 220 "//mash/quick_launch", | 220 "//mash/quick_launch", |
| 221 ] | 221 ] |
| 222 } | 222 } |
| OLD | NEW |