Android.mk 797 Bytes
Newer Older
jehan's avatar
jehan committed
1 2 3 4 5 6 7 8 9
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)

LOCAL_CFLAGS += -DHAVE_LIBXML2

LOCAL_MODULE := libbzrtp

LOCAL_ARM_MODE := arm

10 11 12 13 14 15 16
LOCAL_SRC_FILES =  \
	src/bzrtp.c \
	src/cryptoUtils.c \
	src/packetParser.c \
	src/stateMachine.c \
	src/zidCache.c \
	src/pgpwords.c
jehan's avatar
jehan committed
17

18
LOCAL_STATIC_LIBRARIES += liblpxml2
jehan's avatar
jehan committed
19 20 21 22 23 24

LOCAL_C_INCLUDES += \
	$(LOCAL_PATH)/include \
	$(LOCAL_PATH)/../externals/libxml2/include \
	$(LOCAL_PATH)/../externals/build/libxml2

25 26 27 28 29 30 31 32 33
ifeq ($(BUILD_BCTOOLBOX_MBEDTLS),1)
LOCAL_SRC_FILES += src/cryptoMbedtls.c 
LOCAL_STATIC_LIBRARIES += mbedtls
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../externals/mbedtls/include
else
LOCAL_SRC_FILES += src/cryptoPolarssl.c
LOCAL_STATIC_LIBRARIES += polarssl
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../externals/polarssl/include
endif
jehan's avatar
jehan committed
34 35

include $(BUILD_STATIC_LIBRARY)