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
modules/video_output/Makefile
modules/visualization/Makefile
modules/hw/vdpau/Makefile
+ modules/hw/mmal/Makefile
])
AM_COND_IF([HAVE_WIN32], [
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