summaryrefslogtreecommitdiffstats
path: root/src/gallium/targets/egl-static/Makefile.am
diff options
context:
space:
mode:
authorAndreas Boll <andreas.boll.dev@gmail.com>2013-04-17 11:16:27 +0200
committerAndreas Boll <andreas.boll.dev@gmail.com>2013-05-01 21:34:48 +0200
commitafa33a001a39c44238ba8fd76f8eeabad041459e (patch)
tree9a7cb205c6330530b17c1aebd6468f87615a03ae /src/gallium/targets/egl-static/Makefile.am
parent3537d853d0330e875d199b7015d86ca6aee64fa0 (diff)
downloadexternal_mesa3d-afa33a001a39c44238ba8fd76f8eeabad041459e.zip
external_mesa3d-afa33a001a39c44238ba8fd76f8eeabad041459e.tar.gz
external_mesa3d-afa33a001a39c44238ba8fd76f8eeabad041459e.tar.bz2
egl-static: use automake conditionals for defining FEATURE_{GL,ES1,ES2}
Removes the need of API_DEFINES. Reviewed-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'src/gallium/targets/egl-static/Makefile.am')
-rw-r--r--src/gallium/targets/egl-static/Makefile.am12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/gallium/targets/egl-static/Makefile.am b/src/gallium/targets/egl-static/Makefile.am
index 789aa30..e5bf7fc 100644
--- a/src/gallium/targets/egl-static/Makefile.am
+++ b/src/gallium/targets/egl-static/Makefile.am
@@ -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 \