mirror of
https://github.com/Droid-Deck/DroidDeck-Proton.git
synced 2026-11-07 02:36:05 -10:00
build: import kaldi, openfst, vosk-api modules from upstream
This commit is contained in:
1 parent
c89e6b67ee
commit
9c5af86187
5 files changed
+89
-1
No files matched your search
+10
@@ -76,3 +76,13 @@
|
||||
[submodule "glslang"]
|
||||
path = glslang
|
||||
url = https://github.com/KhronosGroup/glslang
|
||||
[submodule "openfst"]
|
||||
path = openfst
|
||||
url = https://github.com/alphacep/openfst
|
||||
[submodule "kaldi"]
|
||||
path = kaldi
|
||||
url = https://github.com/alphacep/kaldi
|
||||
branch = vosk
|
||||
[submodule "vosk-api"]
|
||||
path = vosk-api
|
||||
url = https://github.com/alphacep/vosk-api
|
||||
+76
-1
@@ -509,6 +509,81 @@ $(OBJ)/.steamexe-post-build64:
|
||||
cp $(STEAMEXE_SRC)/64/libsteam_api.so $(DST_LIBDIR64)/
|
||||
touch $@
|
||||
|
||||
##
|
||||
## openfst
|
||||
##
|
||||
|
||||
OPENFST_SOURCE_ARGS = \
|
||||
--include src/include/fst/config.h.in \
|
||||
--exclude aclocal.m4 \
|
||||
--exclude ar-lib \
|
||||
--exclude autom4te.cache \
|
||||
--exclude compile \
|
||||
--exclude config.guess \
|
||||
--exclude config.h.in \
|
||||
--exclude config.sub \
|
||||
--exclude configure \
|
||||
--exclude depcomp \
|
||||
--exclude install-sh \
|
||||
--exclude ltmain.sh \
|
||||
--exclude m4/libtool.m4 \
|
||||
--exclude m4/ltoptions.m4 \
|
||||
--exclude m4/ltsugar.m4 \
|
||||
--exclude m4/ltversion.m4 \
|
||||
--exclude m4/lt~obsolete.m4 \
|
||||
--exclude Makefile.in \
|
||||
--exclude missing \
|
||||
--exclude test-driver \
|
||||
|
||||
OPENFST_CONFIGURE_ARGS = \
|
||||
--enable-silent-rules \
|
||||
--enable-static \
|
||||
--disable-shared \
|
||||
--enable-far \
|
||||
--enable-ngram-fsts \
|
||||
--enable-lookahead-fsts \
|
||||
--with-pic \
|
||||
--disable-bin \
|
||||
|
||||
$(eval $(call rules-source,openfst,$(SRCDIR)/openfst))
|
||||
$(eval $(call rules-autoconf,openfst,32))
|
||||
$(eval $(call rules-autoconf,openfst,64))
|
||||
|
||||
|
||||
##
|
||||
## kaldi
|
||||
##
|
||||
|
||||
KALDI_SOURCE_ARGS = \
|
||||
--exclude src/**/CMakeLists.txt \
|
||||
|
||||
KALDI_CMAKE_ARGS = \
|
||||
-DKALDI_VERSION=5.5-proton \
|
||||
-DBLAS_LIBRARIES=-lblas \
|
||||
-DLAPACK_LIBRARIES=-llapack \
|
||||
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
|
||||
-DBUILD_SHARED_LIBS=OFF \
|
||||
-DKALDI_BUILD_TEST=OFF \
|
||||
-DKALDI_BUILD_EXE=OFF \
|
||||
|
||||
KALDI_DEPENDS = openfst
|
||||
|
||||
$(eval $(call rules-source,kaldi,$(SRCDIR)/kaldi))
|
||||
$(eval $(call rules-cmake,kaldi,32))
|
||||
$(eval $(call rules-cmake,kaldi,64))
|
||||
|
||||
##
|
||||
## vosk
|
||||
##
|
||||
|
||||
VOSK_CMAKE_ARGS = \
|
||||
-DBUILD_SHARED_LIBS=ON \
|
||||
|
||||
VOSK_DEPENDS = openfst kaldi
|
||||
|
||||
$(eval $(call rules-source,vosk,$(SRCDIR)/vosk-api))
|
||||
$(eval $(call rules-cmake,vosk,32))
|
||||
$(eval $(call rules-cmake,vosk,64))
|
||||
|
||||
##
|
||||
## wine
|
||||
@@ -541,7 +616,7 @@ WINE_CONFIGURE_ARGS64 = --enable-win64 \
|
||||
VKD3D_PE_CFLAGS="-I$(VULKAN_HEADERS_DST64)/include -I$(VKD3D_DST64)/include/vkd3d" \
|
||||
VKD3D_PE_LIBS="-L$(VKD3D_DST64)/bin -l:libvkd3d-1.dll -l:libvkd3d-shader-1.dll"
|
||||
|
||||
WINE_DEPENDS = gst_orc gstreamer gst_base vkd3d
|
||||
WINE_DEPENDS = gst_orc gstreamer gst_base vkd3d openfst kaldi vosk
|
||||
|
||||
$(eval $(call rules-source,wine,$(SRCDIR)/wine))
|
||||
$(eval $(call rules-autoconf,wine,32))
|
||||
|
||||
Submodule
+1
Submodule kaldi added at a25f216f5c.
Submodule
+1
Submodule openfst added at 7dfd808194.
Submodule
+1
Submodule vosk-api added at 12f29a3415.
Reference in new issue
Block a user