summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorSeunghun Lee <beauty.positive3@gmail.com>2015-06-22 10:23:54 -0400
committerChris Michael <cp.michael@samsung.com>2015-06-22 10:31:42 -0400
commit8b621775619b9959fe952b095b3baaa7aaa99572 (patch)
tree99059a841a79729cac4687ea41f3abf672e6e455 /configure.ac
parent3671506ad39d2a956e388e151bd20f1b9ffd62a5 (diff)
ecore-buffer: Add ecore_buffer library to EFL.
Summary: Ecore_Buffer is abstraction of graphic buffer. it supports backend of shm, x11_dri2 and x11_dri3 for now, and this library also provides method to share buffers between processes. Ecore_Buffer_Provider and Ecore_Buffer_Consumer is for this, sharing buffer. provider draws something in to Ecore_Buffer, and consumer receives and displays it. the binary, bq_mgr is a connection maker for buffer provider and consumer. it can be included Enlightenment as a deamon later. @feature Test Plan: 1. Configure with --enable-ecore-buffer and --enable-always-build-examples to build examples. 2. Run bq_mgr, it connects consumer and provider. 3. Run ecore_buffer_provider_example and ecore_buffer_consumer_example Reviewers: lsj119, gwanglim, cedric, zmike, jpeg, raster, devilhorns Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D2197
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac72
1 files changed, 72 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 9b0e8ca..1673471 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1705,6 +1705,17 @@ AC_ARG_ENABLE([tile-rotate],
1705 ], 1705 ],
1706 [have_tile_rotate="no"]) 1706 [have_tile_rotate="no"])
1707 1707
1708# Ecore Buffer
1709AC_ARG_ENABLE([ecore-buffer],
1710 [AS_HELP_STRING([--enable-ecore-buffer],[enable ecore-buffer. @<:@default=disabled@:>@])],
1711 [
1712 if test "x${enableval}" = "xyes" ; then
1713 want_ecore_buffer="yes"
1714 else
1715 want_ecore_buffer="no"
1716 fi
1717 ],
1718 [want_ecore_buffer="no"])
1708 1719
1709# Image Loaders 1720# Image Loaders
1710 1721
@@ -4587,6 +4598,65 @@ AC_ARG_ENABLE([i-really-know-what-i-am-doing-and-that-this-will-probably-break-t
4587 ], 4598 ],
4588 [ BARF_OK="xno" ]) 4599 [ BARF_OK="xno" ])
4589 4600
4601#### Ecore_Buffer
4602build_ecore_buffer_x11_dri2="no"
4603build_ecore_buffer_x11_dri3="no"
4604EFL_LIB_START_OPTIONAL([Ecore_Buffer], [test "${want_ecore_buffer}" = "yes"])
4605### Checks for libraries
4606EFL_INTERNAL_DEPEND_PKG([ECORE_BUFFER], [eina])
4607EFL_INTERNAL_DEPEND_PKG([ECORE_BUFFER], [eo])
4608EFL_INTERNAL_DEPEND_PKG([ECORE_BUFFER], [ecore])
4609EFL_DEPEND_PKG([ECORE_BUFFER], [WAYLAND],
4610 [wayland-server >= 1.5.0 wayland-client >= 1.5.0])
4611
4612PKG_CHECK_MODULES([X11_DRI_COMMON],
4613 [
4614 libtbm >= 1.1.0,
4615 libdrm >= 2.4.35,
4616 ],
4617 [have_x11_dri_common_pkgs="yes"],
4618 [have_x11_dri_common_pkgs="no"]
4619)
4620
4621if test "x$have_x11_dri_common_pkgs" = "xyes" ; then
4622 EFL_INTERNAL_DEPEND_PKG([ECORE_BUFFER], [ecore_x])
4623
4624 PKG_CHECK_MODULES([X11_DRI2], [libdri2],
4625 [have_x11_dri2_pkgs="yes"],
4626 [have_x11_dri2_pkgs="no"])
4627 PKG_CHECK_MODULES([X11_DRI3],
4628 [
4629 xshmfence,
4630 xcb,
4631 x11-xcb,
4632 xcb-sync,
4633 xcb-dri3
4634 ],
4635 [have_x11_dri3_pkgs="yes"],
4636 [have_x11_dri3_pkgs="no"])
4637fi
4638
4639if test "x${have_x11_dri2_pkgs}" = "xyes" ; then
4640 build_ecore_buffer_x11_dri2="yes"
4641 AC_DEFINE(BUILD_ECORE_BUFFER_X11_DRI2, 1, [Support for X11_DRI2 Backend in Ecore_Buffer])
4642fi
4643
4644if test "x${have_x11_dri3_pkgs}" = "xyes" ; then
4645 build_ecore_buffer_x11_dri3="yes"
4646 AC_DEFINE(BUILD_ECORE_BUFFER_X11_DRI3, 1, [Support for X11_DRI3 Backend in Ecore_Buffer])
4647fi
4648EFL_EVAL_PKGS([ECORE_BUFFER])
4649
4650EFL_ADD_FEATURE([ECORE_BUFFER], [shm], ["yes"])
4651EFL_ADD_FEATURE([ECORE_BUFFER], [x11_dri2], [${build_ecore_buffer_x11_dri2}])
4652EFL_ADD_FEATURE([ECORE_BUFFER], [x11_dri3], [${build_ecore_buffer_x11_dri3}])
4653
4654EFL_LIB_END_OPTIONAL([Ecore_Buffer])
4655
4656AM_CONDITIONAL([BUILD_ECORE_BUFFER_X11_DRI2], [test "${build_ecore_buffer_x11_dri2}" = "xyes"])
4657AM_CONDITIONAL([BUILD_ECORE_BUFFER_X11_DRI3], [test "${build_ecore_buffer_x11_dri3}" = "xyes"])
4658
4659#### End of Ecore_Buffer
4590 4660
4591AC_CONFIG_FILES([ 4661AC_CONFIG_FILES([
4592Makefile 4662Makefile
@@ -4667,6 +4737,7 @@ pc/ecore-imf-evas.pc
4667pc/ecore-audio.pc 4737pc/ecore-audio.pc
4668pc/ecore-audio-cxx.pc 4738pc/ecore-audio-cxx.pc
4669pc/ecore-avahi.pc 4739pc/ecore-avahi.pc
4740pc/ecore-buffer.pc
4670pc/ector.pc 4741pc/ector.pc
4671pc/embryo.pc 4742pc/embryo.pc
4672pc/eio.pc 4743pc/eio.pc
@@ -4827,6 +4898,7 @@ echo "Ecore_X.........: ${with_x11} (${features_ecore_x})"
4827echo "Ecore_SDL.......: $want_sdl" 4898echo "Ecore_SDL.......: $want_sdl"
4828echo "Ecore_Wayland...: $want_wayland" 4899echo "Ecore_Wayland...: $want_wayland"
4829echo "IVI-Shell.......: $want_wayland_ivi_shell" 4900echo "IVI-Shell.......: $want_wayland_ivi_shell"
4901echo "Ecore_Buffer....: $want_ecore_buffer (${features_ecore_buffer})"
4830if test "${have_linux}" = "yes"; then 4902if test "${have_linux}" = "yes"; then
4831echo "Ecore_FB........: $want_fb (${features_ecore_fb})" 4903echo "Ecore_FB........: $want_fb (${features_ecore_fb})"
4832elif test "${have_ps3}" = "yes"; then 4904elif test "${have_ps3}" = "yes"; then