Skip to content

Commit f197170

Browse files
committed
Enable NDK-only builds for Android
1 parent 13740f9 commit f197170

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎CMakeLists.txt‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,11 @@ endif()
457457
# | JNI |
458458
# ------------------------------------------------------------------------------
459459

460-
if(ZTS_ENABLE_JAVA OR BUILD_ANDROID)
460+
if(BUILD_ANDROID)
461+
option(ZTS_NDK_ONLY "Use C API callbacks on Android" FALSE)
462+
endif()
463+
464+
if(ZTS_ENABLE_JAVA OR (BUILD_ANDROID AND NOT ZTS_NDK_ONLY))
461465
message(STATUS "Looking for JNI")
462466

463467
if(BUILD_WIN)

0 commit comments

Comments
 (0)