Build sherpa-onnx as a single shared library (#1078)
When `-D BUILD_SHARED_LIBS=ON` is passed to `cmake`, it builds a single shared library. Specifically, - For C APIs, it builds `libsherpa-onnx-c-api.so` - For Python APIs, it builds `_sherpa_onnx.cpython-xx-xx.so` - For Kotlin and Java APIs, it builds `libsherpa-onnx-jni.so` There is no `libsherpa-onnx-core.so` any longer. Note it affects only shared libraries.
This commit is contained in:
@@ -67,15 +67,6 @@ target_link_libraries(${PROJECT_NAME} ${CMAKE_JS_LIB})
|
||||
|
||||
target_link_libraries(${PROJECT_NAME}
|
||||
sherpa-onnx-c-api
|
||||
sherpa-onnx-core
|
||||
kaldi-decoder-core
|
||||
sherpa-onnx-kaldifst-core
|
||||
sherpa-onnx-fstfar
|
||||
sherpa-onnx-fst
|
||||
kaldi-native-fbank-core
|
||||
piper_phonemize
|
||||
espeak-ng
|
||||
ucd
|
||||
onnxruntime
|
||||
-Wl,-rpath,$ENV{SHERPA_ONNX_INSTALL_DIR}/lib
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user