Skip to content

Commit

Permalink
use static simpleble on android
Browse files Browse the repository at this point in the history
Signed-off-by: Andrey Parfenov <[email protected]>
  • Loading branch information
Andrey1994 committed Dec 23, 2024
1 parent 896172f commit d915dac
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/board_controller/build.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d915dac

Please sign in to comment.