blob: d82a872c53a54121ace181ec351c0b6b9528fe49 [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
13LOCAL_MODULE := libccrtp1
14LOCAL_STATIC_LIBRARIES := libccgnu2
15LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib -lccgnu2
16LOCAL_CPP_EXTENSION := .cxx .cpp
17
18ifneq ($(SRTP_OPENSSL),)
19SRTP_SRC_O = ccrtp/crypto/openssl/hmac.cpp \
20 ccrtp/crypto/openssl/AesSrtp.cxx \
21 ccrtp/crypto/openssl/InitializeOpenSSL.cxx
22endif
23
24ifneq ($(SRTP_GCRYPT),)
25SRTP_SRC_G = ccrtp/crypto/gcrypt/gcrypthmac.cxx \
26 ccrtp/crypto/gcrypt/gcryptAesSrtp.cxx \
27 ccrtp/crypto/gcrypt/InitializeGcrypt.cxx
28endif
29
30SKEIN_SRCS = ccrtp/crypto/macSkein.cpp \
31 ccrtp/crypto/skein.c \
32 ccrtp/crypto/skein_block.c \
33 ccrtp/crypto/skeinApi.c
34
35LOCAL_SRC_FILES := rtppkt.cpp rtcppkt.cpp source.cpp data.cpp incqueue.cpp \
36 outqueue.cpp queue.cpp control.cpp members.cpp socket.cpp duplex.cpp pool.cpp \
37 CryptoContext.cxx $(SRTP_SRC_G) $(SRTP_SRC_O) $(SKEIN_SRCS)
38
39
40#LOCAL_LDFLAGS := -version-info $(LT_VERSION) -release $(LT_RELEASE) $(SHARED_FLAGS)
41
42include $(BUILD_SHARED_LIBRARY)