• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
15include($ENV{PW_ROOT}/pw_build/pigweed.cmake)
16
17###############################################################################
18##          Everything below here is intended to be emboss only              ##
19##          and will be skipped if emboss isn't enabled.                     ##
20###############################################################################
21if("${dir_pw_third_party_emboss}" STREQUAL "")
22  # Skip emboss defs if it's not configured
23  return()
24endif()
25
26pw_add_library(pw_bluetooth_proxy STATIC
27  HEADERS
28    public/pw_bluetooth_proxy/acl_data_channel.h
29    public/pw_bluetooth_proxy/common.h
30    public/pw_bluetooth_proxy/proxy_host.h
31  PUBLIC_INCLUDES
32    public
33  PUBLIC_DEPS
34    pw_bluetooth.emboss_hci_common
35    pw_bluetooth.emboss_hci_events
36    pw_bluetooth.emboss_hci_h4
37    pw_function
38    pw_log
39    pw_span
40    pw_status
41  SOURCES
42    acl_data_channel.cc
43    emboss_util.h
44    proxy_host.cc
45)
46
47pw_add_test(pw_bluetooth_proxy.emboss_util_test
48  SOURCES
49    emboss_util.h
50    emboss_util_test.cc
51  PRIVATE_DEPS
52    pw_bluetooth_proxy
53    pw_bluetooth.emboss_hci_test
54    pw_span
55  GROUPS
56    modules
57)
58
59pw_add_test(pw_bluetooth_proxy.pw_bluetooth_proxy_test
60  SOURCES
61    emboss_util.h
62    proxy_host_test.cc
63  PRIVATE_DEPS
64    pw_bluetooth_proxy
65    pw_third_party.fuchsia.stdcompat
66    pw_bluetooth.emboss_hci_commands
67    pw_bluetooth.emboss_hci_common
68    pw_bluetooth.emboss_hci_events
69    pw_bluetooth.emboss_hci_h4
70  GROUPS
71    modules
72)
73