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("//services/catalog/public/tools/catalog.gni") |
5 import("//services/service_manager/public/service_manifest.gni") | 6 import("//services/service_manager/public/service_manifest.gni") |
6 import("//testing/test.gni") | 7 import("//testing/test.gni") |
7 | 8 |
8 # Target that builders build. | 9 # Target that builders build. |
9 group("all") { | 10 group("all") { |
10 testonly = true | 11 testonly = true |
11 | 12 |
12 deps = [ | 13 deps = [ |
| 14 ":mash_catalog", |
13 "//components/leveldb", | 15 "//components/leveldb", |
14 "//mash/catalog_viewer", | 16 "//mash/catalog_viewer", |
15 "//mash/example", | 17 "//mash/example", |
| 18 "//mash/quick_launch", |
| 19 "//mash/runner", |
16 "//mash/session", | 20 "//mash/session", |
17 "//mash/simple_wm", | 21 "//mash/simple_wm", |
18 "//mash/task_viewer", | 22 "//mash/task_viewer", |
19 ] | 23 ] |
20 | 24 |
21 # Build on platforms that support ash. | 25 # Build on platforms that support ash. |
22 if (is_chromeos) { | 26 if (is_chromeos) { |
23 deps += [ | 27 deps += [ |
24 "//ash/autoclick/mus:accessibility_autoclick", | 28 "//ash/autoclick/mus:accessibility_autoclick", |
25 "//ash/touch_hud/mus:touch_hud", | 29 "//ash/touch_hud/mus:touch_hud", |
26 "//mash:mash_unittests", | 30 "//mash:mash_unittests", |
27 ] | 31 ] |
28 } | 32 } |
29 } | 33 } |
30 | 34 |
| 35 # This is the catalog of services available to a standalone mash environment. |
| 36 # Build //mash/runner to generate the runner executable. |
| 37 catalog("catalog") { |
| 38 testonly = true |
| 39 |
| 40 standalone_services = [ |
| 41 "catalog_viewer", |
| 42 "leveldb", |
| 43 "mash_session", |
| 44 "quick_launch", |
| 45 "task_viewer", |
| 46 "test_ime_driver", |
| 47 "tracing", |
| 48 "ui", |
| 49 |
| 50 # TODO(rockot): It seems like a layering violation to have these service |
| 51 # names referenced here, but it's the most convenient thing to do for now, |
| 52 # and this is only for developers. |
| 53 # |
| 54 # Note that there are no build-time dependencies on the actual Chrome |
| 55 # binary implied by mash:all or other targets here. This only ensures that |
| 56 # if you have such a binary built, the runner will be able to locate it. |
| 57 "chrome_content_browser", |
| 58 "chrome_content_gpu", |
| 59 "chrome_content_plugin", |
| 60 "chrome_content_renderer", |
| 61 "chrome_content_utility", |
| 62 ] |
| 63 |
| 64 executable_overrides = [ "chrome_content_browser:@EXE_DIR/chrome" ] |
| 65 |
| 66 included_catalogs = [ "${root_gen_dir}/mash/example/catalog.json" ] |
| 67 |
| 68 deps = [ |
| 69 "//components/leveldb:manifest", |
| 70 "//mash/example:catalog", |
| 71 "//mash/quick_launch:manifest", |
| 72 "//mash/session:manifest", |
| 73 "//mash/task_viewer:manifest", |
| 74 "//services/tracing:manifest", |
| 75 "//services/ui:manifest", |
| 76 "//services/ui/ime/test_ime_driver:manifest", |
| 77 |
| 78 # See the note above about dependencies on Chrome. |
| 79 "//chrome/app:service_manifests", |
| 80 ] |
| 81 |
| 82 if (is_chromeos) { |
| 83 standalone_services += [ "ash" ] |
| 84 |
| 85 deps += [ "//ash/mus:manifest" ] |
| 86 } |
| 87 |
| 88 if (is_linux && !is_android) { |
| 89 standalone_services += [ "font_service" ] |
| 90 |
| 91 deps += [ "//components/font_service:manifest" ] |
| 92 } |
| 93 } |
| 94 |
| 95 copy("mash_catalog") { |
| 96 testonly = true |
| 97 deps = [ |
| 98 ":catalog", |
| 99 ] |
| 100 sources = get_target_outputs(":catalog") |
| 101 outputs = [ |
| 102 "$root_out_dir/mash_catalog.json", |
| 103 ] |
| 104 } |
| 105 |
31 group("browser") { | 106 group("browser") { |
32 testonly = true | 107 testonly = true |
33 | 108 |
34 deps = [ | 109 deps = [ |
35 ":all", | 110 ":all", |
36 "//mash/browser", | 111 "//mash/browser", |
37 "//mash/webtest", | 112 "//mash/webtest", |
38 ] | 113 ] |
39 } | 114 } |
40 | 115 |
(...skipping 22 matching lines...) Expand all Loading... |
63 ":unittests_manifest", | 138 ":unittests_manifest", |
64 "//ash/mus:resources", | 139 "//ash/mus:resources", |
65 ] | 140 ] |
66 } | 141 } |
67 | 142 |
68 service_manifest("unittests_manifest") { | 143 service_manifest("unittests_manifest") { |
69 name = "mash_unittests" | 144 name = "mash_unittests" |
70 source = "unittests_manifest.json" | 145 source = "unittests_manifest.json" |
71 } | 146 } |
72 } | 147 } |
OLD | NEW |