speech-recognition: added a primitive voice-feedback API.
[profile/ivi/speech-recognition.git] / src / Makefile.am
1 sbin_PROGRAMS      = srs-daemon
2 bin_PROGRAMS       = srs-client
3
4 plugindir          = $(libdir)/src/plugins
5 plugin_LTLIBRARIES =
6
7 INCLUDES           = -I$(top_builddir)
8 AM_CFLAGS          = $(INCLUDES) $(DBUS_CFLAGS)
9
10 QUIET_GEN          = $(Q:@=@echo '  GEN   '$@;)
11
12 # SRS daemon
13 srs_daemon_PUBLIC_SYMBOLS =                     \
14                 daemon/context.h                \
15                 daemon/audiobuf.h               \
16                 daemon/recognizer.h             \
17                 daemon/plugin.h
18
19 srs_daemon_SOURCES =                            \
20                 daemon/daemon.c                 \
21                 daemon/config.c                 \
22                 daemon/dbusif.c                 \
23                 daemon/resourceif.c             \
24                 daemon/client.c                 \
25                 daemon/plugin.c                 \
26                 daemon/audiobuf.c               \
27                 daemon/recognizer.c             \
28                 daemon/voice.c
29
30 srs_daemon_CFLAGS =                             \
31                 $(AM_CFLAGS)                    \
32                 $(PULSE_CFLAGS)                 \
33                 $(DBUS_CFLAGS)
34
35 srs_daemon_LDADD =                              \
36                 ../src/libmurphy-pulse.la       \
37                 ../src/libmurphy-dbus.la        \
38                 ../src/libmurphy-common.la      \
39                 ../src/libmurphy-resource.la    \
40                 $(PULSE_LIBS)                   \
41                 $(DBUS_LIBS)                    \
42                 -ldl
43
44 srs_daemon_LDFLAGS =                            \
45                 -rdynamic
46
47 # SRS command line test clinet
48 srs_client_SOURCES =                            \
49                 client/client.c
50
51 srs_client_CFLAGS =                             \
52                 $(AM_CFLAGS)                    \
53                 $(DBUS_CFLAGS)
54
55 srs_client_LDADD =                              \
56                 ../src/libmurphy-pulse.la       \
57                 ../src/libmurphy-dbus.la        \
58                 ../src/libbreedline-murphy.la   \
59                 ../src/libmurphy-common.la      \
60                 ../src/libbreedline.la          \
61                 $(PULSE_LIBS)                   \
62                 $(DBUS_LIBS)
63
64 # SRS fake speech engine plugin
65 plugin_LTLIBRARIES += plugin-fake-speech.la
66
67 plugin_fake_speech_la_SOURCES =                 \
68                 plugins/fake-speech-engine/fake.c
69
70 plugin_fake_speech_la_CFLAGS  =                 \
71                 $(AM_CFLAGS)
72
73 plugin_fake_speech_la_LDFLAGS =                 \
74                 -module -avoid-version
75
76 plugin_fake_speech_la_LIBADD  =
77
78 # SRS CMU Sphinx speech engine plugin
79 if SPHINX_ENABLED
80 plugin_LTLIBRARIES += plugin-sphinx-speech.la
81
82 plugin_sphinx_speech_la_SOURCES =                               \
83                 plugins/sphinx-speech-engine/sphinx-plugin.c    \
84                 plugins/sphinx-speech-engine/pulse-interface.c  \
85                 plugins/sphinx-speech-engine/input-buffer.c     \
86                 plugins/sphinx-speech-engine/filter-buffer.c    \
87                 plugins/sphinx-speech-engine/utterance.c        \
88                 plugins/sphinx-speech-engine/decoder-set.c      \
89                 plugins/sphinx-speech-engine/options.c
90
91 plugin_sphinx_speech_la_CFLAGS  =                       \
92                 $(AM_CFLAGS)                            \
93                 $(PULSE_CFLAGS)                         \
94                 $(SPHINX_CFLAGS)
95
96 plugin_sphinx_speech_la_LDFLAGS =                       \
97                 -module -avoid-version
98
99 plugin_sphinx_speech_la_LIBADD  =                       \
100                 $(PULSE_LIBS)                           \
101                 $(SPHINX_LIBS)
102 endif
103
104
105 # SRS Nuance speech engine plugin
106 plugin_LTLIBRARIES += plugin-nuance-speech.la
107
108 plugin_nuance_speech_la_SOURCES =                       \
109                 plugins/nuance-speech-engine/nuance.c
110
111 plugin_nuance_speech_la_CFLAGS  =                       \
112                 $(AM_CFLAGS)
113
114 plugin_nuance_speech_la_LDFLAGS =                       \
115                 -module -avoid-version
116
117 plugin_nuance_speech_la_LIBADD  =
118
119 # SRS fake speech engine plugin
120 plugin_LTLIBRARIES += plugin-simple-disambiguator.la
121
122 plugin_simple_disambiguator_la_SOURCES =                        \
123                 plugins/simple-disambiguator/disambiguator.c
124
125 plugin_simple_disambiguator_la_CFLAGS  =                        \
126                 $(AM_CFLAGS)
127
128 plugin_simple_disambiguator_la_LDFLAGS =                        \
129                 -module -avoid-version
130
131 plugin_simple_disambiguator_la_LIBADD  =
132
133 # Mpris2 client plugin
134 plugin_LTLIBRARIES += plugin-mpris2-client.la
135
136 plugin_mpris2_client_la_SOURCES =                               \
137                 plugins/mpris2-client/mpris2-plugin.c           \
138                 plugins/mpris2-client/dbusif.c                  \
139                 plugins/mpris2-client/clients.c
140
141 plugin_mpris2_client_la_CFLAGS  =                               \
142                 $(AM_CFLAGS)
143
144 plugin_mpris2_client_la_LDFLAGS =                               \
145                 -module -avoid-version
146
147 plugin_mpris2_client_la_LIBADD  =
148
149
150 # Bluetooth client plugin
151 plugin_LTLIBRARIES += plugin-bluetooth-client.la
152
153 plugin_bluetooth_client_la_SOURCES =                            \
154                 plugins/bluetooth-client/bluetooth-plugin.c     \
155                 plugins/bluetooth-client/dbusif.c               \
156                 plugins/bluetooth-client/pulseif.c              \
157                 plugins/bluetooth-client/clients.c
158
159 plugin_bluetooth_client_la_CFLAGS  =                            \
160                 $(AM_CFLAGS)
161
162 plugin_bluetooth_client_la_LDFLAGS =                            \
163                 -module -avoid-version
164
165 plugin_bluetooth_client_la_LIBADD  =
166
167 # search plugin
168 plugin_LTLIBRARIES += plugin-search-client.la
169
170 plugin_search_client_la_SOURCES =                               \
171                 plugins/search-client/search-plugin.c
172
173 plugin_search_client_la_CFLAGS  =                               \
174                 $(AM_CFLAGS)
175
176 plugin_search_client_la_LDFLAGS =                               \
177                 -module -avoid-version
178
179 plugin_search_client_la_LIBADD  =
180
181 # simple-voice synthesizer plugin
182 plugin_LTLIBRARIES += plugin-simple-voice.la
183
184 plugin_simple_voice_la_SOURCES =                                \
185                 plugins/simple-voice/simple-voice.c
186
187 plugin_simple_voice_la_CFLAGS  =                                \
188                 $(AM_CFLAGS)
189
190 plugin_simple_voice_la_LDFLAGS =                                \
191                 -module -avoid-version
192
193 plugin_simple_voice_la_LIBADD  =
194
195
196
197 # cleanup
198 clean-local::
199         -rm -f *~