diff options
author | Niels Ole Salscheider <[email protected]> | 2014-06-11 23:13:12 +0200 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2014-06-12 18:07:20 +0100 |
commit | 607bc899701dda25f7c91ebd2ec2136d4dab0448 (patch) | |
tree | df4907c9b53c754244fbda54b22c0a34d4d080b6 /src/gallium/state_trackers/egl/Makefile.am | |
parent | 816d392b586ecd95bd5b2dc24945bb9fc5d73d6e (diff) |
egl/gallium: Set defines for supported APIs when using automake
This fixes automake builds which are broken since
b52a530ce2aada1967bc8fefa83ab53e6a737dae.
v2: This patch also adds the FEATURE_* defines back to targets/egl-static for
Android and Scons that have been removed in the mentioned commit.
Signed-off-by: Niels Ole Salscheider <[email protected]>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=79885
Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/egl/Makefile.am')
-rw-r--r-- | src/gallium/state_trackers/egl/Makefile.am | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/egl/Makefile.am b/src/gallium/state_trackers/egl/Makefile.am index b7dcdabffef..828bf13e27c 100644 --- a/src/gallium/state_trackers/egl/Makefile.am +++ b/src/gallium/state_trackers/egl/Makefile.am @@ -88,3 +88,23 @@ AM_CPPFLAGS += \ -I$(top_srcdir)/src/gallium/winsys/sw \ -DHAVE_NULL_BACKEND endif + +if HAVE_OPENGL +AM_CPPFLAGS += \ + -DFEATURE_GL=1 +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 += \ + -DFEATURE_VG=1 +endif |