1# Copyright 2023 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 15import("//build_overrides/pigweed.gni") 16import("$dir_pw_unit_test/test.gni") 17 18dir_public_hci_spec = 19 "../../public/pw_bluetooth_sapphire/internal/host/hci-spec" 20 21# Static library containing the HCI specification definitions 22pw_source_set("hci-spec") { 23 public = [ 24 "$dir_public_hci_spec/constants.h", 25 "$dir_public_hci_spec/defaults.h", 26 "$dir_public_hci_spec/le_connection_parameters.h", 27 "$dir_public_hci_spec/link_key.h", 28 "$dir_public_hci_spec/lmp_feature_set.h", 29 "$dir_public_hci_spec/protocol.h", 30 "$dir_public_hci_spec/util.h", 31 "$dir_public_hci_spec/vendor_protocol.h", 32 ] 33 34 sources = [ 35 "le_connection_parameters.cc", 36 "link_key.cc", 37 "util.cc", 38 ] 39 40 public_deps = [ 41 "$dir_pw_bluetooth:emboss_hci_group", 42 "$dir_pw_bluetooth_sapphire:config", 43 "$dir_pw_bluetooth_sapphire/host/common", 44 "$dir_pw_chrono:system_clock", 45 ] 46} 47 48pw_test("tests") { 49 sources = [ "util_test.cc" ] 50 51 deps = [ ":hci-spec" ] 52 53 test_main = "$dir_pw_bluetooth_sapphire/host/testing:gtest_main" 54} 55