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