-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathAndroid.mk
executable file
·85 lines (72 loc) · 2.04 KB
/
Android.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
LOCAL_PATH := $(call my-dir)
libstlport_src_files := \
src/dll_main.cpp \
src/fstream.cpp \
src/strstream.cpp \
src/sstream.cpp \
src/ios.cpp \
src/stdio_streambuf.cpp \
src/istream.cpp \
src/ostream.cpp \
src/iostream.cpp \
src/codecvt.cpp \
src/collate.cpp \
src/ctype.cpp \
src/monetary.cpp \
src/num_get.cpp \
src/num_put.cpp \
src/num_get_float.cpp \
src/num_put_float.cpp \
src/numpunct.cpp \
src/time_facets.cpp \
src/messages.cpp \
src/locale.cpp \
src/locale_impl.cpp \
src/locale_catalog.cpp \
src/facets_byname.cpp \
src/complex.cpp \
src/complex_io.cpp \
src/complex_trig.cpp \
src/string.cpp \
src/bitset.cpp \
src/allocators.cpp \
src/c_locale.c \
src/cxa.c \
libstlport_c_includes := \
external/stlport/stlport \
bionic \
bionic/libstdc++/include \
libstlport_cflags := -D_GNU_SOURCE
libstlport_cppflags := -fuse-cxa-atexit
ifneq ($(WCHAR_SUPPORT),true)
common_no_wchar_support_cflags := \
-D_STLP_NO_WCHAR_T=1 \
-D_STLP_NO_NATIVE_WIDE_FUNCTIONS=1 \
-D_STLP_NO_NATIVE_MBSTATE_T=1 \
-D_STLP_NO_MBSTATE_T=1
libstlport_cppflags += $(common_no_wchar_support_cflags)
libstlport_cflags += $(common_no_wchar_support_cflags)
else
common_no_wchar_support_cflags := \
-DWCHAR_SUPPORT
libstlport_cppflags += $(common_no_wchar_support_cflags)
libstlport_cflags += $(common_no_wchar_support_cflags)
endif
##########################################
include $(CLEAR_VARS)
LOCAL_SRC_FILES := $(libstlport_src_files)
LOCAL_MODULE := libstlport
LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
LOCAL_CFLAGS := $(libstlport_cflags)
LOCAL_CPPFLAGS := $(libstlport_cppflags)
LOCAL_C_INCLUDES := $(libstlport_c_includes)
include $(BUILD_SHARED_LIBRARY)
##########################################
include $(CLEAR_VARS)
LOCAL_SRC_FILES := $(libstlport_src_files)
LOCAL_MODULE := libstlport_static
LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
LOCAL_CFLAGS := $(libstlport_cflags)
LOCAL_CPPFLAGS := $(libstlport_cppflags)
LOCAL_C_INCLUDES := $(libstlport_c_includes)
include $(BUILD_STATIC_LIBRARY)