2017-10-27 21:43:34 +08:00
|
|
|
add_library(subsys__bluetooth INTERFACE)
|
|
|
|
|
|
|
|
target_include_directories(subsys__bluetooth INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
|
|
|
|
add_subdirectory(common)
|
|
|
|
add_subdirectory_ifdef(CONFIG_BT_HCI host)
|
|
|
|
add_subdirectory_ifdef(CONFIG_BT_SHELL shell)
|
2018-11-01 23:44:52 +08:00
|
|
|
add_subdirectory_ifdef(CONFIG_BT_CONN services)
|
2017-10-27 21:43:34 +08:00
|
|
|
|
2018-06-26 20:03:34 +08:00
|
|
|
if(CONFIG_BT_CTLR)
|
2018-12-18 12:48:20 +08:00
|
|
|
if(CONFIG_BT_LL_SW OR CONFIG_BT_LL_SW_SPLIT)
|
2018-06-26 20:03:34 +08:00
|
|
|
add_subdirectory(controller)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
2017-10-27 21:43:34 +08:00
|
|
|
target_link_libraries(subsys__bluetooth INTERFACE zephyr_interface)
|