[vlc-commits] omxil: Add a configure option for enabling raspberry pi specific omx code

Martin Storsjö git at videolan.org
Mon Mar 18 17:41:16 CET 2013


vlc | branch: master | Martin Storsjö <martin at martin.st> | Fri Mar 15 17:35:49 2013 +0200| [6adedc891a9f9a25485a636788124ef3aca13f66] | committer: Martin Storsjö

omxil: Add a configure option for enabling raspberry pi specific omx code

Signed-off-by: Martin Storsjö <martin at martin.st>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6adedc891a9f9a25485a636788124ef3aca13f66
---

 configure.ac             |   11 +++++++++++
 modules/codec/Modules.am |    4 ++--
 2 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 78e1faa..9947050 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2133,6 +2133,17 @@ then
 fi
 
 dnl
+dnl raspberry pi openmax il configuration
+dnl
+AC_ARG_ENABLE(rpi-omxil,
+  [  --enable-rpi-omxil     openmax il configured for raspberry pi (default disabled)])
+if test "${enable_rpi_omxil}" = "yes"
+then
+  VLC_ADD_PLUGIN([omxil omxil_vout])
+  VLC_ADD_CFLAGS([omxil omxil_vout],[-DRPI_OMX])
+fi
+
+dnl
 dnl CrystalHD codec plugin
 dnl
 AC_ARG_ENABLE(crystalhd,
diff --git a/modules/codec/Modules.am b/modules/codec/Modules.am
index a0929c3..7401988 100644
--- a/modules/codec/Modules.am
+++ b/modules/codec/Modules.am
@@ -187,11 +187,11 @@ libomxil_plugin_la_SOURCES = \
 	h264_nal.h \
 	omxil/qcom.c omxil/qcom.h \
 	omxil/omxil.c omxil/omxil.h omxil/omxil_core.c omxil/omxil_core.h
-libomxil_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/omxil
+libomxil_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/omxil $(CFLAGS_omxil)
 libomxil_plugin_la_LIBADD = $(AM_LIBADD) $(LIBDL)
 
 libomxil_vout_plugin_la_SOURCES = omxil/vout.c omxil/omxil_core.c omxil/utils.c omxil/qcom.c
-libomxil_vout_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/omxil
+libomxil_vout_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/omxil $(CFLAGS_omxil_vout)
 libomxil_vout_plugin_la_LIBADD = $(AM_LIBADD) $(LIBDL)
 
 libiomx_plugin_la_SOURCES = $(libomxil_plugin_la_SOURCES)



More information about the vlc-commits mailing list