diff --git a/.gitmodules b/.gitmodules index 824082a7..ce2e919b 100644 --- a/.gitmodules +++ b/.gitmodules @@ -59,3 +59,6 @@ path = piper url = https://github.com/shaunren/piper.git branch = library +[submodule "openfst"] + path = openfst + url = https://github.com/alphacep/openfst diff --git a/Makefile.in b/Makefile.in index e649c4f1..2f10cd3a 100644 --- a/Makefile.in +++ b/Makefile.in @@ -400,6 +400,47 @@ $(OBJ)/.piper-x86_64-post-build: cp -a $(PIPER_x86_64_DST)/{espeak-ng-data,libtashkeel_model.ort} $(DST_DIR)/share/ 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-configure,openfst,i386,unix)) +$(eval $(call rules-configure,openfst,x86_64,unix)) + + ## ## wine ## diff --git a/openfst b/openfst new file mode 160000 index 00000000..7dfd8081 --- /dev/null +++ b/openfst @@ -0,0 +1 @@ +Subproject commit 7dfd808194105162f20084bb4d8e4ee4b65266d5