
LOCAL_PATH:= $(call my-dir)

include $(CLEAR_VARS)

LOCAL_SRC_FILES := \
src/wbxml_base64.c\
src/wbxml_buffers.c\
src/wbxml_charset.c\
src/wbxml_conv.c\
src/wbxml_elt.c\
src/wbxml_encoder.c\
src/wbxml_errors.c\
src/wbxml_lists.c\
src/wbxml_log.c\
src/wbxml_mem.c\
src/wbxml_parser.c\
src/wbxml_tables.c\
src/wbxml_tree.c\
src/wbxml_tree_clb_wbxml.c\
src/wbxml_tree_clb_xml.c

LOCAL_CFLAGS += -D WBXML_ENCODER_USE_STRTBL
LOCAL_CFLAGS += -D WBXML_SUPPORT_WML
LOCAL_CFLAGS += -D WBXML_SUPPORT_WTA
LOCAL_CFLAGS += -D WBXML_SUPPORT_SI
LOCAL_CFLAGS += -D WBXML_SUPPORT_SL
LOCAL_CFLAGS += -D WBXML_SUPPORT_CO
LOCAL_CFLAGS += -D WBXML_SUPPORT_PROV
LOCAL_CFLAGS += -D WBXML_SUPPORT_EMN
LOCAL_CFLAGS += -D WBXML_SUPPORT_DRMREL
LOCAL_CFLAGS += -D WBXML_SUPPORT_OTA_SETTINGS
LOCAL_CFLAGS += -D WBXML_SUPPORT_SYNCML
LOCAL_CFLAGS += -D WBXML_SUPPORT_WV
LOCAL_CFLAGS += -D WBXML_SUPPORT_AIRSYNC

###LOCAL_CFLAGS += -Wall -Wimplicit -Wreturn-type -Wunused -Wswitch -Wcomment -Wuninitialized -Wparentheses -Wpointer-arith -Wmissing-prototypes -O3 -g 
LOCAL_CFLAGS += -Wall -Wimplicit -Wreturn-type -Wunused -Wswitch -Wcomment -Wuninitialized -Wparentheses -Wpointer-arith -Wmissing-prototypes
LOCAL_CFLAGS += -nostdlib -fno-exceptions -fno-rtti -Wno-multichar

####LOCAL_CFLAGS += -I sources/wbxml2/jni/src
####LOCAL_C_INCLUDES += sources/wbxml2/jni/src
LOCAL_C_INCLUDES += $(DMCATOOLS)/sources/wbxml2/jni/src

LOCAL_MODULE:= libwbxml2

include $(BUILD_SHARED_LIBRARY)

