blob: bde660645ef727cc6f822aed4752f8121ed20c04 [file] [log] [blame]
Emeric Vigier2f625822012-08-06 11:09:52 -04001LOCAL_PATH := $(call my-dir)
2
3include $(CLEAR_VARS)
4
5LT_VERSION =
6LT_RELEASE =
7SHARED_FLAGS = "-no-undefined"
8SRTP_OPENSSL =
9SRTP_GCRYPT =
10
11#LOCAL_CPPFLAGS += -Wno-psabi -frtti -pthread -fexceptions
12LOCAL_CPPFLAGS += -std=gnu++0x -fexceptions
Emeric Vigier02790e02012-08-06 15:14:25 -040013LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../commoncpp2-1.8.1-android/inc
Emeric Vigier2f625822012-08-06 11:09:52 -040014LOCAL_MODULE := libccrtp1
Emeric Vigier72335322012-08-06 15:59:44 -040015LOCAL_SHARED_LIBRARIES := libccgnu2
16LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib \
Emeric Vigieraf086112012-08-07 15:43:08 -040017 -L$(APP_PROJECT_PATH)/obj/local/armeabi \
Emeric Vigier72335322012-08-06 15:59:44 -040018 -lccgnu2
Emeric Vigier2f625822012-08-06 11:09:52 -040019LOCAL_CPP_EXTENSION := .cxx .cpp
20
21ifneq ($(SRTP_OPENSSL),)
22SRTP_SRC_O = ccrtp/crypto/openssl/hmac.cpp \
23 ccrtp/crypto/openssl/AesSrtp.cxx \
24 ccrtp/crypto/openssl/InitializeOpenSSL.cxx
25endif
26
27ifneq ($(SRTP_GCRYPT),)
28SRTP_SRC_G = ccrtp/crypto/gcrypt/gcrypthmac.cxx \
29 ccrtp/crypto/gcrypt/gcryptAesSrtp.cxx \
30 ccrtp/crypto/gcrypt/InitializeGcrypt.cxx
31endif
32
33SKEIN_SRCS = ccrtp/crypto/macSkein.cpp \
34 ccrtp/crypto/skein.c \
35 ccrtp/crypto/skein_block.c \
36 ccrtp/crypto/skeinApi.c
37
38LOCAL_SRC_FILES := rtppkt.cpp rtcppkt.cpp source.cpp data.cpp incqueue.cpp \
39 outqueue.cpp queue.cpp control.cpp members.cpp socket.cpp duplex.cpp pool.cpp \
40 CryptoContext.cxx $(SRTP_SRC_G) $(SRTP_SRC_O) $(SKEIN_SRCS)
41
42
43#LOCAL_LDFLAGS := -version-info $(LT_VERSION) -release $(LT_RELEASE) $(SHARED_FLAGS)
44
45include $(BUILD_SHARED_LIBRARY)