blob: 8dee88fccb0a2be16cf8cf72b908b4bf7b4ffeba [file] [log] [blame]
# Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//services/catalog/public/tools/catalog.gni")
import("//services/service_manager/public/cpp/service.gni")
import("//services/service_manager/public/service_manifest.gni")
import("//mojo/public/tools/bindings/mojom.gni")
import("//testing/test.gni")
source_set("service_manager") {
testonly = true
sources = [
"service_manager_unittest.cc",
]
deps = [
":interfaces",
"//base",
"//base/test:test_config",
"//mojo/common:common_base",
"//mojo/edk/system",
"//services/service_manager/public/cpp:service_test_support",
"//services/service_manager/public/cpp:sources",
"//services/service_manager/public/interfaces",
"//services/service_manager/runner/common",
]
data_deps = [
":service_manager_unittest_embedder",
":service_manager_unittest_target",
]
}
mojom("interfaces") {
sources = [
"service_manager_unittest.mojom",
]
deps = [
"//services/service_manager/public/interfaces",
]
}
service_manifest("manifest") {
name = "service_manager_unittest"
source = "service_manager_unittest_manifest.json"
}
executable("service_manager_unittest_target") {
testonly = true
sources = [
"target.cc",
]
deps = [
":interfaces",
"//base",
"//build/config/sanitizers:deps",
"//build/win:default_exe_manifest",
"//services/service_manager/public/cpp",
"//services/service_manager/public/cpp/standalone_service:main",
]
}
service_manifest("target_manifest") {
name = "service_manager_unittest_target"
source = "target_manifest.json"
}
service_manifest("embedder_manifest") {
name = "service_manager_unittest_embedder"
source = "embedder_manifest.json"
packaged_services = [ ":singleton_manifest" ]
}
service_manifest("singleton_manifest") {
name = "service_manager_unittest_singleton"
source = "singleton_manifest.json"
}
service("service_manager_unittest_embedder") {
testonly = true
sources = [
"embedder.cc",
]
deps = [
":interfaces",
"//base",
"//build/win:default_exe_manifest",
"//mojo/edk/system",
"//services/service_manager/public/cpp",
"//services/service_manager/public/cpp/standalone_service:main",
"//services/service_manager/public/interfaces",
"//services/service_manager/runner:init",
"//services/service_manager/runner/common",
]
}
catalog("catalog") {
embedded_services = [ ":manifest" ]
standalone_services = [
":embedder_manifest",
":target_manifest",
]
}