# Copyright 2023 The Pigweed Authors # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy of # the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations under # the License. import("//build_overrides/pigweed.gni") import("$dir_pw_unit_test/test.gni") config("public_include_path") { include_dirs = [ "public" ] } # Static library containing the HCI specification definitions pw_source_set("hci-spec") { sources = [ "le_connection_parameters.cc", "util.cc", ] public = [ "public/pw_bluetooth_sapphire/internal/host/hci-spec/constants.h", "public/pw_bluetooth_sapphire/internal/host/hci-spec/defaults.h", "public/pw_bluetooth_sapphire/internal/host/hci-spec/le_connection_parameters.h", "public/pw_bluetooth_sapphire/internal/host/hci-spec/link_key.h", "public/pw_bluetooth_sapphire/internal/host/hci-spec/lmp_feature_set.h", "public/pw_bluetooth_sapphire/internal/host/hci-spec/protocol.h", "public/pw_bluetooth_sapphire/internal/host/hci-spec/util.h", "public/pw_bluetooth_sapphire/internal/host/hci-spec/vendor_protocol.h", ] public_configs = [ ":public_include_path" ] public_deps = [ "$dir_pw_bluetooth:emboss_hci_group", "$dir_pw_bluetooth_sapphire/host/common", "$dir_pw_bluetooth_sapphire/lib/cpp-string", "$dir_pw_chrono:system_clock", ] } pw_test("hci-spec_test") { sources = [ "util_test.cc" ] test_main = "$dir_pw_bluetooth_sapphire/host/testing:gtest_main" deps = [ ":hci-spec" ] } pw_test_group("tests") { tests = [ ":hci-spec_test" ] }