summaryrefslogtreecommitdiffstats
path: root/twrpTarMain/Android.mk
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--twrpTarMain/Android.mk11
1 files changed, 9 insertions, 2 deletions
diff --git a/twrpTarMain/Android.mk b/twrpTarMain/Android.mk
index 5f15bf037..5a1a4434f 100644
--- a/twrpTarMain/Android.mk
+++ b/twrpTarMain/Android.mk
@@ -11,8 +11,15 @@ LOCAL_SRC_FILES:= \
../twrpDU.cpp
LOCAL_CFLAGS:= -g -c -W -DBUILD_TWRPTAR_MAIN
-LOCAL_C_INCLUDES += bionic external/stlport/stlport
-LOCAL_STATIC_LIBRARIES := libc libtar_static libstlport_static libstdc++
+LOCAL_C_INCLUDES += bionic
+ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 23; echo $$?),0)
+ LOCAL_C_INCLUDES += external/stlport/stlport
+endif
+
+LOCAL_STATIC_LIBRARIES := libc libtar_static libstdc++
+ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 23; echo $$?),0)
+ LOCAL_STATIC_LIBRARIES += libstlport_static
+endif
ifeq ($(TWHAVE_SELINUX), true)
LOCAL_C_INCLUDES += external/libselinux/include