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:
4
.github/workflows/run-python-test-macos.yaml
vendored
4
.github/workflows/run-python-test-macos.yaml
vendored
@@ -78,7 +78,7 @@ jobs:
|
||||
- name: Install Python dependencies
|
||||
shell: bash
|
||||
run: |
|
||||
python3 -m pip install --upgrade pip numpy pypinyin sentencepiece>=0.1.96 soundfile
|
||||
python3 -m pip install --upgrade pip numpy pypinyin sentencepiece>=0.1.96 soundfile setuptools wheel
|
||||
|
||||
- name: Install sherpa-onnx
|
||||
shell: bash
|
||||
@@ -87,7 +87,7 @@ jobs:
|
||||
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
|
||||
cmake --version
|
||||
|
||||
python3 setup.py install
|
||||
python3 -m pip install .
|
||||
|
||||
- name: Test sherpa-onnx
|
||||
shell: bash
|
||||
|
||||
Reference in New Issue
Block a user