1# SPDX-License-Identifier: Apache-2.0
2
3add_subdirectory_ifdef(CONFIG_BT_SHELL shell)
4
5zephyr_library()
6
7zephyr_library_sources(audio.c)
8
9if (CONFIG_BT_VOCS OR CONFIG_BT_VOCS_CLIENT)
10	zephyr_library_sources(vocs.c)
11endif()
12zephyr_library_sources_ifdef(CONFIG_BT_VOCS_CLIENT vocs_client.c)
13
14if (CONFIG_BT_AICS OR CONFIG_BT_AICS_CLIENT)
15	zephyr_library_sources(aics.c)
16endif()
17zephyr_library_sources_ifdef(CONFIG_BT_AICS_CLIENT aics_client.c)
18
19zephyr_library_sources_ifdef(CONFIG_BT_VCP_VOL_REND vcp_vol_rend.c)
20zephyr_library_sources_ifdef(CONFIG_BT_VCP_VOL_CTLR vcp_vol_ctlr.c)
21
22if (CONFIG_BT_MICP_MIC_DEV)
23	zephyr_library_sources(micp_mic_dev.c)
24endif()
25zephyr_library_sources_ifdef(CONFIG_BT_MICP_MIC_CTLR micp_mic_ctlr.c)
26
27# When CONFIG_BT_AUDIO and CONFIG_BT_CONN is enabled we pull in ccid. It is based on CONFIG_BT_CONN
28# as CCID depends on GATT, and GATT is enabled when CONFIG_BT_CONN=y.
29zephyr_library_sources_ifdef(CONFIG_BT_CONN ccid.c)
30
31zephyr_library_link_libraries(subsys__bluetooth)
32
33zephyr_library_sources_ifdef(CONFIG_BT_CSIP_SET_MEMBER csip_set_member.c)
34zephyr_library_sources_ifdef(CONFIG_BT_CSIP_SET_COORDINATOR csip_set_coordinator.c)
35if (CONFIG_BT_CSIP_SET_MEMBER OR CONFIG_BT_CSIP_SET_COORDINATOR)
36	zephyr_library_sources(csip_crypto.c)
37endif()
38
39zephyr_library_sources_ifdef(CONFIG_BT_TBS tbs.c)
40
41zephyr_library_sources_ifdef(CONFIG_BT_TBS_CLIENT tbs_client.c)
42
43zephyr_library_sources_ifdef(CONFIG_BT_MCC mcc.c)
44
45zephyr_library_sources_ifdef(CONFIG_BT_MCS mcs.c)
46
47zephyr_library_sources_ifdef(CONFIG_BT_MPL mpl.c)
48
49zephyr_library_sources_ifdef(CONFIG_MCTL media_proxy.c)
50
51zephyr_library_sources_ifdef(CONFIG_BT_ASCS ascs.c)
52zephyr_library_sources_ifdef(CONFIG_BT_PACS pacs.c)
53zephyr_library_sources_ifdef(CONFIG_BT_BAP_STREAM bap_stream.c codec.c bap_iso.c)
54zephyr_library_sources_ifdef(CONFIG_BT_BAP_BASE bap_base.c)
55zephyr_library_sources_ifdef(CONFIG_BT_BAP_UNICAST_SERVER bap_unicast_server.c)
56zephyr_library_sources_ifdef(CONFIG_BT_BAP_UNICAST_CLIENT bap_unicast_client.c)
57zephyr_library_sources_ifdef(CONFIG_BT_BAP_BROADCAST_SOURCE bap_broadcast_source.c)
58zephyr_library_sources_ifdef(CONFIG_BT_BAP_BROADCAST_SINK bap_broadcast_sink.c)
59zephyr_library_sources_ifdef(CONFIG_BT_BAP_SCAN_DELEGATOR bap_scan_delegator.c)
60zephyr_library_sources_ifdef(CONFIG_BT_BAP_BROADCAST_ASSISTANT bap_broadcast_assistant.c)
61zephyr_library_sources_ifdef(CONFIG_BT_HAS has.c)
62zephyr_library_sources_ifdef(CONFIG_BT_HAS_CLIENT has_client.c)
63zephyr_library_sources_ifdef(CONFIG_BT_CAP cap_stream.c)
64zephyr_library_sources_ifdef(CONFIG_BT_CAP_ACCEPTOR cap_acceptor.c)
65zephyr_library_sources_ifdef(CONFIG_BT_CAP_INITIATOR cap_initiator.c)
66zephyr_library_sources_ifdef(CONFIG_BT_CAP_COMMANDER cap_commander.c)
67if (CONFIG_BT_CAP_INITIATOR_UNICAST OR CONFIG_BT_CAP_COMMANDER)
68	zephyr_library_sources(cap_common.c)
69endif()
70zephyr_library_sources_ifdef(CONFIG_BT_TMAP tmap.c)
71zephyr_library_sources_ifdef(CONFIG_BT_GMAP gmap_client.c gmap_server.c)
72zephyr_library_sources_ifdef(CONFIG_BT_PBP pbp.c)
73