OLD | NEW |
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("//services/catalog/public/tools/catalog.gni") | |
6 import("//services/service_manager/public/service_manifest.gni") | 5 import("//services/service_manager/public/service_manifest.gni") |
7 | 6 |
8 source_set("mash") { | 7 source_set("mash") { |
9 sources = [ | 8 sources = [ |
10 "mash_runner.cc", | 9 "mash_runner.cc", |
11 "mash_runner.h", | 10 "mash_runner.h", |
12 ] | 11 ] |
13 deps = [ | 12 deps = [ |
14 "//base:i18n", | 13 "//base:i18n", |
15 "//components/tracing:startup_tracing", | 14 "//components/tracing:startup_tracing", |
16 "//content/public/common", | 15 "//content/public/common", |
17 "//mash/package", | 16 "//mash/package", |
18 "//mash/session/public/interfaces:constants", | 17 "//mash/session/public/interfaces:constants", |
19 "//services/catalog/public/interfaces", | 18 "//services/catalog/public/interfaces", |
20 "//services/service_manager", | 19 "//services/service_manager", |
21 "//services/service_manager/background:lib", | 20 "//services/service_manager/background:lib", |
22 "//services/service_manager/public/cpp", | 21 "//services/service_manager/public/cpp", |
23 "//services/service_manager/public/cpp/standalone_service", | 22 "//services/service_manager/public/cpp/standalone_service", |
24 "//services/service_manager/public/interfaces", | 23 "//services/service_manager/public/interfaces", |
25 "//services/service_manager/runner:init", | 24 "//services/service_manager/runner:init", |
26 "//services/service_manager/runner/common", | 25 "//services/service_manager/runner/common", |
27 "//services/service_manager/runner/host:lib", | 26 "//services/service_manager/runner/host:lib", |
28 "//services/service_manager/standalone", | 27 "//services/service_manager/standalone", |
29 "//url", | 28 "//url", |
30 ] | 29 ] |
31 data_deps = [ | 30 data_deps = [ |
32 ":catalog_copy", | 31 ":mash_manifest", |
33 "//chrome/app:service_manifests", | 32 "//chrome/app:service_manifests", |
34 ] | 33 ] |
35 | 34 |
36 if (is_chromeos) { | 35 if (is_chromeos) { |
37 sources += [ | 36 sources += [ |
38 "mash_crash_reporter_client.cc", | 37 "mash_crash_reporter_client.cc", |
39 "mash_crash_reporter_client.h", | 38 "mash_crash_reporter_client.h", |
40 ] | 39 ] |
41 deps += [ | 40 deps += [ |
42 "//ash/resources", | 41 "//ash/resources", |
43 "//components/crash/content/app", | 42 "//components/crash/content/app", |
44 "//components/crash/core/common", | 43 "//components/crash/core/common", |
45 "//components/upload_list", | 44 "//components/upload_list", |
46 "//components/version_info:generate_version_info", | 45 "//components/version_info:generate_version_info", |
47 ] | 46 ] |
48 } | 47 } |
49 | 48 |
50 if (is_linux && !is_android) { | 49 if (is_linux && !is_android) { |
51 deps += [ "//components/font_service:lib" ] | 50 deps += [ "//components/font_service:lib" ] |
52 } | 51 } |
53 } | 52 } |
54 | 53 |
55 service_manifest("mash_manifest") { | 54 service_manifest("mash_manifest") { |
56 name = "chrome_mash" | 55 name = "chrome_mash" |
57 source = "chrome_mash_manifest.json" | 56 source = "chrome_mash_manifest.json" |
58 packaged_services = [ | 57 deps = [ |
59 "//ash/autoclick/mus:manifest", | 58 "//ash/autoclick/mus:manifest", |
60 "//ash/touch_hud/mus:manifest", | 59 "//ash/touch_hud/mus:manifest", |
61 "//mash/catalog_viewer:manifest", | 60 "//mash/catalog_viewer:manifest", |
62 "//mash/quick_launch:manifest", | 61 "//mash/quick_launch:manifest", |
63 "//mash/session:manifest", | 62 "//mash/session:manifest", |
64 "//mash/task_viewer:manifest", | 63 "//mash/task_viewer:manifest", |
65 "//services/ui:manifest", | 64 "//services/ui:manifest", |
66 "//services/ui/ime/test_ime_driver:manifest", | 65 "//services/ui/ime/test_ime_driver:manifest", |
67 ] | 66 ] |
| 67 packaged_services = [ |
| 68 "accessibility_autoclick", |
| 69 "catalog_viewer", |
| 70 "mash_session", |
| 71 "quick_launch", |
| 72 "task_viewer", |
| 73 "test_ime_driver", |
| 74 "touch_hud", |
| 75 "ui", |
| 76 ] |
68 | 77 |
69 if (is_chromeos) { | 78 if (is_chromeos) { |
70 packaged_services += [ "//ash/mus:manifest" ] | 79 deps += [ "//ash/mus:manifest" ] |
| 80 packaged_services += [ "ash" ] |
71 } | 81 } |
72 | 82 |
73 if (is_linux && !is_android) { | 83 if (is_linux && !is_android) { |
74 packaged_services += [ "//components/font_service:manifest" ] | 84 deps += [ "//components/font_service:manifest" ] |
| 85 packaged_services += [ "font_service" ] |
75 } | 86 } |
76 } | 87 } |
77 | |
78 catalog("catalog") { | |
79 embedded_services = [ ":mash_manifest" ] | |
80 catalog_deps = [ "//chrome/app:catalog" ] | |
81 } | |
82 | |
83 copy("catalog_copy") { | |
84 sources = get_target_outputs(":catalog") | |
85 outputs = [ | |
86 "${root_out_dir}/chrome_mash_catalog.json", | |
87 ] | |
88 deps = [ | |
89 ":catalog", | |
90 ] | |
91 } | |
OLD | NEW |