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
2023-08-01 13:45:02 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2023-08-01 13:45:02 +0800
Commit
c88e672733efe4ec6b345d4cdc6c9d65c07495a8
c88e6727
1 parent
5a549615
Fix building wheels on Windows (#229)
显示空白字符变更
内嵌
并排对比
正在显示
4 个修改的文件
包含
23 行增加
和
2 行删除
CMakeLists.txt
cmake/cmake_extension.py
mfc-examples/StreamingSpeechRecognition/StreamingSpeechRecognition.vcxproj
setup.py
CMakeLists.txt
查看文件 @
c88e672
cmake_minimum_required
(
VERSION 3.13 FATAL_ERROR
)
project
(
sherpa-onnx
)
set
(
SHERPA_ONNX_VERSION
"1.5.
4
"
)
set
(
SHERPA_ONNX_VERSION
"1.5.
5
"
)
# Disable warning about
#
...
...
cmake/cmake_extension.py
查看文件 @
c88e672
...
...
@@ -137,9 +137,23 @@ class BuildExtension(build_ext):
binaries
+=
[
"sherpa-onnx-offline-websocket-server"
]
binaries
+=
[
"sherpa-onnx-online-websocket-client"
]
if
is_windows
():
binaries
+=
[
"kaldi-native-fbank-core.dll"
]
binaries
+=
[
"sherpa-onnx-c-api.dll"
]
binaries
+=
[
"sherpa-onnx-core.dll"
]
binaries
+=
[
"sherpa-onnx-portaudio.dll"
]
binaries
+=
[
"onnxruntime.dll"
]
for
f
in
binaries
:
suffix
=
""
if
"dll"
in
f
else
suffix
src_file
=
install_dir
/
"bin"
/
(
f
+
suffix
)
if
not
src_file
.
is_file
():
src_file
=
install_dir
/
"lib"
/
(
f
+
suffix
)
if
not
src_file
.
is_file
():
src_file
=
install_dir
/
".."
/
(
f
+
suffix
)
print
(
f
"Copying {src_file} to {out_bin_dir}/"
)
shutil
.
copy
(
f
"{src_file}"
,
f
"{out_bin_dir}/"
)
shutil
.
rmtree
(
f
"{install_dir}/bin"
)
if
is_windows
():
shutil
.
rmtree
(
f
"{install_dir}/lib"
)
...
...
mfc-examples/StreamingSpeechRecognition/StreamingSpeechRecognition.vcxproj
查看文件 @
c88e672
...
...
@@ -36,7 +36,7 @@
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='Release|Win32'"
Label=
"Configuration"
>
<ConfigurationType>
Application
</ConfigurationType>
<UseDebugLibraries>
false
</UseDebugLibraries>
<PlatformToolset>
v14
2
</PlatformToolset>
<PlatformToolset>
v14
3
</PlatformToolset>
<WholeProgramOptimization>
true
</WholeProgramOptimization>
<CharacterSet>
Unicode
</CharacterSet>
<UseOfMfc>
Static
</UseOfMfc>
...
...
setup.py
查看文件 @
c88e672
...
...
@@ -54,9 +54,16 @@ def get_binaries_to_install():
binaries
+=
[
"sherpa-onnx-online-websocket-server"
]
binaries
+=
[
"sherpa-onnx-offline-websocket-server"
]
binaries
+=
[
"sherpa-onnx-online-websocket-client"
]
if
is_windows
():
binaries
+=
[
"kaldi-native-fbank-core.dll"
]
binaries
+=
[
"sherpa-onnx-c-api.dll"
]
binaries
+=
[
"sherpa-onnx-core.dll"
]
binaries
+=
[
"sherpa-onnx-portaudio.dll"
]
binaries
+=
[
"onnxruntime.dll"
]
exe
=
[]
for
f
in
binaries
:
suffix
=
""
if
"dll"
in
f
else
suffix
t
=
bin_dir
/
(
f
+
suffix
)
exe
.
append
(
str
(
t
))
return
exe
...
...
请
注册
或
登录
后发表评论