Enable NDK-only builds for Android

This commit is contained in:
staphen
2022-01-04 22:58:46 -05:00
parent 13740f9767
commit f197170b2f

View File

@@ -457,7 +457,11 @@ endif()
# | JNI |
# ------------------------------------------------------------------------------
if(ZTS_ENABLE_JAVA OR BUILD_ANDROID)
if(BUILD_ANDROID)
option(ZTS_NDK_ONLY "Use C API callbacks on Android" FALSE)
endif()
if(ZTS_ENABLE_JAVA OR (BUILD_ANDROID AND NOT ZTS_NDK_ONLY))
message(STATUS "Looking for JNI")
if(BUILD_WIN)