aboutsummaryrefslogtreecommitdiff
path: root/Android.mk
blob: 43d465e6a3a618139e486e31553cde7e725a78bd (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
LOCAL_PATH:= $(call my-dir)

# We need to build this for both the device (as a shared library)
# and the host (as a static library for tools to use).

common_SRC_FILES := \
	libxslt/attrvt.c \
	libxslt/namespaces.c \
	libxslt/security.c \
	libxslt/xsltlocale.c \
	libxslt/extensions.c \
	libxslt/numbers.c \
	libxslt/extra.c \
	libxslt/keys.c \
	libxslt/attributes.c \
	libxslt/imports.c \
	libxslt/variables.c \
	libxslt/xsltutils.c \
	libxslt/xslt.c \
	libxslt/transform.c \
	libxslt/preproc.c \
	libxslt/templates.c \
	libxslt/documents.c \
	libxslt/functions.c \
	libxslt/pattern.c

common_C_INCLUDES += \
	$(LOCAL_PATH)/libxslt

LOCAL_STATIC_LIBRARIES := libxml2
# For the device
# =====================================================

include $(CLEAR_VARS)

LOCAL_SRC_FILES := $(common_SRC_FILES)
LOCAL_C_INCLUDES += $(common_C_INCLUDES) external/libxml2/include external/icu4c/common
LOCAL_SHARED_LIBRARIES += $(common_SHARED_LIBRARIES)
LOCAL_CFLAGS += -fvisibility=hidden

LOCAL_MODULE:= libxslt

include $(BUILD_STATIC_LIBRARY)


# For the host
# ========================================================

include $(CLEAR_VARS)
LOCAL_SRC_FILES := $(common_SRC_FILES)
LOCAL_C_INCLUDES += $(common_C_INCLUDES) external/libxml2/include external/icu4c/common
LOCAL_SHARED_LIBRARIES += $(common_SHARED_LIBRARIES)
LOCAL_MODULE:= libxslt
include $(BUILD_HOST_STATIC_LIBRARY)