-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
22 lines (19 loc) · 1.21 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
idf_component_register(
INCLUDE_DIRS "detail/nearby/embedded/client/source" "detail/nearby/embedded/common/source" "detail/nearby/embedded/common/target" "include"
SRC_DIRS "detail/nearby/embedded/client/source" "detail/nearby/embedded/common/source" "detail/nearby/embedded/common/source/mbedtls" "src"
REQUIRES "esp_hw_support" "esp-nimble-cpp" "mbedtls" "nvs_flash" "logger" "task" "timer" "base_component"
)
# log levels are VERBOSE=1, DEBUG, INFO, WARN, ERROR, OFF=6
add_definitions(-DNEARBY_TRACE_LEVEL=CONFIG_GFPS_TRACE_LEVEL)
add_definitions(-DNEARBY_PLATFORM_USE_MBEDTLS=1)
add_definitions(-DNEARBY_FP_ENABLE_BATTERY_NOTIFICATION=0)
add_definitions(-DNEARBY_FP_ENABLE_ADDITIONAL_DATA=0)
add_definitions(-DNEARBY_FP_MESSAGE_STREAM=0)
# add_definitions(-DNEARBY_PLATFORM_HAS_SE)
# add_definitions(-DNEARBY_FP_HAVE_BLE_ADDRESS_ROTATION=0)
# add_definitions(-DNEARBY_FP_ENABLE_SASS=0) # smart audio source switching
add_definitions(-DNEARBY_FP_RETROACTIVE_PAIRING=1) # not sure what this is...
add_definitions(-DNEARBY_FP_BLE_ONLY=1)
add_definitions(-DNEARBY_FP_PREFER_BLE_BONDING=1)
add_definitions(-DNEARBY_FP_PREFER_LE_TRANSPORT=1)
target_compile_options(${COMPONENT_LIB} PRIVATE -Wno-type-limits -Wno-write-strings)