Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
xuning
/
sherpaonnx
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Fangjun Kuang
2024-11-08 21:07:36 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2024-11-08 21:07:36 +0800
Commit
f97daed4080132a2bedbff77cf0919d737d18eaf
f97daed4
1 parent
f94cca71
Fixes #1512 (#1522)
隐藏空白字符变更
内嵌
并排对比
正在显示
3 个修改的文件
包含
15 行增加
和
4 行删除
.github/workflows/build-xcframework.yaml
build-ios-shared.sh
sherpa-onnx/csrc/CMakeLists.txt
.github/workflows/build-xcframework.yaml
查看文件 @
f97daed
...
...
@@ -43,6 +43,13 @@ jobs:
steps
:
-
uses
:
actions/checkout@v4
-
name
:
Build iOS shared
if
:
matrix.with_tts == 'ON'
shell
:
bash
run
:
|
export CMAKE_VERBOSE_MAKEFILE=ON
./build-ios-shared.sh
-
name
:
Build iOS
if
:
matrix.with_tts == 'ON'
shell
:
bash
...
...
build-ios-shared.sh
查看文件 @
f97daed
...
...
@@ -19,6 +19,10 @@ if [ "$SHERPA_ONNX_GITHUB_MIRROW" == true ]; then
SHERPA_ONNX_GITHUB
=
hub.nuaa.cf
fi
if
[
! -z CMAKE_VERBOSE_MAKEFILE
]
;
then
CMAKE_VERBOSE_MAKEFILE
=
ON
fi
if
[
! -f
$onnxruntime_dir
/onnxruntime.xcframework/ios-arm64/onnxruntime.a
]
;
then
mkdir -p
$onnxruntime_dir
pushd
$onnxruntime_dir
...
...
@@ -50,7 +54,7 @@ if [[ ! -f build/simulator_x86_64/install/lib/libsherpa-onnx-c-api.dylib ]]; the
-DBUILD_PIPER_PHONMIZE_TESTS
=
OFF
\
-DBUILD_ESPEAK_NG_EXE
=
OFF
\
-DBUILD_ESPEAK_NG_TESTS
=
OFF
\
-S ..
\
-S ..
-D
CMAKE_VERBOSE_MAKEFILE
=
$CMAKE_VERBOSE_MAKEFILE
\
-DCMAKE_TOOLCHAIN_FILE
=
./toolchains/ios.toolchain.cmake
\
-DPLATFORM
=
SIMULATOR64
\
-DENABLE_BITCODE
=
0
\
...
...
@@ -81,7 +85,7 @@ if [[ ! -f build/simulator_arm64/install/lib/libsherpa-onnx-c-api.dylib ]]; then
-DBUILD_PIPER_PHONMIZE_TESTS
=
OFF
\
-DBUILD_ESPEAK_NG_EXE
=
OFF
\
-DBUILD_ESPEAK_NG_TESTS
=
OFF
\
-S ..
\
-S ..
-D
CMAKE_VERBOSE_MAKEFILE
=
$CMAKE_VERBOSE_MAKEFILE
\
-DCMAKE_TOOLCHAIN_FILE
=
./toolchains/ios.toolchain.cmake
\
-DPLATFORM
=
SIMULATORARM64
\
-DENABLE_BITCODE
=
0
\
...
...
@@ -114,7 +118,7 @@ if [[ ! -f build/os64/install/lib/libsherpa-onnx-c-api.dylib ]]; then
-DBUILD_PIPER_PHONMIZE_TESTS
=
OFF
\
-DBUILD_ESPEAK_NG_EXE
=
OFF
\
-DBUILD_ESPEAK_NG_TESTS
=
OFF
\
-S ..
\
-S ..
-D
CMAKE_VERBOSE_MAKEFILE
=
$CMAKE_VERBOSE_MAKEFILE
\
-DCMAKE_TOOLCHAIN_FILE
=
./toolchains/ios.toolchain.cmake
\
-DPLATFORM
=
OS64
\
-DENABLE_BITCODE
=
0
\
...
...
sherpa-onnx/csrc/CMakeLists.txt
查看文件 @
f97daed
...
...
@@ -214,7 +214,7 @@ if(SHERPA_ONNX_ENABLE_GPU)
)
endif
()
if
(
BUILD_SHARED_LIBS
)
if
(
BUILD_SHARED_LIBS
AND NOT DEFINED onnxruntime_lib_files
)
target_link_libraries
(
sherpa-onnx-core onnxruntime
)
else
()
target_link_libraries
(
sherpa-onnx-core
${
onnxruntime_lib_files
}
)
...
...
请
注册
或
登录
后发表评论