blob: a6a8396e44afa8574ced4db5eea082e0d0d8b34d [file] [log] [blame]
# Copyright 2019 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/testing/environments.gni")
import("//src/modular/build/executable_package.gni")
import("//src/modular/build/tests_package.gni")
executable("basemgr_launcher_bin") {
output_name = "basemgr_launcher"
sources = [
"main.cc",
]
deps = [
"//sdk/fidl/fuchsia.modular.internal",
"//sdk/fidl/fuchsia.sys",
"//sdk/lib/sys/cpp",
"//src/lib/files",
"//src/lib/fxl",
"//src/modular/lib/modular_config",
"//zircon/public/lib/async-loop-cpp",
"//zircon/public/lib/async-loop-default",
"//zircon/public/lib/fdio",
]
public_deps = [
"//sdk/fidl/fuchsia.modular.session",
"//sdk/fidl/fuchsia.sys",
"//sdk/lib/fidl/cpp",
"//sdk/lib/sys/cpp",
"//zircon/public/lib/async-default",
]
}
package("basemgr_launcher") {
deps = [
":basemgr_launcher_bin",
]
binaries = [
{
name = "basemgr_launcher"
shell = true
},
]
meta = [
{
path = "meta/basemgr_launcher.cmx"
dest = "basemgr_launcher.cmx"
},
]
}
executable("basemgr_launcher_test") {
testonly = true
sources = [
"basemgr_launcher_test.cc",
]
deps = [
"//garnet/public/lib/test_runner/cpp",
"//sdk/fidl/fuchsia.devicesettings",
"//sdk/fidl/fuchsia.identity.account",
"//sdk/fidl/fuchsia.sys",
"//sdk/fidl/fuchsia.testing.runner",
"//sdk/lib/sys/cpp/testing:integration",
"//src/lib/fxl",
"//src/lib/fxl/test:gtest_main",
"//third_party/googletest:gtest",
]
}
hermetic_tests_package("basemgr_launcher_tests") {
deps = [
":basemgr_launcher_test",
]
}