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("@rules_cc//cc:cc_library.bzl", "cc_library") 16load("//pw_unit_test:pw_cc_test.bzl", "pw_cc_test") 17 18package( 19 default_visibility = ["//visibility:public"], 20 features = ["-layering_check"], 21) 22 23cc_library( 24 name = "hci-spec", 25 srcs = [ 26 "le_connection_parameters.cc", 27 "util.cc", 28 ], 29 hdrs = [ 30 "public/pw_bluetooth_sapphire/internal/host/hci-spec/constants.h", 31 "public/pw_bluetooth_sapphire/internal/host/hci-spec/defaults.h", 32 "public/pw_bluetooth_sapphire/internal/host/hci-spec/le_connection_parameters.h", 33 "public/pw_bluetooth_sapphire/internal/host/hci-spec/link_key.h", 34 "public/pw_bluetooth_sapphire/internal/host/hci-spec/lmp_feature_set.h", 35 "public/pw_bluetooth_sapphire/internal/host/hci-spec/protocol.h", 36 "public/pw_bluetooth_sapphire/internal/host/hci-spec/util.h", 37 "public/pw_bluetooth_sapphire/internal/host/hci-spec/vendor_protocol.h", 38 ], 39 strip_include_prefix = "public", 40 tags = ["noclangtidy"], 41 deps = [ 42 "//pw_bluetooth:emboss_hci", 43 "//pw_bluetooth_sapphire/host/common", 44 "//pw_bluetooth_sapphire/lib/cpp-string", 45 "//pw_chrono:system_clock", 46 ], 47) 48 49pw_cc_test( 50 name = "hci-spec_test", 51 srcs = [ 52 "util_test.cc", 53 ], 54 test_main = "//pw_bluetooth_sapphire/host/testing:gtest_main", 55 deps = [ 56 ":hci-spec", 57 ], 58) 59