| # Copyright 2021 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") |
| import("//build/cpp/sdk_source_set.gni") |
| import("//build/test.gni") |
| |
| sdk_source_set("driver_compat") { |
| category = "experimental" |
| sdk_name = "driver_compat" |
| include_base = "//sdk" |
| sources = [ |
| "compat.h", |
| "connect.cc", |
| "connect.h", |
| "context.cc", |
| "context.h", |
| "device_server.cc", |
| "device_server.h", |
| "service_offers.cc", |
| "service_offers.h", |
| ] |
| |
| public_deps = [ |
| "//sdk/fidl/fuchsia.driver.compat:fuchsia.driver.compat_cpp_wire", |
| "//sdk/lib/driver2:cpp", |
| "//sdk/lib/driver2:devfs_exporter", |
| "//sdk/lib/sys/component/cpp", |
| ] |
| } |
| |
| source_set("symbols") { |
| sources = [ "symbols.h" ] |
| } |
| |
| test("test") { |
| output_name = "compat-lib-test" |
| sources = [ "test.cc" ] |
| deps = [ |
| ":driver_compat", |
| "//src/lib/storage/vfs/cpp", |
| "//zircon/system/ulib/async-loop:async-loop-cpp", |
| "//zircon/system/ulib/async-loop:async-loop-default", |
| "//zircon/system/ulib/zxtest", |
| ] |
| } |
| |
| fuchsia_unittest_package("test-package") { |
| package_name = "compat-lib-test" |
| deps = [ ":test" ] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ ":test-package" ] |
| } |