aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2014-09-15 12:54:26 -0700
committerDan Albert <danalbert@google.com>2014-09-17 14:26:32 -0700
commit4cb2ade36a3f7483a9edc3b7788fb8b5ab749ece (patch)
tree6067e43ec578242e23488ad381c60a1cb21dd192
parentdc05ca5be2319f74b41cb429ea50f30fceff4ace (diff)
downloadstlport-4cb2ade36a3f7483a9edc3b7788fb8b5ab749ece.tar.gz
Use the build system's STL selection.
This file is only kept around for compatibility so the change won't have to go in as one mega-CL. Change-Id: If712ba0ae7908d8147a69e29da5c453a183d6540
-rwxr-xr-xAndroid.mk3
-rw-r--r--libstlport.mk15
2 files changed, 6 insertions, 12 deletions
diff --git a/Android.mk b/Android.mk
index 7a2f2ec..7b6b6f6 100755
--- a/Android.mk
+++ b/Android.mk
@@ -53,6 +53,8 @@ LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
LOCAL_CFLAGS := $(libstlport_cflags)
LOCAL_CPPFLAGS := $(libstlport_cppflags)
LOCAL_C_INCLUDES := $(libstlport_c_includes)
+LOCAL_CXX_STL := none
+LOCAL_SHARED_LIBRARIES := libstdc++
include $(BUILD_SHARED_LIBRARY)
##########################################
@@ -66,4 +68,5 @@ LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
LOCAL_CFLAGS := $(libstlport_cflags)
LOCAL_CPPFLAGS := $(libstlport_cppflags)
LOCAL_C_INCLUDES := $(libstlport_c_includes)
+LOCAL_CXX_STL := none
include $(BUILD_STATIC_LIBRARY)
diff --git a/libstlport.mk b/libstlport.mk
index b4d34f6..799ed6f 100644
--- a/libstlport.mk
+++ b/libstlport.mk
@@ -1,12 +1,3 @@
-# To use stlport, "include external/stlport/libstlport.mk" in your target.
-
-# We put the STL libraries in front of any user libraries, but we need to
-# keep the RTTI stuff in abi/cpp/include in front of our STL headers.
-LOCAL_C_INCLUDES := \
- $(filter abi/cpp/include,$(LOCAL_C_INCLUDES)) \
- external/stlport/stlport \
- bionic \
- bionic/libstdc++/include \
- $(filter-out abi/cpp/include,$(LOCAL_C_INCLUDES))
-
-LOCAL_SHARED_LIBRARIES += libstlport
+# New projects shouldn't use this file. To use libc++, add the following line to
+# your makefile.
+LOCAL_CXX_STL := stlport