Support linking onnxruntime statically for Android (#1619)

This commit is contained in:
Fangjun Kuang
2024-12-14 09:53:44 +08:00
committed by GitHub
parent efb505f578
commit e639c70d78
7 changed files with 479 additions and 46 deletions

View File

@@ -39,7 +39,7 @@ if(SHERPA_ONNX_ENABLE_SPEAKER_DIARIZATION)
)
endif()
add_library(sherpa-onnx-jni ${sources})
add_library(sherpa-onnx-jni SHARED ${sources})
target_compile_definitions(sherpa-onnx-jni PRIVATE SHERPA_ONNX_BUILD_SHARED_LIBS=1)
target_compile_definitions(sherpa-onnx-jni PRIVATE SHERPA_ONNX_BUILD_MAIN_LIB=1)