Bluetooth: audio: Fix compilation issue with BT_AUDIO

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>
This commit is contained in:
Joakim Andersson 2021-03-23 22:26:45 +01:00 committed by Kumar Gala
commit a9b4cae019

View file

@ -1,8 +1,5 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
zephyr_library()
zephyr_library_link_libraries(subsys__bluetooth)
if (CONFIG_BT_VOCS OR CONFIG_BT_VOCS_CLIENT) if (CONFIG_BT_VOCS OR CONFIG_BT_VOCS_CLIENT)
zephyr_library_sources(vocs.c) zephyr_library_sources(vocs.c)
endif() endif()