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

Side by Side Diff: media/mojo/services/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 | « mash/test/mash_unittests.cc ('k') | media/mojo/services/DEPS » ('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 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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("//media/media_options.gni") 5 import("//media/media_options.gni")
6 import("//services/catalog/public/tools/catalog.gni")
6 import("//services/service_manager/public/cpp/service.gni") 7 import("//services/service_manager/public/cpp/service.gni")
7 import("//services/service_manager/public/service_manifest.gni") 8 import("//services/service_manager/public/service_manifest.gni")
8 import("//testing/test.gni") 9 import("//testing/test.gni")
9 10
10 config("mojo_media_config") { 11 config("mojo_media_config") {
11 if (!enable_mojo_media) { 12 if (!enable_mojo_media) {
12 assert(mojo_media_services == [], "Mojo media is not enabled") 13 assert(mojo_media_services == [], "Mojo media is not enabled")
13 assert(mojo_media_host == "none", "Mojo media is not enabled") 14 assert(mojo_media_host == "none", "Mojo media is not enabled")
14 assert(!enable_test_mojo_media_client, "Mojo media is not enabled") 15 assert(!enable_test_mojo_media_client, "Mojo media is not enabled")
15 } else { 16 } else {
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 160
160 # crbug.com/676055: media_service_unittests currently fails to link in Windows 161 # crbug.com/676055: media_service_unittests currently fails to link in Windows
161 # component builds, so don't declare it, otherwise the "all" target will still 162 # component builds, so don't declare it, otherwise the "all" target will still
162 # try to build it. 163 # try to build it.
163 if (!(is_win && is_component_build)) { 164 if (!(is_win && is_component_build)) {
164 test("media_service_unittests") { 165 test("media_service_unittests") {
165 testonly = true 166 testonly = true
166 167
167 sources = [ 168 sources = [
168 "media_service_unittest.cc", 169 "media_service_unittest.cc",
170 "run_all_unittests.cc",
169 ] 171 ]
170 172
171 deps = [ 173 deps = [
174 "//base",
175 "//base/test:test_support",
172 "//media", 176 "//media",
173 "//media/base:test_support", 177 "//media/base:test_support",
174 "//media/mojo/clients", 178 "//media/mojo/clients",
175 "//media/mojo/common", 179 "//media/mojo/common",
176 "//media/mojo/interfaces", 180 "//media/mojo/interfaces",
181 "//mojo/edk/system",
182 "//services/catalog:lib",
177 "//services/service_manager/public/cpp:service_test_support", 183 "//services/service_manager/public/cpp:service_test_support",
178 "//services/service_manager/public/cpp/test:run_all_service_tests",
179 "//testing/gmock", 184 "//testing/gmock",
180 "//testing/gtest", 185 "//testing/gtest",
181 ] 186 ]
182 187
183 data_deps = [ 188 data_deps = [
184 ":media", 189 ":media",
185 ":test_manifest", 190 ":media_service_unittests_catalog_copy",
186 ] 191 ]
187 } 192 }
188 } # !(is_win && is_component_build) 193 } # !(is_win && is_component_build)
189 194
190 service_manifest("media_manifest") { 195 service_manifest("media_manifest") {
191 name = "media" 196 name = "media"
192 source = "media_manifest.json" 197 source = "media_manifest.json"
193 } 198 }
194 199
195 service_manifest("test_manifest") { 200 service_manifest("test_manifest") {
(...skipping 12 matching lines...) Expand all
208 data_deps = [ 213 data_deps = [
209 ":media", 214 ":media",
210 ":pipeline_test_manifest", 215 ":pipeline_test_manifest",
211 ] 216 ]
212 } 217 }
213 218
214 service_manifest("pipeline_test_manifest") { 219 service_manifest("pipeline_test_manifest") {
215 name = "media_pipeline_integration_unittests" 220 name = "media_pipeline_integration_unittests"
216 source = "pipeline_test_manifest.json" 221 source = "pipeline_test_manifest.json"
217 } 222 }
223
224 catalog("media_service_unittests_catalog") {
225 embedded_services = [ ":test_manifest" ]
226 standalone_services = [ ":media_manifest" ]
227 }
228
229 copy("media_service_unittests_catalog_copy") {
230 sources = get_target_outputs(":media_service_unittests_catalog")
231 outputs = [
232 "${root_out_dir}/media_service_unittests_catalog.json",
233 ]
234 deps = [
235 ":media_service_unittests_catalog",
236 ]
237 }
OLDNEW
« no previous file with comments | « mash/test/mash_unittests.cc ('k') | media/mojo/services/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698