This repository has been archived by the owner on Jan 8, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAndroid.mk
84 lines (55 loc) · 1.59 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
LOCAL_PATH:= $(call my-dir)
# expat
# =====================================================
expat_SRC_FILES := \
third_party/expat/lib/xmlparse.c \
third_party/expat/lib/xmlrole.c \
third_party/expat/lib/xmltok.c
expat_CFLAGS := \
-Wall \
-Wmissing-prototypes -Wstrict-prototypes \
-Wno-unused-parameter -Wno-missing-field-initializers \
-fPIC \
-DHAVE_MEMMOVE
expat_C_INCLUDES += \
third_party/expat/lib
# gxmpp
# =====================================================
gxmpp_SRC_FILES := \
$(wildcard talk/base/*.cc) \
$(wildcard talk/xmllite/*.cc) \
$(wildcard talk/xmpp/*.cc) \
$(wildcard gxmpp/*.cc)
gxmpp_CXXFLAGS := \
-Wall \
-fPIC \
-DPOSIX \
-DLINUX \
-DEXPAT_RELATIVE_PATH
gxmpp_C_INCLUDES += third_party/expat/lib
# build
# =====================================================
# expat static library
include $(CLEAR_VARS)
LOCAL_MODULE := expat_static
LOCAL_C_INCLUDES += $(expat_C_INCLUDES)
LOCAL_CFLAGS += $(expat_CFLAGS)
LOCAL_SRC_FILES := $(expat_SRC_FILES)
include $(BUILD_STATIC_LIBRARY)
# gxmpp static library
include $(CLEAR_VARS)
LOCAL_MODULE := gxmpp_static
LOCAL_C_INCLUDES += $(gxmpp_C_INCLUDES)
LOCAL_CFLAGS :=
LOCAL_CXXFLAGS += $(gxmpp_CXXFLAGS) -std=gnu++11
LOCAL_SRC_FILES := $(gxmpp_SRC_FILES)
include $(BUILD_STATIC_LIBRARY)
# gxmpp shared library
include $(CLEAR_VARS)
LOCAL_MODULE := gxmpp
LOCAL_C_INCLUDES += $(gxmpp_C_INCLUDES)
LOCAL_CXXFLAGS += $(gxmpp_CXXFLAGS) -std=gnu++11
LOCAL_LDLIBS := -llog
LOCAL_SRC_FILES := $(wildcard examples/echo/*.cc) client.cc
LOCAL_STATIC_LIBRARIES := gxmpp_static expat_static
include $(BUILD_SHARED_LIBRARY)