From 6c84bc49dd3e0de719a27b4505578f3b5c0577e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bernhard=20K=C3=B6lbl?= Date: Wed, 28 Jun 2023 11:56:37 +0200 Subject: [PATCH] build: Add and build OpenFST submodule. --- .gitmodules | 3 +++ Makefile.in | 40 ++++++++++++++++++++++++++++++++++++++++ openfst | 1 + 3 files changed, 44 insertions(+) create mode 160000 openfst diff --git a/.gitmodules b/.gitmodules index 7d00a6d4..09157900 100644 --- a/.gitmodules +++ b/.gitmodules @@ -55,3 +55,6 @@ [submodule "glslang"] path = glslang url = https://github.com/KhronosGroup/glslang +[submodule "openfst"] + path = openfst + url = https://github.com/alphacep/openfst diff --git a/Makefile.in b/Makefile.in index 44d0447e..dd618402 100644 --- a/Makefile.in +++ b/Makefile.in @@ -381,6 +381,46 @@ $(OBJ)/.steamexe-post-build64: cp $(SRC)/steam_helper/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)) + ## ## wine diff --git a/openfst b/openfst new file mode 160000 index 00000000..7dfd8081 --- /dev/null +++ b/openfst @@ -0,0 +1 @@ +Subproject commit 7dfd808194105162f20084bb4d8e4ee4b65266d5