Skip to content

Commit d915dac

Browse files
committed
use static simpleble on android
Signed-off-by: Andrey Parfenov <[email protected]>
1 parent 896172f commit d915dac

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/board_controller/build.cmake

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,10 @@ add_library (
111111
${BOARD_CONTROLLER_SRC}
112112
)
113113

114-
#it was an attemp to use simpleble on android via ndk, cannot make it work
115-
#if (ANDROID AND BUILD_BLE)
116-
# target_compile_definitions (${BOARD_CONTROLLER_NAME} PRIVATE STATIC_SIMPLEBLE)
117-
# target_link_libraries (${BOARD_CONTROLLER_NAME} PRIVATE simpleble-c)
118-
#endif (ANDROID AND BUILD_BLE)
114+
if (ANDROID AND BUILD_BLE)
115+
target_compile_definitions (${BOARD_CONTROLLER_NAME} PRIVATE STATIC_SIMPLEBLE)
116+
target_link_libraries (${BOARD_CONTROLLER_NAME} PRIVATE simpleble-c)
117+
endif (ANDROID AND BUILD_BLE)
119118

120119
target_include_directories (
121120
${BOARD_CONTROLLER_NAME} PRIVATE

0 commit comments

Comments
 (0)