aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2015-05-06 21:15:57 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-05-06 21:16:13 +0000
commitf93b0c8350e72556faa137400cc955440654d29e (patch)
tree93e3fe0a1ce7341e4e2369bbd862d5fa7f675470
parent176973f0a182bab49f43993aefa34e0d76790ac9 (diff)
parent862ba3df3cd824fbecc7e18b371d8ec0d43ed653 (diff)
downloadstlport-f93b0c8350e72556faa137400cc955440654d29e.tar.gz
Merge "Only build stlport for whitelisted devices."
-rwxr-xr-xAndroid.mk17
1 files changed, 17 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index 7b6b6f6..e32a3c6 100755
--- a/Android.mk
+++ b/Android.mk
@@ -1,3 +1,19 @@
+# http://b/15193147
+# Whitelist devices that are still allowed to use stlport. This will prevent any
+# new devices from making the same mistakes.
+STLPORT_WHITELIST := \
+ deb \
+ flo \
+ flounder \
+ fugu \
+ grouper \
+ hammerhead \
+ mako \
+ manta \
+ shamu \
+ tilapia \
+
+ifneq (,$(filter $(TARGET_DEVICE),$(STLPORT_WHITELIST)))
LOCAL_PATH := $(call my-dir)
libstlport_src_files := \
@@ -70,3 +86,4 @@ LOCAL_CPPFLAGS := $(libstlport_cppflags)
LOCAL_C_INCLUDES := $(libstlport_c_includes)
LOCAL_CXX_STL := none
include $(BUILD_STATIC_LIBRARY)
+endif