blob: 7be8ceabcf2208e87ebd29c7924d0a0d1ebca8be [file] [log] [blame]
# Copyright 2018 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/components.gni")
group("guest_runner") {
deps = [ ":guest-runner" ]
}
executable("bin") {
output_name = "guest_runner"
sources = [ "main.cc" ]
deps = [
"//sdk/fidl/fuchsia.sys",
"//sdk/fidl/fuchsia.virtualization",
"//sdk/lib/sys/cpp",
"//sdk/lib/syslog/cpp",
"//src/lib/storage/vfs/cpp",
"//src/virtualization/lib/guest_config",
"//zircon/system/ulib/async-loop:async-loop-cpp",
"//zircon/system/ulib/async-loop:async-loop-default",
]
# TODO(fxbug.dev/69585): This target uses raw zx::channel with LLCPP which is deprecated.
# Please migrate to typed channel APIs (fidl::ClientEnd<T>, fidl::ServerEnd<T>).
# See linked bug for details.
configs += [ "//build/cpp:fidl-llcpp-deprecated-raw-channels" ]
}
fuchsia_component("component") {
component_name = "guest_runner"
manifest = "meta/guest_runner.cmx"
deps = [ ":bin" ]
}
fuchsia_package("guest-runner") {
deps = [ ":component" ]
}