blob: afbcbefe2e620065733906729f445fbf0258d5b6 [file]
# 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/test.gni")
config("includes") {
include_dirs = [ "include" ]
}
test("test") {
output_name = "compat-lib-test"
sources = [ "test.cc" ]
deps = [
":cpp",
":logging",
"//sdk/lib/driver/testing/cpp",
"//sdk/lib/driver/testing/cpp:scoped_global_logger",
"//src/storage/lib/vfs/cpp",
"//zircon/system/ulib/zxtest",
]
}
fuchsia_unittest_package("test-package") {
package_name = "compat-lib-test"
deps = [ ":test" ]
test_specs = {
log_settings = {
max_severity = "ERROR"
}
}
}
group("tests") {
testonly = true
deps = [ ":test-package" ]
}
## BAZEL2GN SENTINEL - DO NOT EDIT BELOW THIS LINE ##
#
# ________ _________ ________ ________
# |\ ____\|\___ ___\\ __ \|\ __ \
# \ \ \___|\|___ \ \_\ \ \|\ \ \ \|\ \
# \ \_____ \ \ \ \ \ \ \\\ \ \ ____\
# \|____|\ \ \ \ \ \ \ \\\ \ \ \___|
# ____\_\ \ \ \__\ \ \_______\ \__\
# |\_________\ \|__| \|_______|\|__|
# \|_________|
#
#
# AUTO-GENERATED - DO NOT EDIT
#
# The targets below are auto-generated based on the targets defined in the
# BUILD.bazel file from the same directory. If you made changes to targets in
# Bazel, instead of editing this file manually, run:
#
# > fx bazel2gn
#
# Please do NOT edit this file directly. Instead, edit the BUILD.bazel file and
# rerun bazel2gn.
import("//build/tools/bazel2gn/bazel_migration.gni")
if (is_fuchsia) {
source_set("cpp") {
sources = [
"banjo_client.cc",
"connect.cc",
"device_server.cc",
"service_offers.cc",
]
public = [
"include/lib/driver/compat/cpp/banjo_client.h",
"include/lib/driver/compat/cpp/banjo_server.h",
"include/lib/driver/compat/cpp/compat.h",
"include/lib/driver/compat/cpp/connect.h",
"include/lib/driver/compat/cpp/device_server.h",
"include/lib/driver/compat/cpp/metadata.h",
"include/lib/driver/compat/cpp/service_offers.h",
]
public_configs = [ ":includes" ]
visibility = [ "//*" ]
public_deps = []
public_deps += [
":symbols",
"//sdk/fidl/fuchsia.driver.compat:fuchsia.driver.compat_cpp",
"//sdk/lib/driver/async-helpers/cpp",
"//src/devices/bind/fuchsia:fuchsia_cpp",
]
if (is_fuchsia) {
public_deps += [
"//sdk/fidl/fuchsia.driver.framework:fuchsia.driver.framework_cpp",
"//sdk/lib/component/incoming/cpp",
"//sdk/lib/component/outgoing/cpp",
"//sdk/lib/driver/component/cpp",
]
}
}
}
if (is_fuchsia) {
source_set("logging") {
sources = [ "logging.cc" ]
public = [ "include/lib/driver/compat/cpp/logging.h" ]
public_configs = [ ":includes" ]
visibility = [ "//*" ]
if (is_fuchsia) {
public_deps = [ "//sdk/lib/driver/logging/cpp" ]
} else {
public_deps = []
}
}
}
if (is_fuchsia) {
source_set("symbols") {
public = [ "include/lib/driver/compat/cpp/symbols.h" ]
public_configs = [ ":includes" ]
visibility = [ "//*" ]
}
}