• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1LOCAL_PATH := $(call my-dir)
2
3libstlport_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
37libstlport_cflags := -D_GNU_SOURCE
38libstlport_cppflags := -fuse-cxa-atexit
39
40##########################################
41include $(CLEAR_VARS)
42
43LOCAL_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
48LOCAL_SRC_FILES += src/sincos.c
49
50LOCAL_MODULE := libstlport
51
52LOCAL_CFLAGS := $(libstlport_cflags)
53LOCAL_CPPFLAGS := $(libstlport_cppflags)
54
55ifneq ($(TARGET_ARCH),x86)
56LOCAL_NDK_VERSION := 4
57LOCAL_SDK_VERSION := 8
58endif
59
60include $(LOCAL_PATH)/libstlport.mk
61include $(BUILD_SHARED_LIBRARY)
62
63##########################################
64include $(CLEAR_VARS)
65
66LOCAL_SRC_FILES := $(libstlport_src_files)
67
68LOCAL_MODULE := libstlport_static
69
70LOCAL_CFLAGS := $(libstlport_cflags)
71LOCAL_CPPFLAGS := $(libstlport_cppflags)
72
73ifneq ($(TARGET_ARCH),x86)
74LOCAL_NDK_VERSION := 4
75LOCAL_SDK_VERSION := 8
76endif
77
78include $(LOCAL_PATH)/libstlport.mk
79include $(BUILD_STATIC_LIBRARY)
80