aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2015-05-06 09:47:30 -0700
committerDan Albert <danalbert@google.com>2015-05-06 13:23:00 -0700
commit862ba3df3cd824fbecc7e18b371d8ec0d43ed653 (patch)
tree93e3fe0a1ce7341e4e2369bbd862d5fa7f675470
parent176973f0a182bab49f43993aefa34e0d76790ac9 (diff)
downloadstlport-862ba3df3cd824fbecc7e18b371d8ec0d43ed653.tar.gz
Only build stlport for whitelisted devices.
Stlport may only be used on devices that have a dependency on vendor blobs that have not yet been fixed. Bug: http://b/15193147 Change-Id: I895de5fce30d46f7349770e181bcdfeee98e16c1
-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