From d915dac1166c98d0d21a4bb77f6f09c7fe771348 Mon Sep 17 00:00:00 2001 From: Andrey Parfenov Date: Mon, 23 Dec 2024 03:45:42 +0100 Subject: [PATCH] use static simpleble on android Signed-off-by: Andrey Parfenov --- src/board_controller/build.cmake | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/board_controller/build.cmake b/src/board_controller/build.cmake index bca756bf5..74755aa63 100644 --- a/src/board_controller/build.cmake +++ b/src/board_controller/build.cmake @@ -111,11 +111,10 @@ add_library ( ${BOARD_CONTROLLER_SRC} ) -#it was an attemp to use simpleble on android via ndk, cannot make it work -#if (ANDROID AND BUILD_BLE) -# target_compile_definitions (${BOARD_CONTROLLER_NAME} PRIVATE STATIC_SIMPLEBLE) -# target_link_libraries (${BOARD_CONTROLLER_NAME} PRIVATE simpleble-c) -#endif (ANDROID AND BUILD_BLE) +if (ANDROID AND BUILD_BLE) + target_compile_definitions (${BOARD_CONTROLLER_NAME} PRIVATE STATIC_SIMPLEBLE) + target_link_libraries (${BOARD_CONTROLLER_NAME} PRIVATE simpleble-c) +endif (ANDROID AND BUILD_BLE) target_include_directories ( ${BOARD_CONTROLLER_NAME} PRIVATE