[vlc-devel] [PATCH 4/7] mmal: Makefile.am: use convenience library for mmal
Alexandre Janniaux
ajanni at videolabs.io
Sat Mar 13 17:07:54 UTC 2021
The convenience library factors the mmal libs and the object between the
different plugins.
---
modules/hw/mmal/Makefile.am | 30 ++++++++++++++++--------------
1 file changed, 16 insertions(+), 14 deletions(-)
diff --git a/modules/hw/mmal/Makefile.am b/modules/hw/mmal/Makefile.am
index 3d899645dd..0815e37870 100644
--- a/modules/hw/mmal/Makefile.am
+++ b/modules/hw/mmal/Makefile.am
@@ -1,31 +1,33 @@
include $(top_srcdir)/modules/common.am
mmaldir = $(pluginsdir)/mmal
-libmmal_vout_plugin_la_SOURCES = vout.c subpic.c subpic.h mmal_picture.c mmal_picture.h \
- mmal_cma.c mmal_cma.h
+libvlc_mmal_la_SOURCES = subpic.c subpic.h mmal_picture.c mmal_picture.h \
+ mmal_cma.c mmal_cma.h
+libvlc_mmal_la_CFLAGS = $(AM_CFLAGS) $(MMAL_CFLAGS)
+libvlc_mmal_la_LIBADD = $(MMAL_LIBS)
+
+libmmal_vout_plugin_la_SOURCES = vout.c
libmmal_vout_plugin_la_CFLAGS = $(AM_CFLAGS) $(MMAL_CFLAGS)
-libmmal_vout_plugin_la_LIBADD = $(MMAL_LIBS) $(LIBM)
+libmmal_vout_plugin_la_LIBADD = $(LIBM) libvlc_mmal.la
-libmmal_codec_plugin_la_SOURCES = codec.c subpic.c subpic.h mmal_picture.c mmal_picture.h \
- mmal_cma.c mmal_cma.h
+libmmal_codec_plugin_la_SOURCES = codec.c
libmmal_codec_plugin_la_CFLAGS = $(AM_CFLAGS) $(MMAL_CFLAGS)
-libmmal_codec_plugin_la_LIBADD = $(MMAL_LIBS)
+libmmal_codec_plugin_la_LIBADD = libvlc_mmal.la
-libmmal_converter_plugin_la_SOURCES = converter.c subpic.c subpic.h mmal_picture.c mmal_picture.h \
- mmal_cma.c mmal_cma.h
+libmmal_converter_plugin_la_SOURCES = converter.c
libmmal_converter_plugin_la_CFLAGS = $(AM_CFLAGS) $(MMAL_CFLAGS)
-libmmal_converter_plugin_la_LIBADD = $(MMAL_LIBS)
+libmmal_converter_plugin_la_LIBADD = libvlc_mmal.la
-libmmal_deinterlace_plugin_la_SOURCES = deinterlace.c mmal_picture.c mmal_picture.h \
- mmal_cma.c mmal_cma.h
+libmmal_deinterlace_plugin_la_SOURCES = deinterlace.c
libmmal_deinterlace_plugin_la_CFLAGS = $(AM_CFLAGS) $(MMAL_CFLAGS)
-libmmal_deinterlace_plugin_la_LIBADD = $(MMAL_LIBS)
+libmmal_deinterlace_plugin_la_LIBADD = libvlc_mmal.la
-libmmal_device_plugin_la_SOURCES = decoder_device.c mmal_picture.h
+libmmal_device_plugin_la_SOURCES = decoder_device.c
libmmal_device_plugin_la_CFLAGS = $(AM_CFLAGS) $(MMAL_CFLAGS)
-libmmal_device_plugin_la_LIBADD = $(MMAL_LIBS)
+libmmal_device_plugin_la_LIBADD = libvlc_mmal.la
if HAVE_MMAL
+noinst_LTLIBRARIES += libvlc_mmal.la
mmal_LTLIBRARIES = \
libmmal_device_plugin.la \
libmmal_deinterlace_plugin.la \
--
2.30.2
More information about the vlc-devel
mailing list