access/rtp: remove recursion
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 28 Sep 2013 14:37:32 +0000 (17:37 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 28 Sep 2013 15:14:00 +0000 (18:14 +0300)
configure.ac
modules/.gitignore
modules/Makefile.am
modules/access/rtp/.gitignore [deleted file]
modules/access/rtp/Makefile.am
modules/stream_out/Modules.am

index 68866af..3f6ab28 100644 (file)
@@ -4186,7 +4186,6 @@ AC_CONFIG_FILES([
   lib/Makefile
   bin/Makefile
   test/Makefile
-  modules/access/rtp/Makefile
   modules/access_output/Makefile
   modules/audio_filter/Makefile
   modules/control/Makefile
index 4798b99..87bac2f 100644 (file)
@@ -1 +1,3 @@
 plugins.dat
+srtp-test-aes
+srtp-test-recv
index 0e76750..dc0fb39 100644 (file)
@@ -1,8 +1,8 @@
 noinst_LTLIBRARIES =
 noinst_HEADERS =
+check_PROGRAMS =
 
 BASE_SUBDIRS = \
-       access/rtp \
        audio_filter \
        control \
        gui \
@@ -27,11 +27,14 @@ if HAVE_VDPAU
 SUBDIRS += hw/vdpau
 endif
 
+TESTS =
+
 dist_noinst_SCRIPTS = genmf list.sh module.rc.in
 dist_noinst_DATA = MODULES_LIST
 
 include common.am
 include access/Makefile.am
+include access/rtp/Makefile.am
 include arm_neon/Makefile.am
 include audio_mixer/Makefile.am
 include audio_output/Makefile.am
diff --git a/modules/access/rtp/.gitignore b/modules/access/rtp/.gitignore
deleted file mode 100644 (file)
index c41c5cb..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-srtp-test-aes
-srtp-test-recv
index 634b2f3..bb2bb74 100644 (file)
@@ -1,52 +1,49 @@
-include $(top_srcdir)/modules/common.am
-accessdir = $(pluginsdir)/access
-
 # RTP plugin
-access_LTLIBRARIES = librtp_plugin.la
+access_LTLIBRARIES += librtp_plugin.la
 librtp_plugin_la_SOURCES = \
-       rtp.c \
-       rtp.h \
-       input.c \
-       session.c \
-       xiph.c
+       access/rtp/input.c \
+       access/rtp/session.c \
+       access/rtp/xiph.c \
+       access/rtp/rtp.c access/rtp/rtp.h
+librtp_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/access/rtp
 librtp_plugin_la_CFLAGS = $(AM_CFLAGS)
 librtp_plugin_la_LIBADD = $(SOCKET_LIBS) $(LIBPTHREAD)
 
 # Secure RTP library
-libvlc_srtp_la_SOURCES = srtp.c
-libvlc_srtp_la_CPPFLAGS =
+libvlc_srtp_la_SOURCES = access/rtp/srtp.c access/rtp/srtp.h
+libvlc_srtp_la_CPPFLAGS = -I$(srcdir)/access/rtp
 libvlc_srtp_la_CFLAGS = $(GCRYPT_CFLAGS)
 libvlc_srtp_la_LDFLAGS = -static
 libvlc_srtp_la_LIBADD = $(GCRYPT_LIBS) $(LIBPTHREAD)
-srtp_test_recv_CPPFLAGS =
+srtp_test_recv_SOURCES = access/rtp/srtp-test-recv.c
 srtp_test_recv_LDADD = libvlc_srtp.la
-srtp_test_aes_CPPFLAGS =
+srtp_test_aes_SOURCES = access/rtp/srtp-test-aes.c
 srtp_test_aes_LDADD = $(GCRYPT_LIBS)
 
 librtp_plugin_la_DEPENDENCIES =
 if HAVE_GCRYPT
-noinst_HEADERS = srtp.h
-noinst_LTLIBRARIES = libvlc_srtp.la
+noinst_LTLIBRARIES += libvlc_srtp.la
 
-check_PROGRAMS = srtp-test-aes srtp-test-recv
-TESTS = $(check_PROGRAMS)
+check_PROGRAMS += srtp-test-aes srtp-test-recv
+TESTS += srtp-test-aes srtp-test-recv
 
-librtp_plugin_la_CFLAGS += -DHAVE_SRTP $(GCRYPT_CFLAGS)
+librtp_plugin_la_CPPFLAGS += -DHAVE_SRTP
+librtp_plugin_la_CFLAGS += $(GCRYPT_CFLAGS)
 librtp_plugin_la_LIBADD += libvlc_srtp.la $(GCRYPT_LIBS)
 librtp_plugin_la_DEPENDENCIES += libvlc_srtp.la
 endif
 
-lcov-run:
-       rm -Rf *.gcda lcov
-       $(MAKE) $(AM_MAKEFLAGS) check
-
-lcov-pre.out:
-       lcov -c -d . -o lcov.tmp
-
-lcov.out: lcov-pre.out
-       lcov -r lcov.tmp '*test*' > lcov.out
-
-lcov: lcov.out
-       genhtml lcov.out -o lcov
-
-.PHONY: lcov-run
+#lcov-run:
+#      rm -Rf *.gcda lcov
+#      $(MAKE) $(AM_MAKEFLAGS) check
+#
+#lcov-pre.out:
+#      lcov -c -d . -o lcov.tmp
+#
+#lcov.out: lcov-pre.out
+#      lcov -r lcov.tmp '*test*' > lcov.out
+#
+#lcov: lcov.out
+#      genhtml lcov.out -o lcov
+#
+#.PHONY: lcov-run
index 0d9cd8a..2340c64 100644 (file)
@@ -48,7 +48,7 @@ libstream_out_rtp_plugin_la_CFLAGS = $(AM_CFLAGS)
 libstream_out_rtp_plugin_la_LIBADD = $(SOCKET_LIBS) $(LIBPTHREAD)
 if HAVE_GCRYPT
 SRTP_CFLAGS = -I$(top_srcdir)/modules/access/rtp
-SRTP_LIBS = $(top_builddir)/modules/access/rtp/libvlc_srtp.la
+SRTP_LIBS = $(top_builddir)/modules/libvlc_srtp.la
 libstream_out_rtp_plugin_la_CFLAGS += -DHAVE_SRTP $(SRTP_CFLAGS) \
        $(GCRYPT_CFLAGS)
 libstream_out_rtp_plugin_la_LIBADD += $(SRTP_LIBS) $(GCRYPT_LIBS)