summaryrefslogtreecommitdiffstats
path: root/camera
diff options
context:
space:
mode:
Diffstat (limited to 'camera')
-rw-r--r--camera/android-api.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/camera/android-api.mk b/camera/android-api.mk
index da3f56e..3b4e1f6 100644
--- a/camera/android-api.mk
+++ b/camera/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:=) \