| # Copyright 2024 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. |
| |
| # driver_compat library used by drivers to communicate with DFv1 drivers. |
| # This library will be removed when DF team can move off this library. |
| |
| package(default_visibility = ["//visibility:public"]) |
| |
| cc_library( |
| name = "cpp", |
| srcs = [ |
| "banjo_client.cc", |
| "connect.cc", |
| "device_server.cc", |
| "service_offers.cc", |
| ], |
| hdrs = [ |
| "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", |
| "include/lib/driver/compat/cpp/symbols.h", |
| ], |
| includes = [ |
| "include", |
| ], |
| target_compatible_with = ["@platforms//os:fuchsia"], |
| deps = [ |
| "//sdk/fidl/fuchsia.driver.compat:fuchsia.driver.compat_cpp", |
| "//sdk/lib/driver/async-helpers/cpp", |
| "//src/devices/bind/fuchsia:fuchsia_cc", |
| "@fuchsia_sdk//fidl/fuchsia.driver.framework:fuchsia.driver.framework_cpp", |
| "@fuchsia_sdk//pkg/component_incoming_cpp", |
| "@fuchsia_sdk//pkg/component_outgoing_cpp", |
| "@fuchsia_sdk//pkg/driver_component_cpp", |
| ], |
| ) |
| |
| cc_library( |
| name = "logging", |
| srcs = [ |
| "logging.cc", |
| ], |
| hdrs = [ |
| "include/lib/driver/compat/cpp/logging.h", |
| ], |
| includes = [ |
| "include", |
| ], |
| target_compatible_with = ["@platforms//os:fuchsia"], |
| deps = [ |
| "@fuchsia_sdk//pkg/driver_logging_cpp", |
| ], |
| ) |