blob: 7fdaf7142e68f46b0fb26625c1717cfc525cdfe4 (
plain)
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
|
LOCAL_PATH := $(call my-dir)
####################
# Common definitions
common_src_files := \
XmlElement.cpp \
XmlSerializingContext.cpp \
XmlDocSource.cpp \
XmlDocSink.cpp \
XmlMemoryDocSink.cpp \
XmlMemoryDocSource.cpp \
XmlStringDocSink.cpp \
XmlFileDocSink.cpp \
XmlFileDocSource.cpp \
XmlStringDocSource.cpp
common_module := libxmlserializer
common_module_tags := optional
# Do not use the '-Werror' flag because of a compilation issue in libxml
common_cflags := \
-Wall \
-Wextra \
-Wno-unused-parameter
common_c_includes := \
$(call include-path-for, libxml2) \
$(call include-path-for, webcore-icu) \
common_shared_libraries := libicuuc
common_static_libraries := libxml2
common_ldlibs := -Lexternal/libxml2/lib
#############################
# Target build
include $(CLEAR_VARS)
LOCAL_SRC_FILES := $(common_src_files)
LOCAL_MODULE := $(common_module)
LOCAL_MODULE_TAGS := $(common_module_tags)
LOCAL_CFLAGS := $(common_cflags)
LOCAL_C_INCLUDES += \
$(common_c_includes) \
$(call include-path-for, stlport) \
bionic/
LOCAL_SHARED_LIBRARIES := $(common_shared_libraries) libstlport
LOCAL_STATIC_LIBRARIES := $(common_static_libraries)
LOCAL_LDLIBS += $(common_ldlibs)
include $(BUILD_STATIC_LIBRARY)
##############################
# Host build
include $(CLEAR_VARS)
LOCAL_SRC_FILES := $(common_src_files)
LOCAL_MODULE := $(common_module)_host
LOCAL_MODULE_TAGS := $(common_module_tags)
LOCAL_CFLAGS := $(common_cflags)
LOCAL_C_INCLUDES += \
$(common_c_includes)
LOCAL_SHARED_LIBRARIES := $(common_shared_libraries)
LOCAL_STATIC_LIBRARIES := $(common_static_libraries)
LOCAL_LDLIBS += $(common_ldlibs)
include $(BUILD_HOST_STATIC_LIBRARY)
|