1 sbin_PROGRAMS = srs-daemon
4 plugindir = $(libdir)/srs/plugins
10 pkgconfigdir = ${libdir}/pkgconfig
12 AM_CPPFLAGS = -I$(top_builddir)
13 AM_CFLAGS = $(GLIB_CFLAGS)
15 QUIET_GEN = $(Q:@=@echo ' GEN '$@;)
18 daemon_includedir = $(includedir)/srs/daemon
19 daemon_include_HEADERS = \
20 daemon/client-api-types.h \
21 daemon/voice-api-types.h
23 srs_daemon_SOURCES = \
35 $(MURPHY_PULSE_CFLAGS) \
36 $(MURPHY_COMMON_CFLAGS) \
37 $(MURPHY_RESOURCE_CFLAGS) \
39 $(PULSE_GLIB_CFLAGS) \
40 $(MURPHY_GLIB_CFLAGS) \
44 $(MURPHY_PULSE_LIBS) \
45 $(MURPHY_RESOURCE_LIBS) \
46 $(MURPHY_COMMON_LIBS) \
53 srs_daemon_LDFLAGS = \
57 # D-Bus client API plugin
58 plugin_LTLIBRARIES += plugin-dbus-client.la
60 plugin_dbus_client_la_SOURCES = \
61 plugins/client-api/dbus/dbus-client.c
63 plugin_dbus_client_la_CFLAGS = \
68 plugin_dbus_client_la_LDFLAGS = \
69 -module -avoid-version
71 plugin_dbus_client_la_LIBADD = \
74 # D-Bus client API command line test client
75 bin_PROGRAMS += srs-dbus-client
77 srs_dbus_client_SOURCES = \
78 plugins/client-api/dbus/test-client.c
80 srs_dbus_client_CFLAGS = \
82 $(MURPHY_PULSE_CFLAGS) \
83 $(MURPHY_DBUS_CFLAGS) \
84 $(MURPHY_BREEDLINE_CFLAGS) \
85 $(MURPHY_COMMON_CFLAGS) \
88 srs_dbus_client_LDADD = \
89 $(MURPHY_PULSE_LIBS) \
91 $(MURPHY_BREEDLINE_LIBS) \
92 $(MURPHY_COMMON_LIBS) \
98 # native client API plugin
99 plugin_LTLIBRARIES += plugin-native-client.la
101 plugin_native_client_la_SOURCES = \
102 plugins/client-api/native/native-server.c \
103 plugins/client-api/native/native-messages.c
105 plugin_native_client_la_CFLAGS = \
107 $(MURPHY_COMMON_CFLAGS)
109 plugin_native_client_la_LDFLAGS = \
110 -module -avoid-version
112 plugin_native_client_la_LIBADD = \
113 $(MURPHY_COMMON_LIBS)
115 # native client API library
116 lib_LTLIBRARIES += libsrs-native-client.la
117 EXTRA_DIST += plugins/client-api/native/srs-native-client.pc
118 pkgconfig_DATA += plugins/client-api/native/srs-native-client.pc
120 libsrs_native_client_ladir = $(includedir)/srs/client-api/native
121 libsrs_native_client_la_HEADERS = \
122 plugins/client-api/native/native-client.h \
123 plugins/client-api/native/native-config.h \
124 plugins/client-api/native/native-messages.h
126 libsrs_native_client_la_SOURCES = \
127 plugins/client-api/native/native-client.c \
128 plugins/client-api/native/native-messages.c
130 libsrs_native_client_la_CFLAGS = \
132 $(MURPHY_COMMON_CFLAGS)
134 libsrs_native_client_la_LIBADD = \
135 $(MURPHY_COMMON_LIBS)
137 # native client API command line test client
138 bin_PROGRAMS += srs-native-client
140 srs_native_client_SOURCES = \
141 plugins/client-api/native/test-client.c
143 srs_native_client_CFLAGS = \
145 $(MURPHY_PULSE_CFLAGS) \
146 $(MURPHY_BREEDLINE_CFLAGS) \
147 $(MURPHY_COMMON_CFLAGS) \
150 srs_native_client_LDADD = \
151 $(MURPHY_PULSE_LIBS) \
152 $(MURPHY_BREEDLINE_LIBS) \
153 $(MURPHY_COMMON_LIBS) \
154 $(MURPHY_GLIB_LIBS) \
156 libsrs-native-client.la
158 libsrs_native_client_la_LDFLAGS = \
159 -version-info @SRS_VERSION_INFO@
161 # SRS fake speech engine plugin
162 plugin_LTLIBRARIES += plugin-fake-speech.la
164 plugin_fake_speech_la_SOURCES = \
165 plugins/speech-to-text/fake/fake.c
167 plugin_fake_speech_la_CFLAGS = \
170 plugin_fake_speech_la_LDFLAGS = \
171 -module -avoid-version
173 plugin_fake_speech_la_LIBADD =
175 # SRS CMU Sphinx speech engine plugin
177 plugin_LTLIBRARIES += plugin-sphinx-speech.la
179 plugin_sphinx_speech_la_SOURCES = \
180 plugins/speech-to-text/sphinx/sphinx-plugin.c \
181 plugins/speech-to-text/sphinx/pulse-interface.c \
182 plugins/speech-to-text/sphinx/input-buffer.c \
183 plugins/speech-to-text/sphinx/filter-buffer.c \
184 plugins/speech-to-text/sphinx/utterance.c \
185 plugins/speech-to-text/sphinx/decoder-set.c \
186 plugins/speech-to-text/sphinx/options.c
188 plugin_sphinx_speech_la_CFLAGS = \
193 plugin_sphinx_speech_la_LDFLAGS = \
194 -module -avoid-version
196 plugin_sphinx_speech_la_LIBADD = \
201 # SRS Nuance speech engine plugin
202 plugin_LTLIBRARIES += plugin-nuance-speech.la
204 plugin_nuance_speech_la_SOURCES = \
205 plugins/speech-to-text/nuance/nuance.c
207 plugin_nuance_speech_la_CFLAGS = \
210 plugin_nuance_speech_la_LDFLAGS = \
211 -module -avoid-version
213 plugin_nuance_speech_la_LIBADD =
215 # SRS fake speech engine plugin
216 plugin_LTLIBRARIES += plugin-simple-disambiguator.la
218 plugin_simple_disambiguator_la_SOURCES = \
219 plugins/simple-disambiguator/disambiguator.c
221 plugin_simple_disambiguator_la_CFLAGS = \
224 plugin_simple_disambiguator_la_LDFLAGS = \
225 -module -avoid-version
227 plugin_simple_disambiguator_la_LIBADD =
230 # Mpris2 client plugin
231 plugin_LTLIBRARIES += plugin-mpris2-client.la
233 plugin_mpris2_client_la_SOURCES = \
234 plugins/mpris2-client/mpris2-plugin.c \
235 plugins/mpris2-client/dbusif.c \
236 plugins/mpris2-client/clients.c
238 plugin_mpris2_client_la_CFLAGS = \
240 $(MURPHY_DBUS_CFLAGS) \
243 plugin_mpris2_client_la_LDFLAGS = \
244 -module -avoid-version
246 plugin_mpris2_client_la_LIBADD = \
247 $(MURPHY_DBUS_LIBS) \
253 # Bluetooth client plugin
254 plugin_LTLIBRARIES += plugin-bluetooth-client.la
256 plugin_bluetooth_client_la_SOURCES = \
257 plugins/bluetooth-client/bluetooth-plugin.c \
258 plugins/bluetooth-client/dbusif.c \
259 plugins/bluetooth-client/pulseif.c \
260 plugins/bluetooth-client/clients.c
262 plugin_bluetooth_client_la_CFLAGS = \
264 $(MURPHY_DBUS_CFLAGS) \
267 plugin_bluetooth_client_la_LDFLAGS = \
268 -module -avoid-version
270 plugin_bluetooth_client_la_LIBADD = \
271 $(MURPHY_DBUS_LIBS) \
277 plugin_LTLIBRARIES += plugin-search-client.la
279 plugin_search_client_la_SOURCES = \
280 plugins/search-client/search-plugin.c
282 plugin_search_client_la_CFLAGS = \
285 plugin_search_client_la_LDFLAGS = \
286 -module -avoid-version
288 plugin_search_client_la_LIBADD =
291 # festival-loader plugin
292 plugin_LTLIBRARIES += plugin-festival-loader.la
294 plugin_festival_loader_la_SOURCES = \
295 plugins/text-to-speech/festival/festival-loader.c
297 plugin_festival_loader_la_CFLAGS = \
300 plugin_festival_loader_la_LDFLAGS = \
301 -module -avoid-version
303 plugin_festival_loader_la_LIBADD = -ldl
305 # festival-voice synthesizer plugin
306 plugin_LTLIBRARIES += plugin-festival-voice.la
308 plugin_festival_voice_la_SOURCES = \
309 plugins/text-to-speech/festival/festival-voice.c \
310 plugins/text-to-speech/festival/libcarnival.cc \
311 plugins/text-to-speech/festival/pulse.c
313 plugin_festival_voice_la_CFLAGS = \
316 plugin_festival_voice_la_CXXFLAGS = \
321 plugin_festival_voice_la_LDFLAGS = \
322 -module -avoid-version
325 # simple-voice synthesizer plugin
326 #plugin_LTLIBRARIES += plugin-simple-voice.la
328 #plugin_simple_voice_la_SOURCES = \
329 # plugins/text-to-speech/simple-voice/simple-voice.c
331 #plugin_simple_voice_la_CFLAGS = \
334 #plugin_simple_voice_la_LDFLAGS = \
335 # -module -avoid-version
337 #plugin_simple_voice_la_LIBADD =
341 plugin_LTLIBRARIES += plugin-input-handler.la
343 plugin_input_handler_la_SOURCES = \
344 plugins/input-handler/input-plugin.c
346 plugin_input_handler_la_CFLAGS = \
349 plugin_input_handler_la_LDFLAGS = \
351 -module -avoid-version
353 plugin_input_handler_la_LIBADD = \
358 plugin_LTLIBRARIES += plugin-wrt-media-client.la
360 plugin_wrt_media_client_la_SOURCES = \
361 plugins/client-api/wrt-media-client/wrt-media-client.c
363 plugin_wrt_media_client_la_CFLAGS = \
365 $(MURPHY_GLIB_CFLAGS) \
368 plugin_wrt_media_client_la_LDFLAGS = \
369 -module -avoid-version
371 plugin_wrt_media_client_la_LIBADD = \
372 $(MURPHY_GLIB_LIBS) \