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) \
45 $(MURPHY_PULSE_LIBS) \
46 $(MURPHY_RESOURCE_LIBS) \
47 $(MURPHY_COMMON_LIBS) \
55 srs_daemon_LDFLAGS = \
59 # D-Bus client API plugin
60 plugin_LTLIBRARIES += plugin-dbus-client.la
62 plugin_dbus_client_la_SOURCES = \
63 plugins/client-api/dbus/dbus-client.c
65 plugin_dbus_client_la_CFLAGS = \
70 plugin_dbus_client_la_LDFLAGS = \
71 -module -avoid-version
73 plugin_dbus_client_la_LIBADD = \
76 # D-Bus client API command line test client
77 bin_PROGRAMS += srs-dbus-client
79 srs_dbus_client_SOURCES = \
80 plugins/client-api/dbus/test-client.c
82 srs_dbus_client_CFLAGS = \
84 $(MURPHY_PULSE_CFLAGS) \
85 $(MURPHY_DBUS_CFLAGS) \
86 $(MURPHY_BREEDLINE_CFLAGS) \
87 $(MURPHY_COMMON_CFLAGS) \
90 srs_dbus_client_LDADD = \
91 $(MURPHY_PULSE_LIBS) \
93 $(MURPHY_BREEDLINE_LIBS) \
94 $(MURPHY_COMMON_LIBS) \
100 # native client API plugin
101 plugin_LTLIBRARIES += plugin-native-client.la
103 plugin_native_client_la_SOURCES = \
104 plugins/client-api/native/native-server.c \
105 plugins/client-api/native/native-messages.c
107 plugin_native_client_la_CFLAGS = \
109 $(MURPHY_COMMON_CFLAGS)
111 plugin_native_client_la_LDFLAGS = \
112 -module -avoid-version
114 plugin_native_client_la_LIBADD = \
115 $(MURPHY_COMMON_LIBS)
117 # native client API library
118 lib_LTLIBRARIES += libsrs-native-client.la
119 EXTRA_DIST += plugins/client-api/native/srs-native-client.pc
120 pkgconfig_DATA += plugins/client-api/native/srs-native-client.pc
122 libsrs_native_client_ladir = $(includedir)/srs/client-api/native
123 libsrs_native_client_la_HEADERS = \
124 plugins/client-api/native/native-client.h \
125 plugins/client-api/native/native-config.h
127 libsrs_native_client_la_SOURCES = \
128 plugins/client-api/native/native-client.c \
129 plugins/client-api/native/native-messages.c
131 libsrs_native_client_la_CFLAGS = \
133 $(MURPHY_COMMON_CFLAGS)
135 libsrs_native_client_la_LIBADD = \
136 $(MURPHY_COMMON_LIBS)
138 # native client API command line test client
139 bin_PROGRAMS += srs-native-client
141 srs_native_client_SOURCES = \
142 plugins/client-api/native/test-client.c
144 srs_native_client_CFLAGS = \
146 $(MURPHY_PULSE_CFLAGS) \
147 $(MURPHY_BREEDLINE_CFLAGS) \
148 $(MURPHY_COMMON_CFLAGS) \
151 srs_native_client_LDADD = \
152 $(MURPHY_PULSE_LIBS) \
153 $(MURPHY_BREEDLINE_LIBS) \
154 $(MURPHY_COMMON_LIBS) \
155 $(MURPHY_GLIB_LIBS) \
157 libsrs-native-client.la
159 libsrs_native_client_la_LDFLAGS = \
160 -version-info @SRS_VERSION_INFO@
162 # SRS fake speech engine plugin
163 plugin_LTLIBRARIES += plugin-fake-speech.la
165 plugin_fake_speech_la_SOURCES = \
166 plugins/speech-to-text/fake/fake.c
168 plugin_fake_speech_la_CFLAGS = \
171 plugin_fake_speech_la_LDFLAGS = \
172 -module -avoid-version
174 plugin_fake_speech_la_LIBADD =
176 # SRS CMU Sphinx speech engine plugin
178 plugin_LTLIBRARIES += plugin-sphinx-speech.la
180 plugin_sphinx_speech_la_SOURCES = \
181 plugins/speech-to-text/sphinx/sphinx-plugin.c \
182 plugins/speech-to-text/sphinx/pulse-interface.c \
183 plugins/speech-to-text/sphinx/input-buffer.c \
184 plugins/speech-to-text/sphinx/filter-buffer.c \
185 plugins/speech-to-text/sphinx/utterance.c \
186 plugins/speech-to-text/sphinx/decoder-set.c \
187 plugins/speech-to-text/sphinx/options.c
189 plugin_sphinx_speech_la_CFLAGS = \
194 plugin_sphinx_speech_la_LDFLAGS = \
195 -module -avoid-version
197 plugin_sphinx_speech_la_LIBADD = \
202 # SRS Nuance speech engine plugin
203 plugin_LTLIBRARIES += plugin-nuance-speech.la
205 plugin_nuance_speech_la_SOURCES = \
206 plugins/speech-to-text/nuance/nuance.c
208 plugin_nuance_speech_la_CFLAGS = \
211 plugin_nuance_speech_la_LDFLAGS = \
212 -module -avoid-version
214 plugin_nuance_speech_la_LIBADD =
216 # SRS fake speech engine plugin
217 plugin_LTLIBRARIES += plugin-simple-disambiguator.la
219 plugin_simple_disambiguator_la_SOURCES = \
220 plugins/simple-disambiguator/disambiguator.c
222 plugin_simple_disambiguator_la_CFLAGS = \
225 plugin_simple_disambiguator_la_LDFLAGS = \
226 -module -avoid-version
228 plugin_simple_disambiguator_la_LIBADD =
231 # Mpris2 client plugin
232 plugin_LTLIBRARIES += plugin-mpris2-client.la
234 plugin_mpris2_client_la_SOURCES = \
235 plugins/mpris2-client/mpris2-plugin.c \
236 plugins/mpris2-client/dbusif.c \
237 plugins/mpris2-client/clients.c
239 plugin_mpris2_client_la_CFLAGS = \
241 $(MURPHY_DBUS_CFLAGS) \
244 plugin_mpris2_client_la_LDFLAGS = \
245 -module -avoid-version
247 plugin_mpris2_client_la_LIBADD = \
248 $(MURPHY_DBUS_LIBS) \
254 # Bluetooth client plugin
255 plugin_LTLIBRARIES += plugin-bluetooth-client.la
257 plugin_bluetooth_client_la_SOURCES = \
258 plugins/bluetooth-client/bluetooth-plugin.c \
259 plugins/bluetooth-client/dbusif.c \
260 plugins/bluetooth-client/pulseif.c \
261 plugins/bluetooth-client/clients.c
263 plugin_bluetooth_client_la_CFLAGS = \
265 $(MURPHY_DBUS_CFLAGS) \
268 plugin_bluetooth_client_la_LDFLAGS = \
269 -module -avoid-version
271 plugin_bluetooth_client_la_LIBADD = \
272 $(MURPHY_DBUS_LIBS) \
278 plugin_LTLIBRARIES += plugin-search-client.la
280 plugin_search_client_la_SOURCES = \
281 plugins/search-client/search-plugin.c
283 plugin_search_client_la_CFLAGS = \
286 plugin_search_client_la_LDFLAGS = \
287 -module -avoid-version
289 plugin_search_client_la_LIBADD =
292 # festival-loader plugin
293 plugin_LTLIBRARIES += plugin-festival-loader.la
295 plugin_festival_loader_la_SOURCES = \
296 plugins/text-to-speech/festival/festival-loader.c
298 plugin_festival_loader_la_CFLAGS = \
301 plugin_festival_loader_la_LDFLAGS = \
302 -module -avoid-version
304 plugin_festival_loader_la_LIBADD = -ldl
306 # festival-voice synthesizer plugin
307 plugin_LTLIBRARIES += plugin-festival-voice.la
309 plugin_festival_voice_la_SOURCES = \
310 plugins/text-to-speech/festival/festival-voice.c \
311 plugins/text-to-speech/festival/libcarnival.cc \
312 plugins/text-to-speech/festival/pulse.c
314 plugin_festival_voice_la_CFLAGS = \
317 plugin_festival_voice_la_CXXFLAGS = \
322 plugin_festival_voice_la_LDFLAGS = \
323 -module -avoid-version
326 # simple-voice synthesizer plugin
327 #plugin_LTLIBRARIES += plugin-simple-voice.la
329 #plugin_simple_voice_la_SOURCES = \
330 # plugins/text-to-speech/simple-voice/simple-voice.c
332 #plugin_simple_voice_la_CFLAGS = \
335 #plugin_simple_voice_la_LDFLAGS = \
336 # -module -avoid-version
338 #plugin_simple_voice_la_LIBADD =
342 plugin_LTLIBRARIES += plugin-input-handler.la
344 plugin_input_handler_la_SOURCES = \
345 plugins/input-handler/input-plugin.c
347 plugin_input_handler_la_CFLAGS = \
350 plugin_input_handler_la_LDFLAGS = \
352 -module -avoid-version
354 plugin_input_handler_la_LIBADD = \
359 plugin_LTLIBRARIES += plugin-wrt-media-client.la
361 plugin_wrt_media_client_la_SOURCES = \
362 plugins/client-api/wrt-media-client/wrt-media-client.c
364 plugin_wrt_media_client_la_CFLAGS = \
366 $(MURPHY_GLIB_CFLAGS) \
369 plugin_wrt_media_client_la_LDFLAGS = \
370 -module -avoid-version
372 plugin_wrt_media_client_la_LIBADD = \
373 $(MURPHY_GLIB_LIBS) \