diff options
author | Andreas Boll <andreas.boll.dev@gmail.com> | 2013-04-17 11:16:27 +0200 |
---|---|---|
committer | Andreas Boll <andreas.boll.dev@gmail.com> | 2013-04-19 21:26:47 +0200 |
commit | 1c72c8195b6ad0d0b8cf1c0a071715166bf107d1 (patch) | |
tree | bd95bd79a3de664d902b60b9c331651007c8d645 | |
parent | be4a9f204ece116b0610f66fd1d1bc4cf80abd86 (diff) |
egl-static: use automake conditionals for defining FEATURE_{GL,ES1,ES2}
Removes the need of API_DEFINES.
-rw-r--r-- | src/gallium/targets/egl-static/Makefile.am | 12 |
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 31dbc791dd..c68ed11efc 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 \ |