mirror of
https://github.com/espressif/esp-idf.git
synced 2026-09-22 13:01:16 +03:00
- Add bt_osal: event queues, mutexes, semaphores, callouts, etc. - Add the shared BLE profile task and event queue - Bring both up and tear them down in the host init/deinit paths - Add unit tests for the OSAL and the profile task Co-authored-by: Cursor <cursoragent@cursor.com>
23 lines
728 B
CMake
23 lines
728 B
CMake
# BLE profiles: host-agnostic profile cores and the shared profile
|
|
# infrastructure they build on (e.g. the shared profile task in common/).
|
|
#
|
|
|
|
set(ble_profiles_srcs "" PARENT_SCOPE)
|
|
set(ble_profiles_include_dirs "" PARENT_SCOPE)
|
|
|
|
if(NOT CONFIG_BT_ENABLED)
|
|
return()
|
|
endif()
|
|
|
|
set(_srcs "")
|
|
# The header is always visible so profiles can include it unconditionally; the
|
|
# implementation is compiled only when the shared task is enabled.
|
|
set(_include_dirs "${CMAKE_CURRENT_LIST_DIR}/common/include")
|
|
|
|
if(CONFIG_BT_PRF_TASK_ENABLED)
|
|
list(APPEND _srcs "${CMAKE_CURRENT_LIST_DIR}/common/src/bt_prf_task.c")
|
|
endif()
|
|
|
|
set(ble_profiles_srcs "${_srcs}" PARENT_SCOPE)
|
|
set(ble_profiles_include_dirs "${_include_dirs}" PARENT_SCOPE)
|