xref: /aosp_15_r20/external/pigweed/pw_bluetooth_sapphire/host/hci-spec/BUILD.gn (revision 61c4878ac05f98d0ceed94b57d316916de578985)
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    "util.cc",
37  ]
38
39  public_deps = [
40    "$dir_pw_bluetooth:emboss_hci_group",
41    "$dir_pw_bluetooth_sapphire:config",
42    "$dir_pw_bluetooth_sapphire/host/common",
43    "$dir_pw_chrono:system_clock",
44  ]
45}
46
47pw_test("tests") {
48  sources = [ "util_test.cc" ]
49
50  deps = [ ":hci-spec" ]
51
52  test_main = "$dir_pw_bluetooth_sapphire/host/testing:gtest_main"
53}
54