access_output: remove Makefile recursion
authorRémi Denis-Courmont <remi@remlab.net>
Wed, 11 Feb 2015 16:28:45 +0000 (18:28 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 12 Feb 2015 06:17:41 +0000 (08:17 +0200)
configure.ac
modules/Makefile.am
modules/access_output/.gitignore [deleted file]
modules/access_output/Makefile.am [new file with mode: 0644]
modules/access_output/Modules.am [deleted file]

index 0b03e9f..d203ffb 100644 (file)
@@ -650,7 +650,7 @@ AC_CHECK_FUNCS([if_nameindex if_nametoindex])
 VLC_RESTORE_FLAGS
 
 AS_IF([test -n "$SOCKET_LIBS"], [
-  VLC_ADD_LIBS([access_rtmp access_output_shout sap stream_out_standard stream_out_rtp stream_out_raop stream_out_chromecast ts remoteosd audiobargraph_a],[${SOCKET_LIBS}])
+  VLC_ADD_LIBS([access_rtmp sap stream_out_standard stream_out_rtp stream_out_raop stream_out_chromecast ts remoteosd audiobargraph_a],[${SOCKET_LIBS}])
 ])
 AC_SUBST(SOCKET_LIBS)
 
@@ -4117,7 +4117,6 @@ AC_CONFIG_FILES([
   lib/Makefile
   bin/Makefile
   test/Makefile
-  modules/access_output/Makefile
   modules/gui/ios_dialog_provider/Makefile
   modules/gui/macosx/Makefile
   modules/gui/minimal_macosx/Makefile
index aaa357e..d5aadf6 100644 (file)
@@ -4,14 +4,13 @@ check_PROGRAMS =
 EXTRA_DIST =
 
 EXTRA_SUBDIRS = \
-       access_output \
        stream_out \
        hw/mmal
 
 SUBDIRS = .
 DIST_SUBDIRS = . $(EXTRA_SUBDIRS)
 if ENABLE_SOUT
-SUBDIRS += access_output stream_out
+SUBDIRS += stream_out
 endif
 if HAVE_MMAL
 SUBDIRS += hw/mmal
@@ -50,6 +49,7 @@ include video_splitter/Makefile.am
 include video_output/Makefile.am
 include visualization/Makefile.am
 if ENABLE_SOUT
+include access_output/Makefile.am
 include mux/Makefile.am
 endif
 
diff --git a/modules/access_output/.gitignore b/modules/access_output/.gitignore
deleted file mode 100644 (file)
index 08a6d72..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Makefile.am
diff --git a/modules/access_output/Makefile.am b/modules/access_output/Makefile.am
new file mode 100644 (file)
index 0000000..27e1897
--- /dev/null
@@ -0,0 +1,28 @@
+access_outdir = $(pluginsdir)/access_output
+
+libaccess_output_dummy_plugin_la_SOURCES = access_output/dummy.c
+libaccess_output_file_plugin_la_SOURCES = access_output/file.c
+libaccess_output_http_plugin_la_SOURCES = access_output/http.c \
+       access_output/bonjour.c access_output/bonjour.h
+libaccess_output_udp_plugin_la_SOURCES = access_output/udp.c
+libaccess_output_udp_plugin_la_LIBADD = $(SOCKET_LIBS) $(LIBPTHREAD)
+
+access_out_LTLIBRARIES = \
+       libaccess_output_dummy_plugin.la \
+       libaccess_output_file_plugin.la \
+       libaccess_output_http_plugin.la \
+       libaccess_output_udp_plugin.la
+
+libaccess_output_livehttp_plugin_la_SOURCES = access_output/livehttp.c
+libaccess_output_livehttp_plugin_la_CFLAGS = $(AM_CFLAGS) $(GCRYPT_CFLAGS)
+libaccess_output_livehttp_plugin_la_LIBADD = $(GCRYPT_LIBS) -lgpg-error
+if HAVE_GCRYPT
+access_out_LTLIBRARIES += libaccess_output_livehttp_plugin.la
+endif
+
+libaccess_output_shout_plugin_la_SOURCES = access_output/shout.c
+libaccess_output_shout_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(SHOUT_CFLAGS)
+libaccess_output_shout_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(access_outdir)'
+libaccess_output_shout_plugin_la_LIBADD = $(SHOUT_LIBS) $(SOCKET_LIBS)
+access_out_LTLIBRARIES += $(LTLIBaccess_output_shout)
+EXTRA_LTLIBRARIES += libaccess_output_shout_plugin.la
diff --git a/modules/access_output/Modules.am b/modules/access_output/Modules.am
deleted file mode 100644 (file)
index 9bf25fc..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-SOURCES_access_output_dummy = dummy.c
-SOURCES_access_output_file = file.c
-SOURCES_access_output_http = http.c bonjour.c bonjour.h
-SOURCES_access_output_shout = shout.c
-
-access_output_LTLIBRARIES += \
-       libaccess_output_dummy_plugin.la \
-       libaccess_output_file_plugin.la \
-       libaccess_output_http_plugin.la
-
-libaccess_output_udp_plugin_la_SOURCES = udp.c
-libaccess_output_udp_plugin_la_LIBADD = $(SOCKET_LIBS) $(LIBPTHREAD)
-access_output_LTLIBRARIES += libaccess_output_udp_plugin.la
-
-libaccess_output_livehttp_plugin_la_SOURCES = livehttp.c
-libaccess_output_livehttp_plugin_la_CFLAGS = $(AM_CFLAGS) $(GCRYPT_CFLAGS)
-libaccess_output_livehttp_plugin_la_LIBADD = $(GCRYPT_LIBS) -lgpg-error
-if HAVE_GCRYPT
-access_output_LTLIBRARIES += libaccess_output_livehttp_plugin.la
-endif