Commit d1cf1db9 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Updated Android.mk to use mbedtls instead of polarssl if asked

parent f16070cc
......@@ -7,24 +7,29 @@ LOCAL_MODULE := libbzrtp
LOCAL_ARM_MODE := arm
LOCAL_SRC_FILES = src/bzrtp.c \
src/cryptoPolarssl.c \
src/cryptoUtils.c \
src/packetParser.c \
src/stateMachine.c \
src/zidCache.c \
src/pgpwords.c
LOCAL_SRC_FILES = \
src/bzrtp.c \
src/cryptoUtils.c \
src/packetParser.c \
src/stateMachine.c \
src/zidCache.c \
src/pgpwords.c
LOCAL_STATIC_LIBRARIES += polarssl \
liblpxml2
LOCAL_STATIC_LIBRARIES += liblpxml2
LOCAL_C_INCLUDES += \
$(LOCAL_PATH)/include \
$(LOCAL_PATH)/../externals/polarssl/include \
$(LOCAL_PATH)/../externals/libxml2/include \
$(LOCAL_PATH)/../externals/build/libxml2
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
include $(BUILD_STATIC_LIBRARY)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment