Android.mk revision e4de1ec774fda5c65697f08621ebcf27f0ad2c2e
1LOCAL_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 SAX.c \ 8 entities.c \ 9 encoding.c \ 10 error.c \ 11 parserInternals.c \ 12 parser.c \ 13 tree.c \ 14 hash.c \ 15 list.c \ 16 xmlIO.c \ 17 xmlmemory.c \ 18 uri.c \ 19 valid.c \ 20 xlink.c \ 21 HTMLparser.c \ 22 HTMLtree.c \ 23 debugXML.c \ 24 xpath.c \ 25 xpointer.c \ 26 xinclude.c \ 27 nanohttp.c \ 28 nanoftp.c \ 29 DOCBparser.c \ 30 catalog.c \ 31 globals.c \ 32 threads.c \ 33 c14n.c \ 34 xmlstring.c \ 35 xmlregexp.c \ 36 xmlschemas.c \ 37 xmlschemastypes.c \ 38 xmlunicode.c \ 39 xmlreader.c \ 40 relaxng.c \ 41 dict.c \ 42 SAX2.c \ 43 legacy.c \ 44 chvalid.c \ 45 pattern.c \ 46 xmlsave.c \ 47 xmlmodule.c \ 48 xmlwriter.c \ 49 schematron.c \ 50 buf.c \ 51 52common_C_INCLUDES += \ 53 $(LOCAL_PATH)/include 54 55# Turn off warnings to prevent log message spam. Set unknown-warning to 56# no-error to prevent exit when GCC does not understand warning options. 57DISABLED_WARNING_FLAGS := \ 58 -Wno-error=unknown-warning \ 59 -Wno-enum-compare \ 60 -Wno-array-bounds \ 61 -Wno-format \ 62 -Wno-pointer-sign \ 63 -Wno-sign-compare 64 65# For the device 66# ===================================================== 67 68include $(CLEAR_VARS) 69 70LOCAL_SRC_FILES := $(common_SRC_FILES) 71LOCAL_C_INCLUDES += $(common_C_INCLUDES) external/icu4c/common 72LOCAL_SHARED_LIBRARIES += $(common_SHARED_LIBRARIES) 73LOCAL_CFLAGS += -fvisibility=hidden 74LOCAL_CFLAGS += $(DISABLED_WARNING_FLAGS) 75 76LOCAL_MODULE:= libxml2 77 78include $(BUILD_STATIC_LIBRARY) 79 80 81# For the host 82# ======================================================== 83 84include $(CLEAR_VARS) 85LOCAL_SRC_FILES := $(common_SRC_FILES) 86LOCAL_C_INCLUDES += $(common_C_INCLUDES) external/icu4c/common 87LOCAL_CFLAGS += $(DISABLED_WARNING_FLAGS) 88LOCAL_SHARED_LIBRARIES += $(common_SHARED_LIBRARIES) 89LOCAL_MODULE:= libxml2 90include $(BUILD_HOST_STATIC_LIBRARY) 91