2019-04-06 15:08:09 +02:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2021-08-10 14:44:56 +02:00
|
|
|
cmake_minimum_required(VERSION 3.20.0)
|
2017-10-27 15:43:34 +02:00
|
|
|
|
2017-11-08 17:35:14 +01:00
|
|
|
LIST(APPEND QEMU_EXTRA_FLAGS -serial unix:/tmp/bt-stack-tester)
|
|
|
|
|
2020-05-29 02:58:50 +02:00
|
|
|
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
2018-10-25 16:54:09 +02:00
|
|
|
project(tester)
|
2017-10-27 15:43:34 +02:00
|
|
|
|
2020-02-12 15:00:46 +01:00
|
|
|
zephyr_library_include_directories(${ZEPHYR_BASE}/samples/bluetooth)
|
2020-12-15 20:19:02 +01:00
|
|
|
zephyr_library_include_directories(${ZEPHYR_BASE}/subsys/bluetooth/mesh)
|
2022-12-19 22:06:12 +01:00
|
|
|
zephyr_library_include_directories(${ZEPHYR_BASE}/subsys/bluetooth/audio)
|
2021-07-09 13:28:15 +02:00
|
|
|
zephyr_library_include_directories(${ZEPHYR_BASE}/subsys/bluetooth/host)
|
2017-10-27 15:43:34 +02:00
|
|
|
target_sources(app PRIVATE
|
|
|
|
src/main.c
|
2022-11-15 12:38:31 +01:00
|
|
|
src/btp.c
|
2023-02-08 15:34:45 +01:00
|
|
|
src/btp_core.c
|
2022-11-15 12:38:31 +01:00
|
|
|
src/btp_gap.c
|
|
|
|
src/btp_gatt.c
|
2017-10-27 15:43:34 +02:00
|
|
|
)
|
|
|
|
if(CONFIG_BT_L2CAP_DYNAMIC_CHANNEL)
|
2022-11-15 12:38:31 +01:00
|
|
|
target_sources(app PRIVATE src/btp_l2cap.c)
|
2017-10-27 15:43:34 +02:00
|
|
|
endif()
|
2017-12-11 14:04:44 +01:00
|
|
|
|
|
|
|
if(CONFIG_BT_MESH)
|
2022-11-15 12:38:31 +01:00
|
|
|
target_sources(app PRIVATE src/btp_mesh.c)
|
2017-12-11 14:04:44 +01:00
|
|
|
endif()
|
2022-12-19 22:06:12 +01:00
|
|
|
|
|
|
|
target_sources_ifdef(CONFIG_BT_VCP_VOL_REND app PRIVATE src/btp_vcp.c)
|
|
|
|
|
|
|
|
if(CONFIG_BT_IAS OR CONFIG_BT_IAS_CLIENT)
|
|
|
|
target_sources(app PRIVATE src/btp_ias.c)
|
|
|
|
endif()
|
2023-02-08 10:52:19 +01:00
|
|
|
|
2023-11-28 08:44:30 +01:00
|
|
|
if(CONFIG_BT_BAP_UNICAST OR BT_BAP_BROADCAST_SOURCE OR BT_BAP_BROADCAST_SINK)
|
|
|
|
target_sources(app PRIVATE
|
|
|
|
src/btp_bap_audio_stream.c
|
|
|
|
src/btp_bap.c
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2023-02-08 15:02:23 +01:00
|
|
|
if(CONFIG_BT_BAP_UNICAST)
|
2023-11-28 08:44:30 +01:00
|
|
|
target_sources(app PRIVATE src/btp_bap_unicast.c)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(CONFIG_BT_BAP_BROADCAST_SOURCE OR CONFIG_BT_BAP_BROADCAST_SOURCE)
|
|
|
|
target_sources(app PRIVATE src/btp_bap_broadcast.c)
|
2023-02-08 10:52:19 +01:00
|
|
|
endif()
|
2023-05-25 10:57:48 +02:00
|
|
|
|
|
|
|
if(CONFIG_BT_HAS)
|
|
|
|
target_sources(app PRIVATE src/btp_has.c)
|
|
|
|
endif()
|
2023-05-26 15:27:11 +02:00
|
|
|
|
|
|
|
if (CONFIG_BT_CSIP_SET_MEMBER)
|
|
|
|
target_sources(app PRIVATE src/btp_csis.c)
|
|
|
|
endif()
|
2023-08-18 23:32:02 +02:00
|
|
|
|
2023-11-28 08:44:30 +01:00
|
|
|
if (CONFIG_BT_CSIP_SET_COORDINATOR)
|
|
|
|
target_sources(app PRIVATE src/btp_csip.c)
|
|
|
|
endif()
|
|
|
|
|
2023-08-18 23:32:02 +02:00
|
|
|
if(CONFIG_BT_MICP_MIC_DEV)
|
|
|
|
target_sources(app PRIVATE src/btp_micp.c)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(CONFIG_BT_AICS)
|
|
|
|
target_sources(app PRIVATE src/btp_aics.c)
|
|
|
|
endif()
|
2023-08-18 09:23:22 +02:00
|
|
|
|
|
|
|
if (CONFIG_BT_TBS_CLIENT)
|
|
|
|
target_sources(app PRIVATE src/btp_ccp.c)
|
|
|
|
endif()
|
2023-09-18 09:18:01 +02:00
|
|
|
|
|
|
|
if (CONFIG_BT_CAP_ACCEPTOR)
|
|
|
|
target_sources(app PRIVATE src/btp_cas.c)
|
|
|
|
endif()
|
2023-09-28 13:25:34 +02:00
|
|
|
|
2023-10-17 10:18:30 +02:00
|
|
|
if(CONFIG_BT_MCC OR CONFIG_BT_MCS)
|
2023-09-28 13:25:34 +02:00
|
|
|
target_sources(app PRIVATE src/btp_mcp.c)
|
|
|
|
endif()
|
2023-12-14 15:21:10 +01:00
|
|
|
|
|
|
|
if(CONFIG_BT_HAS)
|
|
|
|
target_sources(app PRIVATE src/btp_hap.c)
|
|
|
|
endif()
|
2023-11-28 08:44:30 +01:00
|
|
|
|
|
|
|
if(CONFIG_BT_CAP_INITIATOR)
|
|
|
|
target_sources(app PRIVATE src/btp_cap.c)
|
|
|
|
endif()
|
2024-01-09 14:22:27 +01:00
|
|
|
|
|
|
|
if(CONFIG_BT_TBS OR CONFIG_BT_GTBS)
|
|
|
|
target_sources(app PRIVATE src/btp_ccp.c)
|
|
|
|
endif()
|
2024-02-05 10:07:35 +01:00
|
|
|
|
|
|
|
if(CONFIG_BT_TMAP)
|
|
|
|
target_sources(app PRIVATE src/btp_tmap.c)
|
|
|
|
endif()
|