blob: 771bd58a2e00b1d95b17bb7e9b1b7bab768919fb [file] [log] [blame]
# Copyright 2020 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("driver2") {
public_deps = [ ":lib" ]
}
group("tests") {
testonly = true
deps = [ ":driver2-tests" ]
}
source_set("lib") {
sources = [ "record.h" ]
public_deps = [ "//zircon/public/lib/async" ]
}
source_set("llcpp") {
sources = [
"inspect.cc",
"inspect.h",
"logger.cc",
"logger.h",
"namespace.cc",
"namespace.h",
"promise.h",
"start_args.h",
]
public_deps = [
"//sdk/fidl/fuchsia.component.runner:fuchsia.component.runner_llcpp",
"//sdk/fidl/fuchsia.data:fuchsia.data_llcpp",
"//sdk/fidl/fuchsia.driver.framework:fuchsia.driver.framework_llcpp",
"//sdk/fidl/fuchsia.logger:fuchsia.logger_llcpp",
"//sdk/lib/fdio",
"//sdk/lib/fit-promise",
"//src/lib/storage/vfs/cpp",
"//zircon/public/lib/zxc",
"//zircon/system/ulib/inspect",
"//zircon/system/ulib/syslog",
]
# 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" ]
}
executable("llcpp_test") {
testonly = true
sources = [
"logger_test.cc",
"namespace_test.cc",
"promise_test.cc",
"start_args_test.cc",
"test_base.h",
]
deps = [
":llcpp",
"//sdk/fidl/fuchsia.io",
"//sdk/fidl/fuchsia.logger",
"//sdk/lib/fidl/cpp",
"//src/lib/fxl/test:gtest_main",
"//zircon/system/ulib/async-loop:async-loop-cpp",
"//zircon/system/ulib/async-loop:async-loop-default",
]
}
fuchsia_unittest_component("driver2-llcpp-test") {
manifest = "meta/llcpp_test.cml"
deps = [ ":llcpp_test" ]
}
fuchsia_test_package("driver2-tests") {
test_components = [ ":driver2-llcpp-test" ]
}