Merge pull request #2309 from carlfm01/wpf-build

Add WPF example build
This commit is contained in:
lissyx 2019-08-21 22:24:38 +02:00 committed by GitHub
commit 1ec34190a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 0 deletions

View File

@ -915,6 +915,25 @@ do_deepspeech_netframework_build()
/p:Platform=x64
}
do_deepspeech_netframework_wpf_example_build()
{
cd ${DS_DSDIR}/examples/net_framework
# Setup dependencies
nuget install DeepSpeechWPF/packages.config -OutputDirectory DeepSpeechWPF/packages/
MSBUILD="$(cygpath 'C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe')"
# We need MSYS2_ARG_CONV_EXCL='/' otherwise the '/' of CLI parameters gets mangled and disappears
# Build WPF example
MSYS2_ARG_CONV_EXCL='/' "${MSBUILD}" \
DeepSpeechWPF/DeepSpeech.WPF.csproj \
/p:Configuration=Release \
/p:Platform=x64 \
/p:OutputPath=bin/x64
}
do_nuget_build()
{
PROJECT_NAME=$1

View File

@ -47,6 +47,8 @@ do_deepspeech_nodejs_build "${cuda}"
do_deepspeech_netframework_build
do_deepspeech_netframework_wpf_example_build
do_nuget_build "${PROJECT_NAME}"
shutdown_bazel