1# Copyright 2024 The Pigweed Authors 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); you may not 4# use this file except in compliance with the License. You may obtain a copy of 5# the License at 6# 7# https://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 12# License for the specific language governing permissions and limitations under 13# the License. 14 15load( 16 "@fuchsia_sdk//fuchsia:defs.bzl", 17 "fuchsia_cc_library", 18 "fuchsia_cc_test", 19 "fuchsia_unittest_package", 20) 21load("//pw_bluetooth_sapphire/fuchsia:fuchsia_api_level.bzl", "FUCHSIA_API_LEVEL") 22 23package(default_visibility = [ 24 "//pw_bluetooth_sapphire/fuchsia/bt_host:__pkg__", 25 "//pw_bluetooth_sapphire/fuchsia/host/fidl:__pkg__", 26]) 27 28fuchsia_cc_library( 29 name = "fidl", 30 hdrs = [ 31 "public/pw_bluetooth_sapphire/fuchsia/lib/fidl/hanging_getter.h", 32 ], 33 strip_include_prefix = "public", 34 deps = [ 35 "//pw_function", 36 ], 37) 38 39fuchsia_cc_test( 40 name = "bt_lib_fidl_test", 41 testonly = True, 42 srcs = [ 43 "hanging_getter_unittest.cc", 44 ], 45 visibility = ["//visibility:public"], 46 deps = [ 47 ":fidl", 48 "//pw_bluetooth_sapphire/host/testing:gtest_main", 49 "@fuchsia_sdk//pkg/fidl_cpp", 50 ], 51) 52 53fuchsia_unittest_package( 54 name = "test_pkg", 55 package_name = "bt_lib_fidl_tests", 56 testonly = True, 57 fuchsia_api_level = FUCHSIA_API_LEVEL, 58 unit_tests = [ 59 ":bt_lib_fidl_test", 60 ], 61 visibility = ["//visibility:public"], 62) 63