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

Side by Side Diff: mash/BUILD.gn

Issue 2645973006: [Service Manager] Get rid of dynamic service discovery (Closed)
Patch Set: . Created 3 years, 11 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 | « content/test/run_all_unittests.cc ('k') | mash/example/BUILD.gn » ('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("//services/catalog/public/tools/catalog.gni") 5 import("//services/catalog/public/tools/catalog.gni")
6 import("//services/service_manager/public/service_manifest.gni") 6 import("//services/service_manager/public/service_manifest.gni")
7 import("//testing/test.gni") 7 import("//testing/test.gni")
8 8
9 # Target that builders build. 9 # Target that builders build.
10 group("all") { 10 group("all") {
(...skipping 20 matching lines...) Expand all
31 ] 31 ]
32 } 32 }
33 } 33 }
34 34
35 # This is the catalog of services available to a standalone mash environment. 35 # This is the catalog of services available to a standalone mash environment.
36 # Build //mash/runner to generate the runner executable. 36 # Build //mash/runner to generate the runner executable.
37 catalog("catalog") { 37 catalog("catalog") {
38 testonly = true 38 testonly = true
39 39
40 standalone_services = [ 40 standalone_services = [
41 "catalog_viewer",
42 "leveldb",
43 "mash_session",
44 "mus_demo",
45 "quick_launch",
46 "task_viewer",
47 "test_ime_driver",
48 "tracing",
49 "ui",
50
51 # TODO(rockot): It seems like a layering violation to have these service
52 # names referenced here, but it's the most convenient thing to do for now,
53 # and this is only for developers.
54 #
55 # Note that there are no build-time dependencies on the actual Chrome
56 # binary implied by mash:all or other targets here. This only ensures that
57 # if you have such a binary built, the runner will be able to locate it.
58 "chrome_content_browser",
59 "chrome_content_gpu",
60 "chrome_content_plugin",
61 "chrome_content_renderer",
62 "chrome_content_utility",
63 ]
64
65 executable_overrides = [ "chrome_content_browser:@EXE_DIR/chrome" ]
66
67 included_catalogs = [ "${root_gen_dir}/mash/example/catalog.json" ]
68
69 deps = [
70 "//components/leveldb:manifest", 41 "//components/leveldb:manifest",
71 "//mash/catalog_viewer:manifest", 42 "//mash/catalog_viewer:manifest",
72 "//mash/example:catalog",
73 "//mash/quick_launch:manifest", 43 "//mash/quick_launch:manifest",
74 "//mash/session:manifest", 44 "//mash/session:manifest",
75 "//mash/task_viewer:manifest", 45 "//mash/task_viewer:manifest",
76 "//services/tracing:manifest", 46 "//services/tracing:manifest",
77 "//services/ui:manifest", 47 "//services/ui:manifest",
78 "//services/ui/demo:manifest", 48 "//services/ui/demo:manifest",
79 "//services/ui/ime/test_ime_driver:manifest", 49 "//services/ui/ime/test_ime_driver:manifest",
80 50
81 # See the note above about dependencies on Chrome. 51 # TODO(rockot): It seems like a layering violation to have these service
82 "//chrome/app:service_manifests", 52 # names referenced here, but it's the most convenient thing to do for now,
53 # and this is only for developers.
54 #
55 # Note that there are no build-time dependencies on the actual Chrome
56 # binary implied by mash:all or other targets here. This only ensures that
57 # if you have such a binary built, the runner will be able to locate it.
58 "//chrome/app:chrome_content_browser_manifest",
59 "//chrome/app:chrome_content_gpu_manifest",
60 "//chrome/app:chrome_content_plugin_manifest",
61 "//chrome/app:chrome_content_renderer_manifest",
62 "//chrome/app:chrome_content_utility_manifest",
83 ] 63 ]
84 64
65 executable_overrides = [ "content_browser:@EXE_DIR/chrome" ]
66
67 catalog_deps = [ "//mash/example:catalog" ]
68
85 if (is_chromeos) { 69 if (is_chromeos) {
86 standalone_services += [ "ash" ] 70 standalone_services += [ "//ash/mus:manifest" ]
87
88 deps += [ "//ash/mus:manifest" ]
89 } 71 }
90 72
91 if (is_linux && !is_android) { 73 if (is_linux && !is_android) {
92 standalone_services += [ "font_service" ] 74 standalone_services += [ "//components/font_service:manifest" ]
93
94 deps += [ "//components/font_service:manifest" ]
95 } 75 }
96 } 76 }
97 77
98 copy("mash_catalog") { 78 copy("mash_catalog") {
99 testonly = true 79 testonly = true
100 deps = [
101 ":catalog",
102 ]
103 sources = get_target_outputs(":catalog") 80 sources = get_target_outputs(":catalog")
104 outputs = [ 81 outputs = [
105 "$root_out_dir/mash_catalog.json", 82 "$root_out_dir/mash_catalog.json",
106 ] 83 ]
84 deps = [
85 ":catalog",
86 ]
107 } 87 }
108 88
109 group("browser") { 89 group("browser") {
110 testonly = true 90 testonly = true
111 91
112 deps = [ 92 deps = [
113 ":all", 93 ":all",
114 "//mash/browser", 94 "//mash/browser",
115 "//mash/webtest", 95 "//mash/webtest",
116 ] 96 ]
117 } 97 }
118 98
119 if (is_chromeos) { 99 if (is_chromeos) {
120 # TODO(jamescook): Move these tests into //ash/mus. 100 # TODO(jamescook): Move these tests into //ash/mus.
121 test("mash_unittests") { 101 test("mash_unittests") {
122 sources = [ 102 sources = [
123 "test/mash_test_suite.cc", 103 "test/mash_test_suite.cc",
124 "test/mash_test_suite.h", 104 "test/mash_test_suite.h",
125 "test/mash_unittests.cc", 105 "test/mash_unittests.cc",
126 ] 106 ]
127 deps = [ 107 deps = [
128 "//ash/common:unittests", 108 "//ash/common:unittests",
129 "//ash/common/test:test_support", 109 "//ash/common/test:test_support",
130 "//ash/mus:resources", 110 "//ash/mus:resources",
131 "//ash/mus:unittests", 111 "//ash/mus:unittests",
132 "//base", 112 "//base",
133 "//base/test:test_support", 113 "//base/test:test_support",
134 "//cc", 114 "//cc",
135 "//cc:test_support", 115 "//cc:test_support",
136 "//services/service_manager/background:main", 116 "//mojo/edk/system",
117 "//services/catalog:lib",
137 "//ui/aura", 118 "//ui/aura",
138 "//ui/base", 119 "//ui/base",
139 "//ui/compositor:test_support", 120 "//ui/compositor:test_support",
140 "//ui/gl:test_support", 121 "//ui/gl:test_support",
141 ] 122 ]
142 data_deps = [ 123 data_deps = [
143 ":unittests_manifest", 124 ":mash_unittests_catalog_copy",
144 "//ash/mus:resources", 125 "//ash/mus:resources",
145 ] 126 ]
146 } 127 }
147 128
148 service_manifest("unittests_manifest") { 129 service_manifest("unittests_manifest") {
149 name = "mash_unittests" 130 name = "mash_unittests"
150 source = "unittests_manifest.json" 131 source = "unittests_manifest.json"
151 } 132 }
133
134 catalog("mash_unittests_catalog") {
135 testonly = true
136
137 embedded_services = [ ":unittests_manifest" ]
138
139 catalog_deps = [ ":catalog" ]
140 }
141
142 copy("mash_unittests_catalog_copy") {
143 testonly = true
144 sources = get_target_outputs(":mash_unittests_catalog")
145 outputs = [
146 "${root_out_dir}/mash_unittests_catalog.json",
147 ]
148 deps = [
149 ":mash_unittests_catalog",
150 ]
151 }
152 } 152 }
OLDNEW
« no previous file with comments | « content/test/run_all_unittests.cc ('k') | mash/example/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698