festival-lutin/lutin_estools-grammar.py

50 lines
1.6 KiB
Python
Raw Normal View History

2015-09-21 21:45:23 +02:00
#!/usr/bin/python
import lutin.module as module
import lutin.tools as tools
import os
def get_desc():
return "festival TTS engine"
def create(target):
my_module = module.Module(__file__, 'estools-grammar', 'LIBRARY')
2015-09-21 21:59:43 +02:00
my_module.add_module_depend(['eststring', 'estools-stats'])
2015-09-21 21:45:23 +02:00
my_module.add_export_path(os.path.join(tools.get_current_path(__file__), "speech_tools/include"))
my_module.compile_flags('c++', "-fno-implicit-templates")
my_module.compile_flags('c++', "-DINSTANTIATE_TEMPLATES")
my_module.add_src_file([
"speech_tools/grammar/scfg/EST_SCFG.cc",
"speech_tools/grammar/scfg/EST_SCFG_inout.cc",
"speech_tools/grammar/scfg/EST_SCFG_Chart.cc"
])
my_module.add_src_file([
"speech_tools/grammar/wfst/EST_WFST.cc",
"speech_tools/grammar/wfst/wfst_regex.cc",
"speech_tools/grammar/wfst/wfst_ops.cc",
"speech_tools/grammar/wfst/wfst_transduce.cc",
"speech_tools/grammar/wfst/kkcompile.cc",
"speech_tools/grammar/wfst/wfst_aux.cc",
"speech_tools/grammar/wfst/ltscompile.cc",
"speech_tools/grammar/wfst/rgcompile.cc",
"speech_tools/grammar/wfst/tlcompile.cc",
"speech_tools/grammar/wfst/wfst_train.cc"
])
my_module.add_src_file([
"speech_tools/grammar/ngram/lattice_t.cc",
"speech_tools/grammar/ngram/EST_Ngrammar.cc",
"speech_tools/grammar/ngram/ngrammar_io.cc",
"speech_tools/grammar/ngram/ngrammar_aux.cc",
"speech_tools/grammar/ngram/ngrammar_utils.cc",
"speech_tools/grammar/ngram/EST_lattice.cc",
"speech_tools/grammar/ngram/EST_lattice_io.cc",
"speech_tools/grammar/ngram/freqsmooth.cc",
"speech_tools/grammar/ngram/EST_PST.cc"
])
return my_module