]> git.sesse.net Git - vlc/blob - modules/access/rtp/Modules.am
Move libs/srtp/* to modules/access/rtp/
[vlc] / modules / access / rtp / Modules.am
1 # RTP plugin
2 libvlc_LTLIBRARIES += \
3         librtp_plugin.la
4 librtp_plugin_la_SOURCES = \
5         rtp.c \
6         rtp.h \
7         input.c \
8         session.c \
9         xiph.c
10 librtp_plugin_la_CFLAGS = $(AM_CFLAGS)
11 librtp_plugin_la_LIBADD = $(AM_LIBADD) $(SOCKET_LIBS)
12 librtp_plugin_la_DEPENDENCIES =
13
14 # Secure RTP library
15 libvlc_srtp_la_SOURCES = srtp.c
16 libvlc_srtp_la_CPPFLAGS =
17 libvlc_srtp_la_CFLAGS = $(GCRYPT_CFLAGS)
18 libvlc_srtp_la_LDFLAGS =
19 libvlc_srtp_la_LIBADD = $(GCRYPT_LIBS)
20 srtp_test_recv_CPPFLAGS =
21 srtp_test_recv_LDADD = libvlc_srtp.la
22 srtp_test_aes_CPPFLAGS =
23 srtp_test_aes_LDADD = $(GCRYPT_LIBS)
24
25 if HAVE_GCRYPT
26 noinst_HEADERS = srtp.h
27 noinst_LTLIBRARIES = libvlc_srtp.la
28
29 check_PROGRAMS = srtp-test-aes srtp-test-recv
30 TESTS = $(check_PROGRAMS)
31
32 librtp_plugin_la_CFLAGS += -DHAVE_SRTP $(GCRYPT_CFLAGS)
33 librtp_plugin_la_LIBADD += libvlc_srtp.la $(GCRYPT_LIBS)
34 librtp_plugin_la_DEPENDENCIES += libvlc_srtp.la
35 endif
36
37 lcov-run:
38         rm -Rf *.gcda lcov
39         $(MAKE) $(AM_MAKEFLAGS) check
40
41 lcov-pre.out:
42         lcov -c -d . -o lcov.tmp
43
44 lcov.out: lcov-pre.out
45         lcov -r lcov.tmp '*test*' > lcov.out
46
47 lcov: lcov.out
48         genhtml lcov.out -o lcov
49
50 .PHONY: lcov-run