diff options
author | Chad Versace <chad.versace@linux.intel.com> | 2012-12-20 14:14:51 -0800 |
---|---|---|
committer | Chad Versace <chad.versace@linux.intel.com> | 2013-01-02 14:51:18 -0800 |
commit | 56c6cdc9e71771d0fcdecabbe62d45a36f2d03b4 (patch) | |
tree | 5f5f7c8537aa14c8eadc1addec9962b14460f591 /Android.mk | |
parent | 7f962c5ef30f4710e18fc7e627822257a4c89cd9 (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.mk')
-rw-r--r-- | Android.mk | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk index 6a3014c81b..80c0e1395f 100644 --- a/Android.mk +++ b/Android.mk @@ -30,6 +30,11 @@ # module will also be built. DRI modules will be loaded by libGLES_mesa. MESA_TOP := $(call my-dir) + +MESA_ANDROID_MAJOR_VERSION := $(word 1, $(subst ., , $(PLATFORM_VERSION))) +MESA_ANDROID_MINOR_VERSION := $(word 2, $(subst ., , $(PLATFORM_VERSION))) +MESA_ANDROID_VERSION := $(MESA_ANDROID_MAJOR_VERSION).$(MESA_ANDROID_MINOR_VERSION) + MESA_COMMON_MK := $(MESA_TOP)/Android.common.mk MESA_PYTHON2 := python |