From ae14bb362a26bb1b48f7f99c7fc2350e0fa50ffa Mon Sep 17 00:00:00 2001 From: Gurkirpal Singh Date: Sat, 29 Apr 2017 01:56:01 +0530 Subject: [PATCH] configure.ac: add tizonia target for --with-omx-target flag. This will check for tizilheaders.pc which adds path to omx-il headers its cflags. Can be installed all together with the 1.2 headers with package tizilheaders if not building from sources: https://github.com/tizonia/tizonia-openmax-il It is also adviced to remove libomxil-bellagio-dev package because it installs headers /usr/include directly, ex: /usr/include/OMX_Video.h. https://bugzilla.gnome.org/show_bug.cgi?id=782800 --- configure.ac | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index b99c20a..1a62e97 100644 --- a/configure.ac +++ b/configure.ac @@ -198,12 +198,16 @@ case "${ac_cv_omx_target}" in zynqultrascaleplus) AC_DEFINE(USE_OMX_TARGET_ZYNQ_USCALE_PLUS, 1, [Use Zynq UltraScale+ OpenMAX IL target]) ;; + tizonia) + AC_DEFINE(USE_OMX_TARGET_TIZONIA, 1, [Use Tizonia OpenMAX IL target]) + ;; none|*) - AC_ERROR([invalid OpenMAX IL target, you must specify one of --with-omx-target={generic,rpi,bellagio,zynqultrascaleplus}]) + AC_ERROR([invalid OpenMAX IL target, you must specify one of --with-omx-target={generic,rpi,bellagio,tizonia,zynqultrascaleplus}]) ;; esac AM_CONDITIONAL(USE_OMX_TARGET_GENERIC, test "x$ac_cv_omx_target" = "xgeneric") AM_CONDITIONAL(USE_OMX_TARGET_BELLAGIO, test "x$ac_cv_omx_target" = "xbellagio") +AM_CONDITIONAL(USE_OMX_TARGET_TIZONIA, test "x$ac_cv_omx_target" = "xtizonia") AM_CONDITIONAL(USE_OMX_TARGET_RPI, test "x$ac_cv_omx_target" = "xrpi") AM_CONDITIONAL(USE_OMX_TARGET_ZYNQ_USCALE_PLUS, test "x$ac_cv_omx_target" = "xzynqultrascaleplus") @@ -219,6 +223,12 @@ elif test x"$ac_cv_omx_target_struct_packing" != x"none"; then AC_DEFINE_UNQUOTED(GST_OMX_STRUCT_PACKING, $ac_cv_omx_target_struct_packing, [The struct packing used for OpenMAX structures]) fi +dnl settings for tizonia target +if test "x$ac_cv_omx_target" = "xtizonia"; then + PKG_CHECK_MODULES([TIZONIA], [tizilheaders]) + CPPFLAGS="$CPPFLAGS $TIZONIA_CFLAGS" +fi + AC_ARG_WITH([omx-header-path], AS_HELP_STRING([--with-omx-header-path],[path of external OpenMAX IL header files]), [omx_header_path="$withval"], [omx_header_path="none"]) -- 2.7.4