1# We cannot use stlport on the simulator because it conficts with the host stl 2# library. Android's port also relies on bionic which is not built for the 3# simulator either. 4ifneq ($(TARGET_SIMULATOR),true) 5LOCAL_PATH := $(call my-dir) 6 7libstlport_src_files := \ 8 src/dll_main.cpp \ 9 src/fstream.cpp \ 10 src/strstream.cpp \ 11 src/sstream.cpp \ 12 src/ios.cpp \ 13 src/stdio_streambuf.cpp \ 14 src/istream.cpp \ 15 src/ostream.cpp \ 16 src/iostream.cpp \ 17 src/codecvt.cpp \ 18 src/collate.cpp \ 19 src/ctype.cpp \ 20 src/monetary.cpp \ 21 src/num_get.cpp \ 22 src/num_put.cpp \ 23 src/num_get_float.cpp \ 24 src/num_put_float.cpp \ 25 src/numpunct.cpp \ 26 src/time_facets.cpp \ 27 src/messages.cpp \ 28 src/locale.cpp \ 29 src/locale_impl.cpp \ 30 src/locale_catalog.cpp \ 31 src/facets_byname.cpp \ 32 src/complex.cpp \ 33 src/complex_io.cpp \ 34 src/complex_trig.cpp \ 35 src/string.cpp \ 36 src/bitset.cpp \ 37 src/allocators.cpp \ 38 src/c_locale.c \ 39 src/cxa.c \ 40 41libstlport_cflags := -D_GNU_SOURCE 42libstlport_cppflags := -fuse-cxa-atexit 43 44########################################## 45include $(CLEAR_VARS) 46 47LOCAL_SRC_FILES := $(libstlport_src_files) 48 49LOCAL_MODULE := libstlport 50 51LOCAL_CFLAGS := $(libstlport_cflags) 52LOCAL_CPPFLAGS := $(libstlport_cppflags) 53 54LOCAL_NDK_VERSION := 4 55LOCAL_SDK_VERSION := 8 56 57include $(LOCAL_PATH)/libstlport.mk 58include $(BUILD_SHARED_LIBRARY) 59 60########################################## 61include $(CLEAR_VARS) 62 63LOCAL_SRC_FILES := $(libstlport_src_files) 64 65LOCAL_MODULE := libstlport_static 66 67LOCAL_CFLAGS := $(libstlport_cflags) 68LOCAL_CPPFLAGS := $(libstlport_cppflags) 69 70LOCAL_NDK_VERSION := 4 71LOCAL_SDK_VERSION := 8 72 73include $(LOCAL_PATH)/libstlport.mk 74include $(BUILD_STATIC_LIBRARY) 75 76endif 77