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_cflags := -D_GNU_SOURCE 38 libstlport_cppflags := -fuse-cxa-atexit 39 40 ########################################## 41 include $(CLEAR_VARS) 42 43 LOCAL_SRC_FILES := $(libstlport_src_files) 44 45 # This is needed to work around the problem that libm.so in NDK does not 46 # have the sincos*() functions. 47 48 LOCAL_SRC_FILES += src/sincos.c 49 50 LOCAL_MODULE := libstlport 51 52 LOCAL_CFLAGS := $(libstlport_cflags) 53 LOCAL_CPPFLAGS := $(libstlport_cppflags) 54 55 ifneq ($(TARGET_ARCH),x86) 56 LOCAL_NDK_VERSION := 4 57 LOCAL_SDK_VERSION := 8 58 endif 59 60 include $(LOCAL_PATH)/libstlport.mk 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 70 LOCAL_CFLAGS := $(libstlport_cflags) 71 LOCAL_CPPFLAGS := $(libstlport_cppflags) 72 73 ifneq ($(TARGET_ARCH),x86) 74 LOCAL_NDK_VERSION := 4 75 LOCAL_SDK_VERSION := 8 76 endif 77 78 include $(LOCAL_PATH)/libstlport.mk 79 include $(BUILD_STATIC_LIBRARY) 80