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