| # We cannot use stlport on the simulator because it conficts with the host stl |
| # library. Android's port also relies on bionic which is not built for the |
| # simulator either. |
| ifneq ($(TARGET_SIMULATOR),true) |
| LOCAL_PATH := $(call my-dir) |
| |
| libstlport_src_files := \ |
| src/dll_main.cpp \ |
| src/fstream.cpp \ |
| src/strstream.cpp \ |
| src/sstream.cpp \ |
| src/ios.cpp \ |
| src/stdio_streambuf.cpp \ |
| src/istream.cpp \ |
| src/ostream.cpp \ |
| src/iostream.cpp \ |
| src/codecvt.cpp \ |
| src/collate.cpp \ |
| src/ctype.cpp \ |
| src/monetary.cpp \ |
| src/num_get.cpp \ |
| src/num_put.cpp \ |
| src/num_get_float.cpp \ |
| src/num_put_float.cpp \ |
| src/numpunct.cpp \ |
| src/time_facets.cpp \ |
| src/messages.cpp \ |
| src/locale.cpp \ |
| src/locale_impl.cpp \ |
| src/locale_catalog.cpp \ |
| src/facets_byname.cpp \ |
| src/complex.cpp \ |
| src/complex_io.cpp \ |
| src/complex_trig.cpp \ |
| src/string.cpp \ |
| src/bitset.cpp \ |
| src/allocators.cpp \ |
| src/c_locale.c \ |
| src/cxa.c \ |
| |
| libstlport_cflags := -D_GNU_SOURCE |
| libstlport_cppflags := -fuse-cxa-atexit |
| |
| ########################################## |
| include $(CLEAR_VARS) |
| |
| LOCAL_SRC_FILES := $(libstlport_src_files) |
| |
| LOCAL_MODULE := libstlport |
| |
| LOCAL_CFLAGS := $(libstlport_cflags) |
| LOCAL_CPPFLAGS := $(libstlport_cppflags) |
| |
| include $(LOCAL_PATH)/libstlport.mk |
| include $(BUILD_SHARED_LIBRARY) |
| |
| ########################################## |
| include $(CLEAR_VARS) |
| |
| LOCAL_SRC_FILES := $(libstlport_src_files) |
| |
| LOCAL_MODULE := libstlport_static |
| |
| LOCAL_CFLAGS := $(libstlport_cflags) |
| LOCAL_CPPFLAGS := $(libstlport_cppflags) |
| |
| include $(LOCAL_PATH)/libstlport.mk |
| include $(BUILD_STATIC_LIBRARY) |
| |
| endif |