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 # This is needed to work around the problem that libm.so in NDK does not 51 # have the sincos*() functions. 52 53 LOCAL_SRC_FILES += src/sincos.c 54 55 LOCAL_MODULE := libstlport 56 LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk 57 58 LOCAL_CFLAGS := $(libstlport_cflags) 59 LOCAL_CPPFLAGS := $(libstlport_cppflags) 60 LOCAL_C_INCLUDES := $(libstlport_c_includes) 61 include $(BUILD_SHARED_LIBRARY) 62 63 ########################################## 64 include $(CLEAR_VARS) 65 66 LOCAL_SRC_FILES := $(libstlport_src_files) 67 68 LOCAL_MODULE := libstlport_static 69 LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk 70 71 LOCAL_CFLAGS := $(libstlport_cflags) 72 LOCAL_CPPFLAGS := $(libstlport_cppflags) 73 LOCAL_C_INCLUDES := $(libstlport_c_includes) 74 include $(BUILD_STATIC_LIBRARY) 75