Release v1.10.22 (#1267)
This commit is contained in:
@@ -316,44 +316,42 @@ const
|
||||
- https://downloads.freepascal.org/fpc/docs-pdf/CinFreePascal.pdf
|
||||
}
|
||||
|
||||
{$IFDEF WINDOWS}
|
||||
{$if defined(WINDOWS)}
|
||||
{ For windows, we always use dynamic link. See
|
||||
https://forum.lazarus.freepascal.org/index.php/topic,15712.msg84781.html#msg84781
|
||||
We need to rebuild the static lib for windows using Mingw or cygwin
|
||||
}
|
||||
SherpaOnnxLibName = 'sherpa-onnx-c-api.dll';
|
||||
{$ELSE}
|
||||
{$IFNDEF SHERPA_ONNX_USE_SHARED_LIBS}
|
||||
{static link for linux and macos}
|
||||
{$linklib sherpa-onnx-c-api}
|
||||
{$linklib sherpa-onnx-core}
|
||||
{$linklib kaldi-decoder-core}
|
||||
{$linklib sherpa-onnx-kaldifst-core}
|
||||
{$linklib sherpa-onnx-fstfar}
|
||||
{$linklib sherpa-onnx-fst}
|
||||
{$linklib kaldi-native-fbank-core}
|
||||
{$linklib piper_phonemize}
|
||||
{$linklib espeak-ng}
|
||||
{$linklib ucd}
|
||||
{$linklib onnxruntime}
|
||||
{$linklib ssentencepiece_core}
|
||||
{$elseif not defined(SHERPA_ONNX_USE_SHARED_LIBS)}
|
||||
{static link for linux and macos}
|
||||
{$linklib sherpa-onnx-c-api}
|
||||
{$linklib sherpa-onnx-core}
|
||||
{$linklib kaldi-decoder-core}
|
||||
{$linklib sherpa-onnx-kaldifst-core}
|
||||
{$linklib sherpa-onnx-fstfar}
|
||||
{$linklib sherpa-onnx-fst}
|
||||
{$linklib kaldi-native-fbank-core}
|
||||
{$linklib piper_phonemize}
|
||||
{$linklib espeak-ng}
|
||||
{$linklib ucd}
|
||||
{$linklib onnxruntime}
|
||||
{$linklib ssentencepiece_core}
|
||||
|
||||
{$IFDEF LINUX}
|
||||
{$linklib m}
|
||||
{$LINKLIB stdc++}
|
||||
{$LINKLIB gcc_s}
|
||||
{$ENDIF}
|
||||
{$ifdef LINUX}
|
||||
{$linklib m}
|
||||
{$LINKLIB stdc++}
|
||||
{$LINKLIB gcc_s}
|
||||
{$endif}
|
||||
|
||||
{$IFDEF DARWIN}
|
||||
{$linklib c++}
|
||||
{$ENDIF}
|
||||
SherpaOnnxLibName = '';
|
||||
{$ELSE}
|
||||
{dynamic link for linux and macos}
|
||||
SherpaOnnxLibName = 'sherpa-onnx-c-api';
|
||||
{$linklib sherpa-onnx-c-api}
|
||||
{$ENDIF}
|
||||
{$ENDIF}
|
||||
{$ifdef DARWIN}
|
||||
{$linklib c++}
|
||||
{$endif}
|
||||
SherpaOnnxLibName = '';
|
||||
{$else}
|
||||
{dynamic link for linux and macos}
|
||||
SherpaOnnxLibName = 'sherpa-onnx-c-api';
|
||||
{$linklib sherpa-onnx-c-api}
|
||||
{$endif}
|
||||
|
||||
type
|
||||
SherpaOnnxWave = record
|
||||
|
||||
Reference in New Issue
Block a user