summaryrefslogtreecommitdiff
path: root/Android.common.mk
diff options
context:
space:
mode:
authorChad Versace <chad.versace@linux.intel.com>2012-12-20 14:14:51 -0800
committerChad Versace <chad.versace@linux.intel.com>2013-01-02 14:51:18 -0800
commit56c6cdc9e71771d0fcdecabbe62d45a36f2d03b4 (patch)
tree5f5f7c8537aa14c8eadc1addec9962b14460f591 /Android.common.mk
parent7f962c5ef30f4710e18fc7e627822257a4c89cd9 (diff)
android: Define Make variables for Android version
Define the following Make variables: MESA_ANDROID_MAJOR_VERSION MESA_ANDROID_MINOR_VERSION MESA_ANDROID_VERSION These variable will allow us to make version-dependent decisions on library dependencies. In particular, building Mesa against JellyBean will require libsync. Reviewed-by: Tapani Pälli <tapani.palli@intel.com> Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'Android.common.mk')
-rw-r--r--Android.common.mk4
1 files changed, 1 insertions, 3 deletions
diff --git a/Android.common.mk b/Android.common.mk
index 18e5726fa0..d0a5f1aa41 100644
--- a/Android.common.mk
+++ b/Android.common.mk
@@ -34,10 +34,8 @@ 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)
+ -DANDROID_VERSION=0x0$(MESA_ANDROID_MAJOR_VERSION)0$(MESA_ANDROID_MINOR_VERSION)
LOCAL_CFLAGS += \
-DHAVE_PTHREAD=1 \