2012-03-03 11:39:38 +01:00
|
|
|
LOCAL_PATH:= $(call my-dir)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
2012-03-14 13:48:59 +01:00
|
|
|
ifneq ($(OSMAND_BUILDING_NEON_LIBRARY),true)
|
2012-03-23 08:00:12 +01:00
|
|
|
LOCAL_MODULE := expat_static
|
2012-03-03 11:39:38 +01:00
|
|
|
else
|
2012-03-23 08:00:12 +01:00
|
|
|
LOCAL_MODULE := expat_static_neon
|
2012-03-03 11:39:38 +01:00
|
|
|
LOCAL_ARM_NEON := true
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(OSMAND_EXPAT_LOC),)
|
|
|
|
OSMAND_EXPAT_LOC := ./expat_library
|
|
|
|
endif
|
|
|
|
ifeq ($(OSMAND_EXPAT_ABS),)
|
|
|
|
OSMAND_EXPAT_ABS := $(LOCAL_PATH)/expat_library
|
|
|
|
endif
|
|
|
|
|
2012-03-23 08:00:12 +01:00
|
|
|
ifneq ($(OSMAND_USE_PREBUILT),true)
|
|
|
|
|
2012-03-03 11:39:38 +01:00
|
|
|
LOCAL_SRC_FILES := \
|
|
|
|
$(OSMAND_EXPAT_LOC)/lib/xmlparse.c \
|
|
|
|
$(OSMAND_EXPAT_LOC)/lib/xmlrole.c \
|
|
|
|
$(OSMAND_EXPAT_LOC)/lib/xmltok.c
|
|
|
|
|
|
|
|
LOCAL_CFLAGS += -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H
|
|
|
|
|
|
|
|
LOCAL_C_INCLUDES += \
|
|
|
|
$(OSMAND_EXPAT_ABS) \
|
|
|
|
$(OSMAND_EXPAT_ABS)/lib
|
|
|
|
|
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
2012-03-23 08:00:12 +01:00
|
|
|
|
|
|
|
else
|
|
|
|
LOCAL_SRC_FILES := \
|
2012-04-30 01:51:51 +02:00
|
|
|
../jni-prebuilt/$(TARGET_ARCH_ABI)/lib$(LOCAL_MODULE).a
|
2012-03-23 08:00:12 +01:00
|
|
|
include $(PREBUILT_STATIC_LIBRARY)
|
|
|
|
endif
|