Skip to content

Commit

Permalink
tests: Bluetooth: Move audio related BTP files
Browse files Browse the repository at this point in the history
Move the audio related files to a new subdirectory called
audio.

The purpose of this is to clean up the file structure a bit,
and also allow for better filtering of the files.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
  • Loading branch information
Thalley authored and dleach02 committed Jun 8, 2024
1 parent 79c93dd commit 8136f74
Show file tree
Hide file tree
Showing 42 changed files with 73 additions and 66 deletions.
1 change: 1 addition & 0 deletions MAINTAINERS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,7 @@ Bluetooth Audio:
- tests/bsim/bluetooth/audio_samples/
- tests/bluetooth/shell/audio.conf
- tests/bluetooth/tester/overlay-le-audio.conf
- tests/bluetooth/tester/src/audio/
- doc/connectivity/bluetooth/api/audio/
- samples/bluetooth/bap*/
- samples/bluetooth/hap*/
Expand Down
69 changes: 3 additions & 66 deletions tests/bluetooth/tester/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ project(tester)

zephyr_library_include_directories(${ZEPHYR_BASE}/samples/bluetooth)
zephyr_library_include_directories(${ZEPHYR_BASE}/subsys/bluetooth/mesh)
zephyr_library_include_directories(${ZEPHYR_BASE}/subsys/bluetooth/audio)
zephyr_library_include_directories(${ZEPHYR_BASE}/subsys/bluetooth/host)
target_sources(app PRIVATE
src/main.c
Expand All @@ -26,75 +25,13 @@ if(CONFIG_BT_MESH)
target_sources(app PRIVATE src/btp_mesh.c)
endif()

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()

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()

if(CONFIG_BT_BAP_UNICAST)
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)
endif()

if(CONFIG_BT_HAS)
target_sources(app PRIVATE src/btp_has.c)
endif()

if (CONFIG_BT_CSIP_SET_MEMBER)
target_sources(app PRIVATE src/btp_csis.c)
endif()

if (CONFIG_BT_CSIP_SET_COORDINATOR)
target_sources(app PRIVATE src/btp_csip.c)
endif()

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()

if (CONFIG_BT_TBS_CLIENT)
target_sources(app PRIVATE src/btp_ccp.c)
endif()

if (CONFIG_BT_CAP_ACCEPTOR)
target_sources(app PRIVATE src/btp_cas.c)
endif()

if(CONFIG_BT_MCC OR CONFIG_BT_MCS)
target_sources(app PRIVATE src/btp_mcp.c)
endif()

if(CONFIG_BT_HAS)
target_sources(app PRIVATE src/btp_hap.c)
endif()

if(CONFIG_BT_CAP_INITIATOR)
target_sources(app PRIVATE src/btp_cap.c)
endif()

if(CONFIG_BT_TBS OR CONFIG_BT_GTBS)
target_sources(app PRIVATE src/btp_ccp.c)
endif()

if(CONFIG_BT_TMAP)
target_sources(app PRIVATE src/btp_tmap.c)
endif()

if(CONFIG_BT_OTS)
target_sources(app PRIVATE src/btp_ots.c)
endif()

zephyr_library_include_directories(src src/btp src/audio/btp)
add_subdirectory_ifdef(CONFIG_BT_AUDIO src/audio)
69 changes: 69 additions & 0 deletions tests/bluetooth/tester/src/audio/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# SPDX-License-Identifier: Apache-2.0

cmake_minimum_required(VERSION 3.20.0)

zephyr_library_include_directories(${ZEPHYR_BASE}/subsys/bluetooth/audio)

if(CONFIG_BT_VCP_VOL_REND)
target_sources(app PRIVATE btp_vcp.c)
endif()

if(CONFIG_BT_BAP_UNICAST OR BT_BAP_BROADCAST_SOURCE OR BT_BAP_BROADCAST_SINK)
target_sources(app PRIVATE btp_bap_audio_stream.c btp_bap.c )
endif()

if(CONFIG_BT_BAP_UNICAST)
target_sources(app PRIVATE btp_bap_unicast.c)
endif()

if(CONFIG_BT_BAP_BROADCAST_SOURCE OR CONFIG_BT_BAP_BROADCAST_SOURCE)
target_sources(app PRIVATE btp_bap_broadcast.c)
endif()

if(CONFIG_BT_HAS)
target_sources(app PRIVATE btp_has.c)
endif()

if (CONFIG_BT_CSIP_SET_MEMBER)
target_sources(app PRIVATE btp_csis.c)
endif()

if (CONFIG_BT_CSIP_SET_COORDINATOR)
target_sources(app PRIVATE btp_csip.c)
endif()

if(CONFIG_BT_MICP_MIC_DEV)
target_sources(app PRIVATE btp_micp.c)
endif()

if(CONFIG_BT_AICS)
target_sources(app PRIVATE btp_aics.c)
endif()

if (CONFIG_BT_TBS_CLIENT)
target_sources(app PRIVATE btp_ccp.c)
endif()

if (CONFIG_BT_CAP_ACCEPTOR)
target_sources(app PRIVATE btp_cas.c)
endif()

if(CONFIG_BT_MCC OR CONFIG_BT_MCS)
target_sources(app PRIVATE btp_mcp.c)
endif()

if(CONFIG_BT_HAS)
target_sources(app PRIVATE btp_hap.c)
endif()

if(CONFIG_BT_CAP_INITIATOR)
target_sources(app PRIVATE btp_cap.c)
endif()

if(CONFIG_BT_TBS OR CONFIG_BT_GTBS)
target_sources(app PRIVATE btp_ccp.c)
endif()

if(CONFIG_BT_TMAP)
target_sources(app PRIVATE btp_tmap.c)
endif()
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 8136f74

Please sign in to comment.