ecore_evas: make it easier to have custom dependencies per module.

This commit is contained in:
Cedric BAIL 2016-04-01 16:17:35 -07:00
parent b6f87499e1
commit 5505a262e2
1 changed files with 7 additions and 5 deletions

View File

@ -16,11 +16,13 @@ if test "x$want_module" = "xyes" || test "x$want_module" = "xstatic"; then
AC_DEFINE([BUILD_ECORE_EVAS_]m4_defn([UP]), [1], [Support for $1 Engine in Ecore_Evas])
have_ecore_evas_[]m4_defn([DOWN])="yes"
if test "x$1" = "xgl-drm"; then
PKG_CHECK_MODULES([GBM], [gbm])
ecore_evas_engines_[]m4_defn([DOWN])[]_cflags="${GBM_CFLAGS}"
ecore_evas_engines_[]m4_defn([DOWN])[]_libs="${GBM_LIBS}"
fi
case "$1" in
xgl-drm)
PKG_CHECK_MODULES([GBM], [gbm])
ecore_evas_engines_[]m4_defn([DOWN])[]_cflags="${GBM_CFLAGS}"
ecore_evas_engines_[]m4_defn([DOWN])[]_libs="${GBM_LIBS}"
;;
esac
fi
AC_SUBST([ecore_evas_engines_]m4_defn([DOWN])[_cflags])