summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZiyan <jaraidaniel@gmail.com>2015-10-09 01:53:59 +0200
committerZiyan <jaraidaniel@gmail.com>2015-10-13 13:50:07 +0200
commit5cc451f1b5608261be2292554013d5f5facc25aa (patch)
tree6defa58a614bfe7ee2ed9bca2b299ef08682ce2f
parent395c41ee4968f896496f5bf5a0cb48a1d2665158 (diff)
downloadhardware_ti_omap4-5cc451f1b5608261be2292554013d5f5facc25aa.zip
hardware_ti_omap4-5cc451f1b5608261be2292554013d5f5facc25aa.tar.gz
hardware_ti_omap4-5cc451f1b5608261be2292554013d5f5facc25aa.tar.bz2
android-api: add MM
Change-Id: I0a17b1fd55aa1488e7b8c4cdde4d8aebc02bc6b5
-rw-r--r--android-api.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/android-api.mk b/android-api.mk
index da3f56e..3b4e1f6 100644
--- a/android-api.mk
+++ b/android-api.mk
@@ -1,5 +1,6 @@
# Makefile variables and C/C++ macros to recognize API level
+ANDROID_API_MM_OR_LATER :=
ANDROID_API_LP_OR_LATER :=
ANDROID_API_KK_OR_LATER :=
ANDROID_API_JB_MR1_OR_LATER :=
@@ -7,6 +8,10 @@ ANDROID_API_JB_OR_LATER :=
ANDROID_API_ICS_OR_LATER :=
ANDROID_API_CFLAGS :=
+ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 23 || echo 1),)
+ ANDROID_API_MM_OR_LATER := true
+ ANDROID_API_CFLAGS += -DANDROID_API_MM_OR_LATER
+endif
ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 20 || echo 1),)
ANDROID_API_LP_OR_LATER := true
ANDROID_API_CFLAGS += -DANDROID_API_LP_OR_LATER
@@ -29,6 +34,7 @@ ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 14 || echo 1),)
endif
define clear-android-api-vars
+$(eval ANDROID_API_MM_OR_LATER:=) \
$(eval ANDROID_API_LP_OR_LATER:=) \
$(eval ANDROID_API_KK_OR_LATER:=) \
$(eval ANDROID_API_JB_MR1_OR_LATER:=) \