1 LOCAL_PATH := $(call my-dir) 2 3 libstlport_src_files := \ 4 src/dll_main.cpp \ 5 src/fstream.cpp \ 6 src/strstream.cpp \ 7 src/sstream.cpp \ 8 src/ios.cpp \ 9 src/stdio_streambuf.cpp \ 10 src/istream.cpp \ 11 src/ostream.cpp \ 12 src/iostream.cpp \ 13 src/codecvt.cpp \ 14 src/collate.cpp \ 15 src/ctype.cpp \ 16 src/monetary.cpp \ 17 src/num_get.cpp \ 18 src/num_put.cpp \ 19 src/num_get_float.cpp \ 20 src/num_put_float.cpp \ 21 src/numpunct.cpp \ 22 src/time_facets.cpp \ 23 src/messages.cpp \ 24 src/locale.cpp \ 25 src/locale_impl.cpp \ 26 src/locale_catalog.cpp \ 27 src/facets_byname.cpp \ 28 src/complex.cpp \ 29 src/complex_io.cpp \ 30 src/complex_trig.cpp \ 31 src/string.cpp \ 32 src/bitset.cpp \ 33 src/allocators.cpp \ 34 src/c_locale.c \ 35 src/cxa.c \ 36 37 libstlport_c_includes := \ 38 external/stlport/stlport \ 39 bionic \ 40 bionic/libstdc++/include \ 41 42 libstlport_cflags := -D_GNU_SOURCE 43 libstlport_cppflags := -fuse-cxa-atexit 44 45 ########################################## 46 include $(CLEAR_VARS) 47 48 LOCAL_SRC_FILES := $(libstlport_src_files) 49 50 LOCAL_MODULE := libstlport 51 LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk 52 53 LOCAL_CFLAGS := $(libstlport_cflags) 54 LOCAL_CPPFLAGS := $(libstlport_cppflags) 55 LOCAL_C_INCLUDES := $(libstlport_c_includes) 56 include $(BUILD_SHARED_LIBRARY) 57 58 ########################################## 59 include $(CLEAR_VARS) 60 61 LOCAL_SRC_FILES := $(libstlport_src_files) 62 63 LOCAL_MODULE := libstlport_static 64 LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk 65 66 LOCAL_CFLAGS := $(libstlport_cflags) 67 LOCAL_CPPFLAGS := $(libstlport_cppflags) 68 LOCAL_C_INCLUDES := $(libstlport_c_includes) 69 include $(BUILD_STATIC_LIBRARY) 70