blob: 43d465e6a3a618139e486e31553cde7e725a78bd [file] [log] [blame]
Shimeng (Simon) Wangd9120212010-04-21 17:19:24 -07001LOCAL_PATH:= $(call my-dir)
2
3# We need to build this for both the device (as a shared library)
4# and the host (as a static library for tools to use).
5
6common_SRC_FILES := \
7 libxslt/attrvt.c \
8 libxslt/namespaces.c \
9 libxslt/security.c \
10 libxslt/xsltlocale.c \
11 libxslt/extensions.c \
12 libxslt/numbers.c \
13 libxslt/extra.c \
14 libxslt/keys.c \
15 libxslt/attributes.c \
16 libxslt/imports.c \
17 libxslt/variables.c \
18 libxslt/xsltutils.c \
19 libxslt/xslt.c \
20 libxslt/transform.c \
21 libxslt/preproc.c \
22 libxslt/templates.c \
23 libxslt/documents.c \
24 libxslt/functions.c \
25 libxslt/pattern.c
26
27common_C_INCLUDES += \
28 $(LOCAL_PATH)/libxslt
29
30LOCAL_STATIC_LIBRARIES := libxml2
31# For the device
32# =====================================================
33
34include $(CLEAR_VARS)
35
36LOCAL_SRC_FILES := $(common_SRC_FILES)
37LOCAL_C_INCLUDES += $(common_C_INCLUDES) external/libxml2/include external/icu4c/common
38LOCAL_SHARED_LIBRARIES += $(common_SHARED_LIBRARIES)
39LOCAL_CFLAGS += -fvisibility=hidden
40
41LOCAL_MODULE:= libxslt
42
43include $(BUILD_STATIC_LIBRARY)
44
45
46# For the host
47# ========================================================
48
49include $(CLEAR_VARS)
50LOCAL_SRC_FILES := $(common_SRC_FILES)
51LOCAL_C_INCLUDES += $(common_C_INCLUDES) external/libxml2/include external/icu4c/common
52LOCAL_SHARED_LIBRARIES += $(common_SHARED_LIBRARIES)
53LOCAL_MODULE:= libxslt
54include $(BUILD_HOST_STATIC_LIBRARY)