]> git.sesse.net Git - vlc/commitdiff
mmal: Move video_output plugin into hw/mmal module
authorJulian Scheel <julian@jusst.de>
Fri, 29 Aug 2014 07:09:33 +0000 (09:09 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 1 Sep 2014 18:42:01 +0000 (21:42 +0300)
As the mmal modules will require some shared code in the future move them out
of the split directory structure into a hw/mmal subdirectory, like it
is handled with vdpau plugins already.

Signed-off-by: Julian Scheel <julian@jusst.de>
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
configure.ac
modules/Makefile.am
modules/hw/mmal/Makefile.am [new file with mode: 0644]
modules/hw/mmal/vout.c [moved from modules/video_output/mmal.c with 100% similarity]
modules/video_output/Modules.am

index b780242d594e4f7212353461a667e13fa5bc5e86..60c18e21b9314abdd485d3e904917f1ce43c34ba 100644 (file)
@@ -3515,31 +3515,33 @@ AC_SUBST(KVA_LIBS)
 AM_CONDITIONAL([HAVE_KVA], [test "${have_kva}" = "yes"])
 
 dnl
-dnl MMAL vout plugin
+dnl MMAL plugin
 dnl
-AC_ARG_ENABLE(mmal-vout,
-  AS_HELP_STRING([--enable-mmal-vout],
-    [Multi-Media Abstraction Layer (MMAL) based vout plugin for Raspberry Pi (default enable)]))
-if test "${enable_mmal_vout}" != "no"; then
+AC_ARG_ENABLE(mmal,
+  AS_HELP_STRING([--enable-mmal],
+    [Multi-Media Abstraction Layer (MMAL) hardware plugin (default enable)]))
+if test "${enable_mmal}" != "no"; then
   VLC_SAVE_FLAGS
   LDFLAGS="${LDFLAGS} -L/opt/vc/lib"
   CPPFLAGS="${CPPFLAGS} -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
   AC_CHECK_HEADERS(interface/mmal/mmal.h,
     [ AC_CHECK_LIB(bcm_host, vc_tv_unregister_callback_full, [
-        VLC_ADD_PLUGIN([mmal_vout])
-        VLC_ADD_LDFLAGS([mmal_vout],[ -L/opt/vc/lib ])
-        VLC_ADD_CFLAGS([mmal_vout],[ -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux ])
-        VLC_ADD_LIBS([mmal_vout],[ -lbcm_host -lmmal ]) ], [
-          AS_IF([test "${enable_mmal_vout}" = "yes"],
+        have_mmal="yes"
+        VLC_ADD_PLUGIN([mmal])
+        VLC_ADD_LDFLAGS([mmal],[ -L/opt/vc/lib ])
+        VLC_ADD_CFLAGS([mmal],[ -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux ])
+        VLC_ADD_LIBS([mmal],[ -lbcm_host -lmmal ]) ], [
+          AS_IF([test "${enable_mmal}" = "yes"],
             [ AC_MSG_ERROR([Cannot find bcm library...]) ],
             [ AC_MSG_WARN([Cannot find bcm library...]) ])
           ],
         [])
-    ] , [ AS_IF([test "${enable_mmal_vout}" = "yes"],
+    ] , [ AS_IF([test "${enable_mmal}" = "yes"],
       [ AC_MSG_ERROR([Cannot find development headers for mmal...]) ],
       [ AC_MSG_WARN([Cannot find development headers for mmal...]) ]) ])
   VLC_RESTORE_FLAGS
 fi
+AM_CONDITIONAL([HAVE_MMAL], [test "${have_mmal}" = "yes"])
 
 dnl
 dnl  Audio plugins
@@ -4263,6 +4265,7 @@ AC_CONFIG_FILES([
   modules/video_output/Makefile
   modules/visualization/Makefile
   modules/hw/vdpau/Makefile
+  modules/hw/mmal/Makefile
 ])
 
 AM_COND_IF([HAVE_WIN32], [
index dc0fb39e6384b80aa1b9ac4d283ad68017458580..005c15017dce23a7ab74fe4dbc8fa7dfb0c274c2 100644 (file)
@@ -16,7 +16,8 @@ EXTRA_SUBDIRS = \
        access_output \
        mux \
        stream_out \
-       hw/vdpau
+       hw/vdpau \
+       hw/mmal
 
 SUBDIRS = . $(BASE_SUBDIRS)
 DIST_SUBDIRS = . $(BASE_SUBDIRS) $(EXTRA_SUBDIRS)
@@ -26,6 +27,9 @@ endif
 if HAVE_VDPAU
 SUBDIRS += hw/vdpau
 endif
+if HAVE_MMAL
+SUBDIRS += hw/mmal
+endif
 
 TESTS =
 
diff --git a/modules/hw/mmal/Makefile.am b/modules/hw/mmal/Makefile.am
new file mode 100644 (file)
index 0000000..0ddbe29
--- /dev/null
@@ -0,0 +1,8 @@
+include $(top_srcdir)/modules/common.am
+mmaldir = $(pluginsdir)/mmal
+
+libmmal_vout_plugin_la_SOURCES = vout.c
+libmmal_vout_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_mmal)
+libmmal_vout_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(mmaldir)' $(LDFLAGS_mmal) -lm
+libmmal_vout_plugin_la_LIBADD = $(LIBS_mmal)
+mmal_LTLIBRARIES = libmmal_vout_plugin.la
index b610edccd545e657a6f7938d73945653fd46a23e..ad5737fc309c04b39021f1c2024549fd9c9adbc6 100644 (file)
@@ -251,14 +251,6 @@ libcaca_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
 EXTRA_LTLIBRARIES += libcaca_plugin.la
 vout_LTLIBRARIES += $(LTLIBcaca)
 
-### MMAL ###
-libmmal_vout_plugin_la_SOURCES = mmal.c
-libmmal_vout_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_mmal_vout)
-libmmal_vout_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)' $(LDFLAGS_mmal_vout) -lm
-libmmal_vout_plugin_la_LIBADD = $(LIBS_mmal_vout)
-EXTRA_LTLIBRARIES += libmmal_vout_plugin.la
-vout_LTLIBRARIES += $(LTLIBmmal_vout)
-
 ### Common ###
 libvdummy_plugin_la_SOURCES = vdummy.c