forked from meetecho/janus-gateway
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
596 lines (501 loc) · 17.6 KB
/
Makefile.am
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
ACLOCAL_AMFLAGS = -I m4
# FIXME: These should be enabled once the code is safe for them. That requires
# some fairly big refactoring though, which can wait.
# AM_CFLAGS += -Wshadow -Wstrict-aliasing=2
# FIXME: make docs work with distcheck
DISTCHECK_CONFIGURE_FLAGS = --disable-docs --enable-post-processing
EXTRA_DIST = $(NULL)
CLEANFILES = $(NULL)
bin_PROGRAMS = janus
headerdir = $(includedir)/janus
header_HEADERS = apierror.h config.h log.h debug.h mutex.h record.h \
rtcp.h rtp.h rtpsrtp.h sdp-utils.h ip-utils.h utils.h refcount.h text2pcap.h
pluginsheaderdir = $(includedir)/janus/plugins
pluginsheader_HEADERS = plugins/plugin.h
transportsheaderdir = $(includedir)/janus/transports
transportsheader_HEADERS = transports/transport.h
eventsheaderdir = $(includedir)/janus/events
eventsheader_HEADERS = events/eventhandler.h
confdir = $(sysconfdir)/janus
conf_DATA = conf/janus.jcfg.sample
certdir = $(datadir)/janus/certs
dist_cert_DATA = certs/mycert.key certs/mycert.pem
plugindir = $(libdir)/janus/plugins
plugin_LTLIBRARIES = $(NULL)
transportdir = $(libdir)/janus/transports
transport_LTLIBRARIES = $(NULL)
eventdir = $(libdir)/janus/events
event_LTLIBRARIES = $(NULL)
SUBDIRS = html
dist_html_DATA = README.md
streamdir = $(datadir)/janus/streams
stream_DATA = $(NULL)
recordingsdir = $(datadir)/janus/recordings
recordings_DATA = $(NULL)
luadir = $(datadir)/janus/lua
lua_DATA = $(NULL)
duktapedir = $(datadir)/janus/duktape
duktape_DATA = $(NULL)
demosdir = $(datadir)/janus/demos
demos_DATA = $(NULL)
jsmodulesdir = $(datadir)/janus/javascript
jsmodules_DATA = html/janus.js
%.sample: %.sample.in
$(MKDIR_P) $(@D)
$(AM_V_GEN) sed -e "\
s|[@]confdir[@]|$(confdir)|;\
s|[@]certdir[@]|$(certdir)|;\
s|[@]plugindir[@]|$(plugindir)|;\
s|[@]transportdir[@]|$(transportdir)|;\
s|[@]eventdir[@]|$(eventdir)|;\
s|[@]recordingsdir[@]|$(recordingsdir)|;\
s|[@]demosdir[@]|$(demosdir)|;\
s|[@]streamdir[@]|$(streamdir)|; \
s|[@]luadir[@]|$(luadir)|; \
s|[@]duktapedir[@]|$(duktapedir)|" \
$< > $@ || rm $@
EXTRA_DIST += conf/janus.jcfg.sample.in
CLEANFILES += conf/janus.jcfg.sample
##
# Janus
##
janus_SOURCES = \
apierror.c \
apierror.h \
auth.c \
auth.h \
cmdline.c \
cmdline.h \
config.c \
config.h \
debug.h \
dtls.c \
dtls.h \
dtls-bio.c \
dtls-bio.h \
events.c \
events.h \
ice.c \
ice.h \
janus.c \
janus.h \
log.c \
log.h \
mutex.h \
record.c \
record.h \
refcount.h \
rtcp.c \
rtcp.h \
rtp.c \
rtp.h \
rtpsrtp.h \
sctp.c \
sctp.h \
sdp.c \
sdp.h \
sdp-utils.c \
sdp-utils.h \
ip-utils.c \
ip-utils.h \
turnrest.c \
turnrest.h \
utils.c \
utils.h \
version.c \
version.h \
text2pcap.c \
text2pcap.h \
plugins/plugin.c \
plugins/plugin.h \
transports/transport.h \
transports/transport.c \
events/eventhandler.h \
$(NULL)
janus_CFLAGS = \
$(AM_CFLAGS) \
$(JANUS_CFLAGS) \
-DPLUGINDIR=\"$(plugindir)\" \
-DTRANSPORTDIR=\"$(transportdir)\" \
-DEVENTDIR=\"$(eventdir)\" \
-DCONFDIR=\"$(confdir)\" \
$(BORINGSSL_CFLAGS) \
$(NULL)
janus_LDADD = \
$(BORINGSSL_LIBS) \
$(JANUS_LIBS) \
$(JANUS_MANUAL_LIBS) \
$(NULL)
dist_man1_MANS = janus.1
bin_PROGRAMS += janus-cfgconv
janus_cfgconv_SOURCES = \
janus-cfgconv.c \
config.c \
log.c \
utils.c \
version.c \
$(NULL)
janus_cfgconv_CFLAGS = \
$(AM_CFLAGS) \
$(JANUS_CFLAGS) \
$(NULL)
janus_cfgconv_LDADD = \
$(JANUS_LIBS) \
$(JANUS_MANUAL_LIBS) \
$(NULL)
dist_man1_MANS += janus-cfgconv.1
BUILT_SOURCES = cmdline.c cmdline.h version.c
cmdline.h: cmdline.c
cmdline.c: janus.c
gengetopt --set-package="janus" --set-version="$(VERSION)" < janus.ggo
directory = .git
dir_target = $(directory)-$(wildcard $(directory))
dir_present = $(directory)-$(directory)
dir_absent = $(directory)-
if WITH_SOURCE_DATE_EPOCH
build_date = $(shell LC_ALL=C date --utc --date="@$(SOURCE_DATE_EPOCH)")
else
build_date = $(shell date)
endif
version.c: FORCE | $(dir_target)
echo "$(build_date)" | awk 'BEGIN {} {print "const char *janus_build_git_time = \""$$0"\";"} END {} ' >> version.c
echo "$(JANUS_VERSION)" | awk 'BEGIN {} {print "int janus_version = "$$0";"} END {} ' >> version.c
echo "$(JANUS_VERSION_STRING)" | awk 'BEGIN {} {print "const char *janus_version_string = \""$$0"\";"} END {} ' >> version.c
$(dir_present):
`which git` rev-parse HEAD | awk 'BEGIN {print "#include \"version.h\""} {print "const char *janus_build_git_sha = \"" $$0"\";"} END {}' > version.c
$(dir_absent):
echo "not-a-git-repo" | awk 'BEGIN {print "#include \"version.h\""} {print "const char *janus_build_git_sha = \"" $$0"\";"} END {}' > version.c
.PHONY: FORCE
FORCE:
EXTRA_DIST += janus.ggo
CLEANFILES += cmdline.c cmdline.h version.c
##
# Transports
##
transports_cflags = \
$(AM_CFLAGS) \
$(TRANSPORTS_CFLAGS) \
$(NULL)
transports_libadd = \
$(TRANSPORTS_LIBS) \
$(NULL)
if ENABLE_REST
transport_LTLIBRARIES += transports/libjanus_http.la
transports_libjanus_http_la_SOURCES = transports/janus_http.c
transports_libjanus_http_la_CFLAGS = $(transports_cflags) $(MHD_CFLAGS)
transports_libjanus_http_la_LDFLAGS = $(transports_ldflags) $(MHD_LDFLAGS) $(MHD_LIBS)
transports_libjanus_http_la_LIBADD = $(transports_libadd) $(MHD_LDFLAGS)
conf_DATA += conf/janus.transport.http.jcfg.sample
EXTRA_DIST += conf/janus.transport.http.jcfg.sample.in
CLEANFILES += conf/janus.transport.http.jcfg.sample
endif
if ENABLE_WEBSOCKETS
transport_LTLIBRARIES += transports/libjanus_websockets.la
transports_libjanus_websockets_la_SOURCES = transports/janus_websockets.c
transports_libjanus_websockets_la_CFLAGS = $(transports_cflags)
transports_libjanus_websockets_la_LDFLAGS = $(transports_ldflags) $(WS_MANUAL_LIBS)
transports_libjanus_websockets_la_LIBADD = $(transports_libadd)
conf_DATA += conf/janus.transport.websockets.jcfg.sample
EXTRA_DIST += conf/janus.transport.websockets.jcfg.sample.in
CLEANFILES += conf/janus.transport.websockets.jcfg.sample
endif
if ENABLE_RABBITMQ
transport_LTLIBRARIES += transports/libjanus_rabbitmq.la
transports_libjanus_rabbitmq_la_SOURCES = transports/janus_rabbitmq.c
transports_libjanus_rabbitmq_la_CFLAGS = $(transports_cflags)
transports_libjanus_rabbitmq_la_LDFLAGS = $(transports_ldflags) -lrabbitmq
transports_libjanus_rabbitmq_la_LIBADD = $(transports_libadd)
conf_DATA += conf/janus.transport.rabbitmq.jcfg.sample
EXTRA_DIST += conf/janus.transport.rabbitmq.jcfg.sample
endif
if ENABLE_MQTT
transport_LTLIBRARIES += transports/libjanus_mqtt.la
transports_libjanus_mqtt_la_SOURCES = transports/janus_mqtt.c
transports_libjanus_mqtt_la_CFLAGS = $(transports_cflags)
transports_libjanus_mqtt_la_LDFLAGS = $(transports_ldflags) -lpaho-mqtt3as
transports_libjanus_mqtt_la_LIBADD = $(transports_libadd)
conf_DATA += conf/janus.transport.mqtt.jcfg.sample
EXTRA_DIST += conf/janus.transport.mqtt.jcfg.sample
endif
if ENABLE_PFUNIX
transport_LTLIBRARIES += transports/libjanus_pfunix.la
transports_libjanus_pfunix_la_SOURCES = transports/janus_pfunix.c
transports_libjanus_pfunix_la_CFLAGS = $(transports_cflags)
transports_libjanus_pfunix_la_LDFLAGS = $(transports_ldflags) $(LIBSYSTEMD_LIBS)
transports_libjanus_pfunix_la_LIBADD = $(transports_libadd)
conf_DATA += conf/janus.transport.pfunix.jcfg.sample
EXTRA_DIST += conf/janus.transport.pfunix.jcfg.sample
endif
if ENABLE_NANOMSG
transport_LTLIBRARIES += transports/libjanus_nanomsg.la
transports_libjanus_nanomsg_la_SOURCES = transports/janus_nanomsg.c
transports_libjanus_nanomsg_la_CFLAGS = $(transports_cflags)
transports_libjanus_nanomsg_la_LDFLAGS = $(transports_ldflags) -lnanomsg
transports_libjanus_nanomsg_la_LIBADD = $(transports_libadd)
conf_DATA += conf/janus.transport.nanomsg.jcfg.sample
EXTRA_DIST += conf/janus.transport.nanomsg.jcfg.sample
endif
##
# Event handlers
##
events_cflags = \
$(AM_CFLAGS) \
$(EVENTS_CFLAGS) \
$(NULL)
events_libadd = \
$(EVENTS_LIBS) \
$(NULL)
if ENABLE_SAMPLEEVH
event_LTLIBRARIES += events/libjanus_sampleevh.la
events_libjanus_sampleevh_la_SOURCES = events/janus_sampleevh.c
events_libjanus_sampleevh_la_CFLAGS = $(events_cflags)
events_libjanus_sampleevh_la_LDFLAGS = $(events_ldflags) -lcurl
events_libjanus_sampleevh_la_LIBADD = $(events_libadd)
conf_DATA += conf/janus.eventhandler.sampleevh.jcfg.sample
EXTRA_DIST += conf/janus.eventhandler.sampleevh.jcfg.sample
endif
if ENABLE_RABBITMQEVH
event_LTLIBRARIES += events/libjanus_rabbitmqevh.la
events_libjanus_rabbitmqevh_la_SOURCES = events/janus_rabbitmqevh.c
events_libjanus_rabbitmqevh_la_CFLAGS = $(events_cflags)
events_libjanus_rabbitmqevh_la_LDFLAGS = $(events_ldflags) -lrabbitmq
events_libjanus_rabbitmqevh_la_LIBADD = $(events_libadd)
conf_DATA += conf/janus.eventhandler.rabbitmqevh.jcfg.sample
EXTRA_DIST += conf/janus.eventhandler.rabbitmqevh.jcfg.sample
endif
if ENABLE_MQTTEVH
event_LTLIBRARIES += events/libjanus_mqttevh.la
events_libjanus_mqttevh_la_SOURCES = events/janus_mqttevh.c
events_libjanus_mqttevh_la_CFLAGS = $(events_cflags)
events_libjanus_mqttevh_la_LDFLAGS = $(events_ldflags) -lpaho-mqtt3as
events_libjanus_mqttevh_la_LIBADD = $(events_libadd)
conf_DATA += conf/janus.eventhandler.mqttevh.jcfg.sample
EXTRA_DIST += conf/janus.eventhandler.mqttevh.jcfg.sample
endif
##
# Plugins
##
plugins_cflags = \
$(AM_CFLAGS) \
$(PLUGINS_CFLAGS) \
$(NULL)
plugins_libadd = \
$(PLUGINS_LIBS) \
$(NULL)
if ENABLE_PLUGIN_AUDIOBRIDGE
plugin_LTLIBRARIES += plugins/libjanus_audiobridge.la
plugins_libjanus_audiobridge_la_SOURCES = plugins/janus_audiobridge.c
plugins_libjanus_audiobridge_la_CFLAGS = $(plugins_cflags) $(OPUS_CFLAGS)
plugins_libjanus_audiobridge_la_LDFLAGS = $(plugins_ldflags) $(OPUS_LDFLAGS) $(OPUS_LIBS)
plugins_libjanus_audiobridge_la_LIBADD = $(plugins_libadd) $(OPUS_LIBADD)
conf_DATA += conf/janus.plugin.audiobridge.jcfg.sample
EXTRA_DIST += conf/janus.plugin.audiobridge.jcfg.sample
endif
if ENABLE_PLUGIN_ECHOTEST
plugin_LTLIBRARIES += plugins/libjanus_echotest.la
plugins_libjanus_echotest_la_SOURCES = plugins/janus_echotest.c
plugins_libjanus_echotest_la_CFLAGS = $(plugins_cflags)
plugins_libjanus_echotest_la_LDFLAGS = $(plugins_ldflags)
plugins_libjanus_echotest_la_LIBADD = $(plugins_libadd)
conf_DATA += conf/janus.plugin.echotest.jcfg.sample
EXTRA_DIST += conf/janus.plugin.echotest.jcfg.sample
endif
if ENABLE_PLUGIN_RECORDPLAY
plugin_LTLIBRARIES += plugins/libjanus_recordplay.la
plugins_libjanus_recordplay_la_SOURCES = plugins/janus_recordplay.c
plugins_libjanus_recordplay_la_CFLAGS = $(plugins_cflags)
plugins_libjanus_recordplay_la_LDFLAGS = $(plugins_ldflags)
plugins_libjanus_recordplay_la_LIBADD = $(plugins_libadd)
conf_DATA += conf/janus.plugin.recordplay.jcfg.sample
recordings_DATA += \
plugins/recordings/1234.nfo \
plugins/recordings/rec-sample-audio.mjr \
plugins/recordings/rec-sample-video.mjr
EXTRA_DIST += \
conf/janus.plugin.recordplay.jcfg.sample.in \
$(recordings_DATA)
CLEANFILES += conf/janus.plugin.recordplay.jcfg.sample
endif
if ENABLE_PLUGIN_SIP
plugin_LTLIBRARIES += plugins/libjanus_sip.la
plugins_libjanus_sip_la_SOURCES = plugins/janus_sip.c
plugins_libjanus_sip_la_CFLAGS = $(plugins_cflags) $(SOFIA_CFLAGS)
plugins_libjanus_sip_la_LDFLAGS = $(plugins_ldflags) $(SOFIA_LDFLAGS) $(SOFIA_LIBS)
plugins_libjanus_sip_la_LIBADD = $(plugins_libadd) $(SOFIA_LIBADD)
conf_DATA += conf/janus.plugin.sip.jcfg.sample
EXTRA_DIST += conf/janus.plugin.sip.jcfg.sample
endif
if ENABLE_PLUGIN_SIPRE
plugin_LTLIBRARIES += plugins/libjanus_sipre.la
plugins_libjanus_sipre_la_SOURCES = plugins/janus_sipre.c
plugins_libjanus_sipre_la_CFLAGS = $(plugins_cflags) $(LIBRE_CFLAGS)
plugins_libjanus_sipre_la_LDFLAGS = $(plugins_ldflags) $(LIBRE_LDFLAGS) $(LIBRE_LIBS)
plugins_libjanus_sipre_la_LIBADD = $(plugins_libadd) $(LIBRE_LIBADD)
conf_DATA += conf/janus.plugin.sipre.jcfg.sample
EXTRA_DIST += conf/janus.plugin.sipre.jcfg.sample
endif
if ENABLE_PLUGIN_NOSIP
plugin_LTLIBRARIES += plugins/libjanus_nosip.la
plugins_libjanus_nosip_la_SOURCES = plugins/janus_nosip.c
plugins_libjanus_nosip_la_CFLAGS = $(plugins_cflags)
plugins_libjanus_nosip_la_LDFLAGS = $(plugins_ldflags)
plugins_libjanus_nosip_la_LIBADD = $(plugins_libadd)
conf_DATA += conf/janus.plugin.nosip.jcfg.sample
EXTRA_DIST += conf/janus.plugin.nosip.jcfg.sample
endif
if ENABLE_PLUGIN_STREAMING
plugin_LTLIBRARIES += plugins/libjanus_streaming.la
plugins_libjanus_streaming_la_SOURCES = plugins/janus_streaming.c
plugins_libjanus_streaming_la_CFLAGS = $(plugins_cflags)
plugins_libjanus_streaming_la_LDFLAGS = $(plugins_ldflags)
plugins_libjanus_streaming_la_LIBADD = $(plugins_libadd)
conf_DATA += conf/janus.plugin.streaming.jcfg.sample
stream_DATA += \
plugins/streams/music.mulaw \
plugins/streams/radio.alaw \
plugins/streams/test_gstreamer.sh \
plugins/streams/test_gstreamer_1.sh
EXTRA_DIST += \
conf/janus.plugin.streaming.jcfg.sample.in \
$(stream_DATA)
CLEANFILES += conf/janus.plugin.streaming.jcfg.sample
endif
if ENABLE_PLUGIN_VIDEOCALL
plugin_LTLIBRARIES += plugins/libjanus_videocall.la
plugins_libjanus_videocall_la_SOURCES = plugins/janus_videocall.c
plugins_libjanus_videocall_la_CFLAGS = $(plugins_cflags)
plugins_libjanus_videocall_la_LDFLAGS = $(plugins_ldflags)
plugins_libjanus_videocall_la_LIBADD = $(plugins_libadd)
conf_DATA += conf/janus.plugin.videocall.jcfg.sample
EXTRA_DIST += conf/janus.plugin.videocall.jcfg.sample
endif
if ENABLE_PLUGIN_VIDEOROOM
plugin_LTLIBRARIES += plugins/libjanus_videoroom.la
plugins_libjanus_videoroom_la_SOURCES = plugins/janus_videoroom.c
plugins_libjanus_videoroom_la_CFLAGS = $(plugins_cflags)
plugins_libjanus_videoroom_la_LDFLAGS = $(plugins_ldflags)
plugins_libjanus_videoroom_la_LIBADD = $(plugins_libadd)
conf_DATA += conf/janus.plugin.videoroom.jcfg.sample
EXTRA_DIST += conf/janus.plugin.videoroom.jcfg.sample
endif
if ENABLE_PLUGIN_VOICEMAIL
plugin_LTLIBRARIES += plugins/libjanus_voicemail.la
plugins_libjanus_voicemail_la_SOURCES = plugins/janus_voicemail.c
plugins_libjanus_voicemail_la_CFLAGS = $(plugins_cflags)
plugins_libjanus_voicemail_la_LDFLAGS = $(plugins_ldflags) -logg
plugins_libjanus_voicemail_la_LIBADD = $(plugins_libadd)
conf_DATA += conf/janus.plugin.voicemail.jcfg.sample
EXTRA_DIST += conf/janus.plugin.voicemail.jcfg.sample.in
CLEANFILES += conf/janus.plugin.voicemail.jcfg.sample
endif
if ENABLE_PLUGIN_TEXTROOM
plugin_LTLIBRARIES += plugins/libjanus_textroom.la
plugins_libjanus_textroom_la_SOURCES = plugins/janus_textroom.c
plugins_libjanus_textroom_la_CFLAGS = $(plugins_cflags)
plugins_libjanus_textroom_la_LDFLAGS = $(plugins_ldflags)
plugins_libjanus_textroom_la_LIBADD = $(plugins_libadd)
conf_DATA += conf/janus.plugin.textroom.jcfg.sample
EXTRA_DIST += conf/janus.plugin.textroom.jcfg.sample
endif
if ENABLE_PLUGIN_LUA
plugin_LTLIBRARIES += plugins/libjanus_lua.la
plugins_libjanus_lua_la_SOURCES = plugins/janus_lua.c plugins/janus_lua_data.h plugins/janus_lua_extra.c plugins/janus_lua_extra.h
plugins_libjanus_lua_la_CFLAGS = $(plugins_cflags) $(LUA_CFLAGS)
plugins_libjanus_lua_la_LDFLAGS = $(plugins_ldflags) $(LUA_LDFLAGS) $(LUA_LIBS)
plugins_libjanus_lua_la_LIBADD = $(plugins_libadd) $(LUA_LIBADD)
conf_DATA += conf/janus.plugin.lua.jcfg.sample
lua_DATA += \
plugins/lua/echotest.lua \
plugins/lua/videoroom.lua \
plugins/lua/janus-logger.lua \
plugins/lua/janus-sdp.lua
EXTRA_DIST += conf/janus.plugin.lua.jcfg.sample.in
endif
if ENABLE_PLUGIN_DUKTAPE
plugin_LTLIBRARIES += plugins/libjanus_duktape.la
plugins_libjanus_duktape_la_SOURCES = plugins/janus_duktape.c \
plugins/janus_duktape_data.h plugins/janus_duktape_extra.c plugins/janus_duktape_extra.h \
plugins/duktape-deps/duktape.c plugins/duktape-deps/duk_config.h plugins/duktape-deps/duktape.h \
plugins/duktape-deps/duk_module_duktape.c plugins/duktape-deps/duk_module_duktape.h \
plugins/duktape-deps/duk_console.c plugins/duktape-deps/duk_console.h
plugins_libjanus_duktape_la_CFLAGS = $(plugins_cflags) $(DUKTAPE_CFLAGS)
plugins_libjanus_duktape_la_LDFLAGS = $(plugins_ldflags) $(DUKTAPE_LDFLAGS) $(DUKTAPE_LIBS)
plugins_libjanus_duktape_la_LIBADD = $(plugins_libadd) $(DUKTAPE_LIBADD)
conf_DATA += conf/janus.plugin.duktape.jcfg.sample
duktape_DATA += \
plugins/duktape/echotest.js \
plugins/duktape/janus-sdp.js
EXTRA_DIST += conf/janus.plugin.duktape.jcfg.sample.in
endif
##
# Post-processing
##
if ENABLE_POST_PROCESSING
bin_PROGRAMS += janus-pp-rec
janus_pp_rec_SOURCES = \
postprocessing/pp-g711.c \
postprocessing/pp-g711.h \
postprocessing/pp-g722.c \
postprocessing/pp-g722.h \
postprocessing/pp-h264.c \
postprocessing/pp-h264.h \
postprocessing/pp-opus.c \
postprocessing/pp-opus.h \
postprocessing/pp-opus-silence.h \
postprocessing/pp-rtp.h \
postprocessing/pp-srt.c \
postprocessing/pp-srt.h \
postprocessing/pp-webm.c \
postprocessing/pp-webm.h \
postprocessing/janus-pp-rec.c \
log.c \
version.c \
$(NULL)
janus_pp_rec_CFLAGS = \
$(AM_CFLAGS) \
$(POST_PROCESSING_CFLAGS) \
$(NULL)
janus_pp_rec_LDADD = \
$(POST_PROCESSING_LIBS) \
$(NULL)
endif
dist_man1_MANS += postprocessing/janus-pp-rec.1
##
# Docs
##
if ENABLE_DOCS
SUBDIRS += docs
endif
##
# JavaScript module flavours for janus.js
##
if ENABLE_JAVASCRIPT_ES_MODULE
jsmodules_DATA += npm/bundles/janus.es.js
endif
if ENABLE_JAVASCRIPT_UMD_MODULE
jsmodules_DATA += npm/bundles/janus.umd.js
endif
if ENABLE_JAVASCRIPT_IIFE_MODULE
jsmodules_DATA += npm/bundles/janus.iife.js
endif
if ENABLE_JAVASCRIPT_COMMON_JS_MODULE
jsmodules_DATA += npm/bundles/janus.cjs.js
endif
EXTRA_DIST += $(jsmodules_DATA)
if ENABLE_JAVASCRIPT_MODULES
npm/node_modules/rollup/bin/rollup: npm/package.json
cd npm && $(NPM) install && touch node_modules/rollup/bin/rollup
npm/bundles/janus.%.js: html/janus.js npm/node_modules/rollup/bin/rollup npm/rollup.config.js npm/module.js
cd npm && $(NPM) run rollup -- --o $(patsubst npm/%,%,$@) --f $*
endif
##
# Configuration
##
configs:
$(MKDIR_P) $(DESTDIR)$(confdir)
$(foreach config,$(conf_DATA),cp "$(CURDIR)/$(config)" "$(DESTDIR)$(confdir)/$(notdir $(basename $(config) .sample))";)
##
# Extra cleanup
##
clean-local:
-rm -f docs/doxygen_sqlite3.db