Fix bluetooth audio compilation issue when BT_AUDIO is enabled but no Bluetooth host services has been enabled. This leads to an empty library file. Instead of creating a new library for audio add the sources to the parent library, similar to how bluetooth services are added. Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
7 lines
190 B
CMake
7 lines
190 B
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
if (CONFIG_BT_VOCS OR CONFIG_BT_VOCS_CLIENT)
|
|
zephyr_library_sources(vocs.c)
|
|
endif()
|
|
zephyr_library_sources_ifdef(CONFIG_BT_VOCS_CLIENT vocs_client.c)
|