1# SPDX-License-Identifier: Apache-2.0
2
3zephyr_library()
4zephyr_library_link_libraries(subsys__bluetooth)
5
6zephyr_library_sources_ifdef(
7  CONFIG_BT_CCP_CALL_CONTROL_SERVER
8  ccp_call_control_server.c
9  )
10zephyr_library_sources_ifdef(
11  CONFIG_BT_CCP_CALL_CONTROL_CLIENT
12  ccp_call_control_client.c
13  )
14zephyr_library_sources_ifdef(
15  CONFIG_BT_VCP_VOL_REND
16  vcp_vol_rend.c
17  )
18zephyr_library_sources_ifdef(
19  CONFIG_BT_VCP_VOL_CTLR
20  vcp_vol_ctlr.c
21  )
22zephyr_library_sources_ifdef(
23  CONFIG_BT_MICP_MIC_DEV
24  micp_mic_dev.c
25  )
26zephyr_library_sources_ifdef(
27  CONFIG_BT_MICP_MIC_CTLR
28  micp_mic_ctlr.c
29  )
30zephyr_library_sources_ifdef(
31  CONFIG_BT_CSIP_SET_MEMBER
32  csip_set_member.c
33  )
34zephyr_library_sources_ifdef(
35  CONFIG_BT_CSIP_SET_COORDINATOR
36  csip_set_coordinator.c
37  )
38zephyr_library_sources_ifdef(
39  CONFIG_BT_TBS
40  tbs.c
41  )
42zephyr_library_sources_ifdef(
43  CONFIG_BT_TBS_CLIENT
44  tbs_client.c
45  )
46zephyr_library_sources_ifdef(
47  CONFIG_BT_MPL
48  mpl.c
49  )
50zephyr_library_sources_ifdef(
51  CONFIG_BT_MCC
52  mcc.c
53  )
54zephyr_library_sources_ifdef(
55  CONFIG_BT_MCS
56  media_controller.c
57  )
58zephyr_library_sources_ifdef(
59  CONFIG_BT_HAS_PRESET_SUPPORT
60  has.c
61  )
62zephyr_library_sources_ifdef(
63  CONFIG_BT_CAP_ACCEPTOR
64  cap_acceptor.c
65  )
66zephyr_library_sources_ifdef(
67  CONFIG_BT_CAP_INITIATOR
68  cap_initiator.c
69  )
70zephyr_library_sources_ifdef(
71  CONFIG_BT_CAP_COMMANDER
72  cap_commander.c
73  )
74zephyr_library_sources_ifdef(
75  CONFIG_BT_HAS_CLIENT
76  has_client.c
77  )
78zephyr_library_sources_ifdef(
79  CONFIG_BT_TMAP
80  tmap.c
81  )
82zephyr_library_sources_ifdef(
83  CONFIG_BT_GMAP
84  gmap.c
85  )
86# We use BT_BAP_STREAM as a common ground for audio, as that is set whenever
87# any audio stream functionality is enabled.
88zephyr_library_sources_ifdef(
89  CONFIG_BT_BAP_STREAM
90  bap.c
91  )
92if (CONFIG_LIBLC3 AND CONFIG_USB_DEVICE_AUDIO)
93	zephyr_library_sources(bap_usb.c)
94endif()
95zephyr_library_sources_ifdef(
96  CONFIG_BT_BAP_SCAN_DELEGATOR
97  bap_scan_delegator.c
98  )
99zephyr_library_sources_ifdef(
100  CONFIG_BT_BAP_BROADCAST_ASSISTANT
101  bap_broadcast_assistant.c
102  )
103zephyr_library_sources_ifdef(
104  CONFIG_BT_PBP
105  pbp.c
106  )
107