summaryrefslogtreecommitdiffstats
path: root/src/mesa/Android.mk
diff options
context:
space:
mode:
authorImre Deak <imre.deak@intel.com>2012-09-12 19:46:05 +0300
committerOliver McFadden <oliver.mcfadden@linux.intel.com>2012-10-10 12:43:16 +0300
commit6678125eaee1bbf231d997971cde30f22ba4e013 (patch)
tree3f69e38ac2e19ce327b246410e0e5b4c871f9d3f /src/mesa/Android.mk
parentea637c5b64c1e72f6099a967fb57c8da155414dd (diff)
downloadexternal_mesa3d-6678125eaee1bbf231d997971cde30f22ba4e013.zip
external_mesa3d-6678125eaee1bbf231d997971cde30f22ba4e013.tar.gz
external_mesa3d-6678125eaee1bbf231d997971cde30f22ba4e013.tar.bz2
scons/android: add flag to check for enabled GL APIs
Needed by the next patch. Signed-off-by: Imre Deak <imre.deak@intel.com> Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Oliver McFadden <oliver.mcfadden@linux.intel.com>
Diffstat (limited to 'src/mesa/Android.mk')
-rw-r--r--src/mesa/Android.mk9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mesa/Android.mk b/src/mesa/Android.mk
index 4b62b81..c32b1c0 100644
--- a/src/mesa/Android.mk
+++ b/src/mesa/Android.mk
@@ -33,9 +33,7 @@ LOCAL_PATH := $(call my-dir)
# X86_FILES
include $(LOCAL_PATH)/sources.mak
-common_CFLAGS := \
- -DFEATURE_ES1=1 \
- -DFEATURE_ES2=1
+MESA_ENABLED_APIS := ES1 ES2
common_C_INCLUDES := \
$(MESA_TOP)/src/mapi \
@@ -100,9 +98,10 @@ include $(CLEAR_VARS)
LOCAL_MODULE := libmesa_dricore
LOCAL_MODULE_CLASS := STATIC_LIBRARIES
+MESA_ENABLED_APIS += GL
LOCAL_CFLAGS := \
- $(common_CFLAGS) \
- -DFEATURE_GL=1
+ $(common_CFLAGS) \
+ $(patsubst %,-DFEATURE_%=1,$(MESA_ENABLED_APIS))
LOCAL_C_INCLUDES := \
$(common_C_INCLUDES)