egl-static: use automake conditionals for defining FEATURE_{GL,ES1,ES2}
authorAndreas Boll <andreas.boll.dev@gmail.com>
Wed, 17 Apr 2013 09:16:27 +0000 (11:16 +0200)
committerAndreas Boll <andreas.boll.dev@gmail.com>
Wed, 1 May 2013 19:34:48 +0000 (21:34 +0200)
Removes the need of API_DEFINES.

Reviewed-by: Matt Turner <mattst88@gmail.com>
src/gallium/targets/egl-static/Makefile.am

index 789aa30d60d7d5c1fb84646339be0639fd6504fc..e5bf7fca383ec714069cfa7c680ca0462edcc488 100644 (file)
@@ -101,7 +101,7 @@ endif
 if HAVE_OPENGL
 AM_CPPFLAGS += \
        -I$(top_srcdir)/src/mesa \
-       $(API_DEFINES)
+       -DFEATURE_GL=1
 
 egl_gallium_la_LIBADD += \
        $(top_builddir)/src/mesa/libmesagallium.la
@@ -132,6 +132,16 @@ st_GL_la_LIBADD = \
 endif
 endif
 
+if HAVE_OPENGL_ES1
+AM_CPPFLAGS += \
+       -DFEATURE_ES1=1
+endif
+
+if HAVE_OPENGL_ES2
+AM_CPPFLAGS += \
+       -DFEATURE_ES2=1
+endif
+
 if HAVE_OPENVG
 AM_CPPFLAGS += \
        -I$(top_srcdir)/src/gallium/state_trackers/vega \