Configure: guess YAGL backend based on target OS
authorIgor Mitsyanko <i.mitsyanko@samsung.com>
Fri, 21 Sep 2012 14:05:32 +0000 (18:05 +0400)
committerEvgeny Voevodin <e.voevodin@samsung.com>
Mon, 26 Nov 2012 09:25:32 +0000 (13:25 +0400)
Makefile.target
configure

index 60d860e6934db21cdf38fb4100a81a399bb8b6ff..33a97b43dcc659ef6e0651f45156aa04b4d2a496 100755 (executable)
@@ -254,7 +254,9 @@ obj-y += yagl_gles2_program.o
 obj-y += yagl_gles2_validate.o
 obj-y += yagl_host_gles2_calls.o
 # EGL GLX driver
+ifdef CONFIG_YAGL_EGL_GLX
 obj-y += yagl_egl_glx.o
+endif
 # GLES OpenGL common driver
 obj-y += yagl_gles_ogl.o
 # GLESv1_CM OpenGL driver
index 8ac06fee29735e853abfbc19603e6e984506adc6..246a3029da0103349b1efc680b9e876c06dfb1e6 100755 (executable)
--- a/configure
+++ b/configure
@@ -3567,6 +3567,12 @@ fi
 
 if test "$yagl" = "yes" ; then
   echo "CONFIG_YAGL=y" >> $config_host_mak
+  if test "$linux" = "yes" ; then
+    echo "CONFIG_YAGL_EGL_GLX=y" >> $config_host_mak
+  else
+    echo "ERROR: YaGL is not available on $targetos"
+    exit 1
+  fi
 fi
 
 if test "$yagl_stats" = "yes" ; then