From 75cc24c876059d6eb183e07ed802f997fb416864 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Fri, 25 Nov 2011 11:59:02 +0800 Subject: android: add support for ICS With ICS (Android 4.0), several headers and structs are renamed. Define ANDROID_VERSION so that we can choose a different path depending on the platform version. I've tested only softpipe and llvmpipe. r600g is also reported to work. --- Android.common.mk | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Android.common.mk') diff --git a/Android.common.mk b/Android.common.mk index 83177a0..f28ddc2 100644 --- a/Android.common.mk +++ b/Android.common.mk @@ -24,6 +24,12 @@ LOCAL_C_INCLUDES += \ $(MESA_TOP)/include +# define ANDROID_VERSION (e.g., 4.0.x => 0x0400) +major := $(word 1, $(subst ., , $(PLATFORM_VERSION))) +minor := $(word 2, $(subst ., , $(PLATFORM_VERSION))) +LOCAL_CFLAGS += \ + -DANDROID_VERSION=0x0$(major)0$(minor) + LOCAL_CFLAGS += \ -DPTHREADS \ -fvisibility=hidden \ -- cgit v1.1