intel: use automake conditionals for defining FEATURE_{ES1,ES2}
authorAndreas Boll <andreas.boll.dev@gmail.com>
Fri, 19 Apr 2013 18:41:08 +0000 (20:41 +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/mesa/drivers/dri/i915/Makefile.am
src/mesa/drivers/dri/i965/Makefile.am

index 72e0659530ab44c665a3d499558773e9d6004324..950171919497032be55bafdc5d4ee65ec0965e92 100644 (file)
@@ -34,10 +34,19 @@ AM_CFLAGS = \
        -I$(top_srcdir)/src/mesa/drivers/dri/intel/server \
        -I$(top_builddir)/src/mesa/drivers/dri/common \
        $(DEFINES) \
-       $(API_DEFINES) \
        $(VISIBILITY_CFLAGS) \
        $(INTEL_CFLAGS)
 
+if HAVE_OPENGL_ES1
+AM_CFLAGS += \
+       -DFEATURE_ES1=1
+endif
+
+if HAVE_OPENGL_ES2
+AM_CFLAGS += \
+       -DFEATURE_ES2=1
+endif
+
 dridir = $(DRI_DRIVER_INSTALL_DIR)
 
 if HAVE_I915_DRI
index 77670efdee843090463e8aeca574548c27be8703..32b041a8caa941cebf171526aaac2382958164ac 100644 (file)
@@ -36,10 +36,19 @@ AM_CFLAGS = \
        -I$(top_srcdir)/src/gtest/include \
        -I$(top_builddir)/src/mesa/drivers/dri/common \
        $(DEFINES) \
-       $(API_DEFINES) \
        $(VISIBILITY_CFLAGS) \
        $(INTEL_CFLAGS)
 
+if HAVE_OPENGL_ES1
+AM_CFLAGS += \
+       -DFEATURE_ES1=1
+endif
+
+if HAVE_OPENGL_ES2
+AM_CFLAGS += \
+       -DFEATURE_ES2=1
+endif
+
 AM_CXXFLAGS = $(AM_CFLAGS)
 
 dridir = $(DRI_DRIVER_INSTALL_DIR)