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: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
parent
579ca90e25
commit
23712842d1
1 changed files with 4 additions and 0 deletions
|
@ -1,5 +1,7 @@
|
|||
# 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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue