This repository has been archived on 2025-08-26. You can view files and clone it, but cannot push or open issues or pull requests.
Files
enginex-mr_series-sherpa-onnx/scripts/node-addon-api/run.sh
2024-05-13 11:58:25 +08:00

16 lines
384 B
Bash
Executable File

#!/usr/bin/env bash
set -ex
if [[ ! -f ../../build/install/lib/libsherpa-onnx-core.dylib && ! -f ../../build/install/lib/libsherpa-onnx-core.so ]]; then
pushd ../../
mkdir -p build
cd build
cmake -DCMAKE_INSTALL_PREFIX=./install -DBUILD_SHARED_LIBS=ON ..
make install
popd
fi
export SHERPA_ONNX_INSTALL_DIR=$PWD/../../build/install
./node_modules/.bin/cmake-js compile