forked from cmusphinx/pocketsphinx-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
118 lines (107 loc) · 2.19 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
#Pocketsphinx cmake file
cmake_minimum_required(VERSION 3.4.1)
set(SPHINXBASE_SRC ${SPHINXBASE_DIR}/src/libsphinxbase)
set(POCKETSPHINX_SRC ${POCKETSPHINX_DIR}/src/libpocketsphinx)
set(SPHINXBASE_SOURCES
fe/fe_interface.c
fe/fe_noise.c
fe/fe_prespch_buf.c
fe/fe_sigproc.c
fe/fe_warp.c
fe/fe_warp_affine.c
fe/fe_warp_inverse_linear.c
fe/fe_warp_piecewise_linear.c
fe/fixlog.c
fe/yin.c
feat/agc.c
feat/cmn.c
feat/cmn_live.c
feat/feat.c
feat/lda.c
lm/fsg_model.c
lm/jsgf.c
lm/jsgf_parser.c
lm/jsgf_scanner.c
lm/lm_trie.c
lm/lm_trie_quant.c
lm/ngram_model.c
lm/ngram_model_set.c
lm/ngram_model_trie.c
lm/ngrams_raw.c
util/bio.c
util/bitarr.c
util/bitvec.c
util/blas_lite.c
util/case.c
util/ckd_alloc.c
util/cmd_ln.c
util/dtoa.c
util/err.c
util/errno.c
util/f2c_lite.c
util/filename.c
util/genrand.c
util/glist.c
util/hash_table.c
util/heap.c
util/listelem_alloc.c
util/logmath.c
util/matrix.c
util/mmio.c
util/pio.c
util/priority_queue.c
util/profile.c
util/sbthread.c
util/slamch.c
util/slapack_lite.c
util/strfuncs.c
)
set(SPHINXBASE_SOURCES_ABS)
foreach(source ${SPHINXBASE_SOURCES})
list(APPEND SPHINXBASE_SOURCES_ABS "${SPHINXBASE_SRC}/${source}")
endforeach()
set(POCKETSPHINX_SOURCES
acmod.c
allphone_search.c
bin_mdef.c
blkarray_list.c
dict.c
dict2pid.c
fsg_history.c
fsg_lextree.c
fsg_search.c
hmm.c
kws_detections.c
kws_search.c
mdef.c
ms_gauden.c
ms_mgau.c
ms_senone.c
ngram_search.c
ngram_search_fwdflat.c
ngram_search_fwdtree.c
phone_loop_search.c
pocketsphinx.c
ps_alignment.c
ps_lattice.c
ps_mllr.c
ptm_mgau.c
s2_semi_mgau.c
state_align_search.c
tmat.c
vector.c
)
set(POCKETSPHINX_SOURCES_ABS)
foreach(source ${POCKETSPHINX_SOURCES})
list(APPEND POCKETSPHINX_SOURCES_ABS "${POCKETSPHINX_SRC}/${source}")
endforeach()
add_library( pocketsphinx_jni SHARED
build/generated-src/cpp/pocketsphinx_wrap.c
build/generated-src/cpp/sphinxbase_wrap.c
${SPHINXBASE_SOURCES_ABS} ${POCKETSPHINX_SOURCES_ABS}
)
include_directories(${SPHINXBASE_DIR}/include ${SPHINXBASE_DIR}/include/android ${SPHINXBASE_DIR}/include/sphinxbase ${POCKETSPHINX_DIR}/include)
add_definitions(-DHAVE_CONFIG_H)
add_compile_options(-O3)
target_link_libraries( pocketsphinx_jni
log )