From: Gurkirpal Singh Date: Fri, 28 Apr 2017 20:26:01 +0000 (+0530) Subject: configure.ac: add tizonia target for --with-omx-target flag. X-Git-Tag: 1.16.2~215 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ae14bb362a26bb1b48f7f99c7fc2350e0fa50ffa;p=platform%2Fupstream%2Fgst-omx.git 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 --- 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"])