Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/evas

Dir     : e17/libs/evas


Modified Files:
        configure.in 


Log Message:


an xrender engine. fully complete - but it doesnt support shaped window masks
and destination alpha like software_x11 does so its not a 100% dropin
replacement... yet

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/evas/configure.in,v
retrieving revision 1.121
retrieving revision 1.122
diff -u -3 -r1.121 -r1.122
--- configure.in        25 Sep 2005 05:45:48 -0000      1.121
+++ configure.in        2 Oct 2005 15:15:44 -0000       1.122
@@ -511,6 +511,60 @@
   AM_CONDITIONAL(BUILD_ENGINE_CAIRO_COMMON, false)
 fi
 
+#######################################
+## Check if we should build the xrender_x11 engine
+have_evas_xrender_x11="no";
+ENGINE_XRENDER_X11_PRG="";
+## Automatic check...
+AC_CHECK_HEADER(X11/X.h,
+  [ have_evas_xrender_x11="yes" ],
+  [ have_evas_xrender_x11="no" ]
+)
+## Manual override
+AC_MSG_CHECKING(whether xrender x11 backend is to be built)
+AC_ARG_ENABLE(xrender-x11, [  --enable-xrender-x11           enable the 
XRender X11 rendering backend], [
+          if [ test "$enableval" = "yes" ]; then
+            AC_MSG_RESULT(yes)
+            have_evas_xrender_x11="yes"
+          else
+            AC_MSG_RESULT(no)
+            have_evas_xrender_x11="no"
+          fi
+        ], [
+          AC_MSG_RESULT($have_evas_xrender_x11)
+       ]
+)
+if test "x$have_evas_xrender_x11" = "xyes"; then
+  AC_PATH_XTRA
+  AC_CHECK_HEADER(X11/X.h,
+    [
+      AC_CHECK_HEADER(X11/extensions/Xrender.h,
+        [
+          AM_CONDITIONAL(BUILD_ENGINE_XRENDER_X11, true)
+          AC_DEFINE(BUILD_ENGINE_XRENDER_X11, 1, [XRender X11 Rendering 
Backend])
+          x_dir=${x_dir:-/usr/X11R6}
+          x_cflags=${x_cflags:--I${x_includes:-$x_dir/include}}
+          x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11 -lXext 
-lXrender"
+          ENGINE_XRENDER_X11_PRG="evas_xrender_x11_test"
+       ],
+       [
+          AM_CONDITIONAL(BUILD_ENGINE_XRENDER_X11, false)
+          AC_MSG_RESULT(disabling xrender X11 engine)
+          have_evas_xrender_x11="no"
+       ]
+      )
+    ],
+    [
+      AM_CONDITIONAL(BUILD_ENGINE_XRENDER_X11, false)
+      AC_MSG_RESULT(disabling xrender X11 engine)
+      have_evas_xrender_x11="no"
+    ]
+  )
+else
+  AM_CONDITIONAL(BUILD_ENGINE_XRENDER_X11, false)
+fi
+
+
 #####################################################################
 ## Image loaders
 
@@ -1543,6 +1597,7 @@
 AC_SUBST(ENGINE_SOFTWARE_QTOPIA_PRG)
 AC_SUBST(ENGINE_GL_X11_PRG)
 AC_SUBST(ENGINE_CAIRO_X11_PRG)
+AC_SUBST(ENGINE_XRENDER_X11_PRG)
 
 AC_SUBST(altivec_cflags)
 
@@ -1574,6 +1629,7 @@
 src/lib/engines/gl_x11/Makefile
 src/lib/engines/cairo_common/Makefile
 src/lib/engines/cairo_x11/Makefile
+src/lib/engines/xrender_x11/Makefile
 src/lib/include/Makefile
 proj/Makefile
 proj/win32_gdi/Makefile
@@ -1610,7 +1666,8 @@
 echo "  Software Memory Buffer..: $have_evas_buffer"
 echo "  DirectFB................: $have_evas_directfb"
 echo "  OpenGL X11..............: $have_evas_gl_x11"
-echo "  Cairo  X11..............: $have_evas_cairo_x11"
+echo "  Cairo X11...............: $have_evas_cairo_x11"
+echo "  XRender X11.............: $have_evas_xrender_x11"
 # FIXME: opengl engine needs to be fixed and tested lots for all drivers
 # FIXME: xrender engine to be written
 echo




-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to