forked from enlightenment/efl
evas-drm: Check for drm hw accel support in the drm engine
Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
437654c6b5
commit
b2ad8e401b
|
@ -585,6 +585,7 @@ AS_IF([test "x${have_dep}" = "xyes"], [$4], [$5])
|
|||
|
||||
])
|
||||
|
||||
|
||||
dnl use: EVAS_CHECK_ENGINE_DEP_DRM(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
|
||||
|
||||
AC_DEFUN([EVAS_CHECK_ENGINE_DEP_DRM],
|
||||
|
@ -603,6 +604,20 @@ PKG_CHECK_EXISTS([libdrm],
|
|||
[have_dep="no"])
|
||||
|
||||
if test "x${have_dep}" = "xyes" ; then
|
||||
if test "x${want_drm_hw_accel}" = "xyes"; then
|
||||
PKG_CHECK_EXISTS([gbm egl >= 7.10 glesv2],
|
||||
[
|
||||
have_hw_dep="yes"
|
||||
requirement="libdrm gbm egl >= 7.10 glesv2"
|
||||
],
|
||||
[have_hw_dep="no"])
|
||||
fi
|
||||
|
||||
if test "x${have_hw_dep}" = "xyes"; then
|
||||
AC_DEFINE(HAVE_DRM_HW_ACCEL, 1, [Enabled drm hardware accelerated rendering])
|
||||
fi
|
||||
AM_CONDITIONAL([HAVE_DRM_HW_ACCEL], [test "x${have_hw_dep}" = "xyes"])
|
||||
|
||||
if test "x$3" = "xstatic" ; then
|
||||
requirements_pc_evas="${requirement} ${requirements_pc_evas}"
|
||||
requirements_pc_deps_evas="${requirement} ${requirements_pc_deps_evas}"
|
||||
|
|
Loading…
Reference in New Issue