blob: 9995aec91f64d18cba542985698f2cb67d8ad66e [file] [log] [blame]
# Copyright 2016 The Fuchsia 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("//build/package.gni")
source_set("lib") {
visibility = [ ":*" ]
sources = [
"cmx_metadata.cc",
"cmx_metadata.h",
"component_controller_impl.cc",
"component_controller_impl.h",
"dynamic_library_loader.cc",
"dynamic_library_loader.h",
"environment_controller_impl.cc",
"environment_controller_impl.h",
"hub/component_hub.cc",
"hub/component_hub.h",
"hub/hub.cc",
"hub/hub.h",
"hub/hub_info.cc",
"hub/hub_info.h",
"hub/realm_hub.cc",
"hub/realm_hub.h",
"namespace.cc",
"namespace.h",
"namespace_builder.cc",
"namespace_builder.h",
"realm.cc",
"realm.h",
"root_loader.cc",
"root_loader.h",
"runner_holder.cc",
"runner_holder.h",
"runtime_metadata.cc",
"runtime_metadata.h",
"sandbox_metadata.cc",
"sandbox_metadata.h",
"service_provider_dir_impl.cc",
"service_provider_dir_impl.h",
"url_resolver.cc",
"url_resolver.h",
"util.cc",
"util.h",
]
public_deps = [
"//garnet/lib/far",
"//garnet/lib/mime_sniffer",
"//garnet/public/lib/app/cpp",
"//garnet/public/lib/app/fidl",
"//garnet/public/lib/fsl",
"//garnet/public/lib/fxl",
"//garnet/public/lib/svc/cpp",
"//third_party/rapidjson",
"//zircon/public/fidl/process",
"//zircon/public/lib/fit",
"//zircon/public/lib/fs",
"//zircon/public/lib/loader-service",
"//zircon/public/lib/zx",
]
defines = [ "_ALL_SOURCE=1" ]
}
source_set("appmgr_for_test") {
testonly = true
sources = [
"appmgr.cc",
"appmgr.h",
]
public_deps = [
":lib",
"//garnet/public/lib/app/cpp",
"//garnet/public/lib/app/fidl",
"//garnet/public/lib/fxl",
"//zircon/public/lib/fs",
"//zircon/public/lib/zx",
]
}
executable("bin") {
output_name = "appmgr"
sources = [
"appmgr.cc",
"appmgr.h",
"main.cc",
]
deps = [
":lib",
]
}
executable("tests") {
testonly = true
output_name = "appmgr_unittests"
sources = [
"appmgr_unittest.cc",
"cmx_metadata_unittest.cc",
"component_controller_unittest.cc",
"hub/hub_holder_unittest.cc",
"namespace_builder_unittest.cc",
"runtime_metadata_unittest.cc",
"sandbox_metadata_unittest.cc",
"service_provider_dir_unittest.cc",
"util_unittest.cc",
]
deps = [
":appmgr_for_test",
":lib",
"//garnet/examples/fidl/services:echo2",
"//garnet/public/lib/fxl/test:gtest_main",
"//garnet/public/lib/gtest",
]
}
package("appmgr") {
deprecated_system_image = true
deps = [
":bin",
]
binaries = [
{
name = "appmgr"
},
]
}
package("appmgr_unittests") {
testonly = true
deprecated_system_image = true
deps = [
":tests",
]
tests = [
{
name = "appmgr_unittests"
},
]
}
package("appmgr_integrationtests") {
testonly = true
deprecated_system_image = true
deps = [
"integration_tests:tests",
]
tests = [
{
name = "appmgr_integration_tests"
},
]
}