blob: 3ea3555b18e6b91ea99f1234f73b9df8ce35d89d [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 Vigier72335322012-08-06 15:59:44 -040020LOCAL_SHARED_LIBRARIES := libccgnu2
21LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib \
Emeric Vigieraf086112012-08-07 15:43:08 -040022 -L$(APP_PROJECT_PATH)/obj/local/armeabi \
Alexandre Savard1ce1aed2012-08-09 15:32:38 -040023 -lccgnu2 \
24 -lssl \
25 -lcrypto
Emeric Vigier2f625822012-08-06 11:09:52 -040026LOCAL_CPP_EXTENSION := .cxx .cpp
27
Emeric Vigier2f625822012-08-06 11:09:52 -040028SRTP_SRC_O = ccrtp/crypto/openssl/hmac.cpp \
29 ccrtp/crypto/openssl/AesSrtp.cxx \
30 ccrtp/crypto/openssl/InitializeOpenSSL.cxx
Emeric Vigier2f625822012-08-06 11:09:52 -040031
32ifneq ($(SRTP_GCRYPT),)
33SRTP_SRC_G = ccrtp/crypto/gcrypt/gcrypthmac.cxx \
34 ccrtp/crypto/gcrypt/gcryptAesSrtp.cxx \
35 ccrtp/crypto/gcrypt/InitializeGcrypt.cxx
36endif
37
38SKEIN_SRCS = ccrtp/crypto/macSkein.cpp \
39 ccrtp/crypto/skein.c \
40 ccrtp/crypto/skein_block.c \
41 ccrtp/crypto/skeinApi.c
42
43LOCAL_SRC_FILES := rtppkt.cpp rtcppkt.cpp source.cpp data.cpp incqueue.cpp \
44 outqueue.cpp queue.cpp control.cpp members.cpp socket.cpp duplex.cpp pool.cpp \
45 CryptoContext.cxx $(SRTP_SRC_G) $(SRTP_SRC_O) $(SKEIN_SRCS)
46
47
48#LOCAL_LDFLAGS := -version-info $(LT_VERSION) -release $(LT_RELEASE) $(SHARED_FLAGS)
49
50include $(BUILD_SHARED_LIBRARY)