Home | History | Annotate | Download | only in libxslt
      1 LOCAL_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 
      6 common_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 
     27 common_C_INCLUDES += \
     28 	$(LOCAL_PATH)/libxslt
     29 
     30 LOCAL_STATIC_LIBRARIES := libxml2
     31 # For the device
     32 # =====================================================
     33 
     34 include $(CLEAR_VARS)
     35 
     36 LOCAL_SRC_FILES := $(common_SRC_FILES)
     37 LOCAL_C_INCLUDES += $(common_C_INCLUDES) external/libxml2/include external/icu4c/common
     38 LOCAL_SHARED_LIBRARIES += $(common_SHARED_LIBRARIES)
     39 LOCAL_CFLAGS += -fvisibility=hidden
     40 
     41 LOCAL_MODULE:= libxslt
     42 
     43 include $(BUILD_STATIC_LIBRARY)
     44 
     45 
     46 # For the host
     47 # ========================================================
     48 
     49 include $(CLEAR_VARS)
     50 LOCAL_SRC_FILES := $(common_SRC_FILES)
     51 LOCAL_C_INCLUDES += $(common_C_INCLUDES) external/libxml2/include external/icu4c/common
     52 LOCAL_SHARED_LIBRARIES += $(common_SHARED_LIBRARIES)
     53 LOCAL_MODULE:= libxslt
     54 include $(BUILD_HOST_STATIC_LIBRARY)
     55