Commit 23712842 authored by Daniel Leung's avatar Daniel Leung Committed by Christopher Friedt
Browse files

bluetooth: audio: build as static library



Make subsys/bluetooth/audio build as a static library.
This is in preparation to enable building the bluetooth
drivers as a static library. That would change the line
"zephyr_include_directories(subsys/bluetooth)" where
this include path is applied to all code compiled.
Its removal will result in subsys/bluetooth/audio not
able to find subsys/bluetooth/common/log.h. So change
subsys/bluetooth/audio to be built as a static library
so it can link to the subsys/bluetooth library where
it can find "log.h" there.

Signed-off-by: default avatarDaniel Leung <daniel.leung@intel.com>
parent 579ca90e
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: Apache-2.0

zephyr_library()

if (CONFIG_BT_VOCS OR CONFIG_BT_VOCS_CLIENT)
	zephyr_library_sources(vocs.c)
endif()
@@ -19,3 +21,5 @@ if (CONFIG_BT_MICS OR CONFIG_BT_MICS_CLIENT)
	zephyr_library_sources(mics.c)
endif()
zephyr_library_sources_ifdef(CONFIG_BT_MICS_CLIENT mics_client.c)

zephyr_library_link_libraries(subsys__bluetooth)