[vlc-devel] [PATCH] demux: move the xiph metadata handling common code in a static library
Steve Lhomme
robux4 at videolabs.io
Sat Nov 11 17:47:04 CET 2017
---
modules/demux/Makefile.am | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/modules/demux/Makefile.am b/modules/demux/Makefile.am
index d8c99b788a..6456c00974 100644
--- a/modules/demux/Makefile.am
+++ b/modules/demux/Makefile.am
@@ -1,15 +1,19 @@
demuxdir = $(pluginsdir)/demux
demux_LTLIBRARIES =
-libflacsys_plugin_la_SOURCES = demux/flac.c demux/xiph_metadata.h demux/xiph_metadata.c
+vlc_xiph_metadata_la_SOURCES = demux/xiph_metadata.h demux/xiph_metadata.c
+noinst_LTLIBRARIES += vlc_xiph_metadata.la
+
+libflacsys_plugin_la_SOURCES = demux/flac.c
libflacsys_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
+libflacsys_plugin_la_LIBADD = vlc_xiph_metadata.la
demux_LTLIBRARIES += libflacsys_plugin.la
libogg_plugin_la_SOURCES = demux/ogg.c demux/ogg.h demux/oggseek.c demux/oggseek.h \
- demux/xiph_metadata.h demux/xiph.h demux/xiph_metadata.c demux/opus.h
+ demux/xiph.h demux/opus.h
libogg_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(LIBVORBIS_CFLAGS) $(OGG_CFLAGS)
libogg_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(demuxdir)'
-libogg_plugin_la_LIBADD = $(LIBVORBIS_LIBS) $(OGG_LIBS)
+libogg_plugin_la_LIBADD = $(LIBVORBIS_LIBS) $(OGG_LIBS) vlc_xiph_metadata.la
EXTRA_LTLIBRARIES += libogg_plugin.la
demux_LTLIBRARIES += $(LTLIBogg)
--
2.14.2
More information about the vlc-devel
mailing list