blob: 3e7e093e38df0073600986313c4b6b8c1be2054f [file] [log] [blame]
Alexandre Savard1ce1aed2012-08-09 15:32:38 -04001MY_LOCAL_PATH := $(call my-dir)
2
3include $(call all-subdir-makefiles)
4
5LOCAL_PATH := $(MY_LOCAL_PATH)
Emeric Vigier2f625822012-08-06 11:09:52 -04006
7include $(CLEAR_VARS)
8
9LT_VERSION =
10LT_RELEASE =
11SHARED_FLAGS = "-no-undefined"
12SRTP_OPENSSL =
13SRTP_GCRYPT =
14
15#LOCAL_CPPFLAGS += -Wno-psabi -frtti -pthread -fexceptions
16LOCAL_CPPFLAGS += -std=gnu++0x -fexceptions
Alexandre Savard1ce1aed2012-08-09 15:32:38 -040017LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../commoncpp2-1.8.1-android/inc \
18 $(LOCAL_PATH)/../../openssl/include
Emeric Vigier2f625822012-08-06 11:09:52 -040019LOCAL_MODULE := libccrtp1
Emeric Vigier52e2d5f2012-08-09 17:29:06 -040020LOCAL_SHARED_LIBRARIES += libccgnu2 \
21 libssl_shared
Emeric Vigier72335322012-08-06 15:59:44 -040022LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib \
Emeric Vigieraf086112012-08-07 15:43:08 -040023 -L$(APP_PROJECT_PATH)/obj/local/armeabi \
Alexandre Savard1ce1aed2012-08-09 15:32:38 -040024 -lccgnu2 \
25 -lssl \
26 -lcrypto
Emeric Vigier2f625822012-08-06 11:09:52 -040027LOCAL_CPP_EXTENSION := .cxx .cpp
28
Emeric Vigier2f625822012-08-06 11:09:52 -040029SRTP_SRC_O = ccrtp/crypto/openssl/hmac.cpp \
30 ccrtp/crypto/openssl/AesSrtp.cxx \
31 ccrtp/crypto/openssl/InitializeOpenSSL.cxx
Emeric Vigier2f625822012-08-06 11:09:52 -040032
33ifneq ($(SRTP_GCRYPT),)
34SRTP_SRC_G = ccrtp/crypto/gcrypt/gcrypthmac.cxx \
35 ccrtp/crypto/gcrypt/gcryptAesSrtp.cxx \
36 ccrtp/crypto/gcrypt/InitializeGcrypt.cxx
37endif
38
39SKEIN_SRCS = ccrtp/crypto/macSkein.cpp \
40 ccrtp/crypto/skein.c \
41 ccrtp/crypto/skein_block.c \
42 ccrtp/crypto/skeinApi.c
43
44LOCAL_SRC_FILES := rtppkt.cpp rtcppkt.cpp source.cpp data.cpp incqueue.cpp \
45 outqueue.cpp queue.cpp control.cpp members.cpp socket.cpp duplex.cpp pool.cpp \
46 CryptoContext.cxx $(SRTP_SRC_G) $(SRTP_SRC_O) $(SKEIN_SRCS)
47
48
49#LOCAL_LDFLAGS := -version-info $(LT_VERSION) -release $(LT_RELEASE) $(SHARED_FLAGS)
50
51include $(BUILD_SHARED_LIBRARY)