Emeric Vigier | 2f62582 | 2012-08-06 11:09:52 -0400 | [diff] [blame] | 1 | LOCAL_PATH := $(call my-dir) |
| 2 | |
| 3 | include $(CLEAR_VARS) |
| 4 | |
| 5 | LT_VERSION = |
| 6 | LT_RELEASE = |
| 7 | SHARED_FLAGS = "-no-undefined" |
| 8 | SRTP_OPENSSL = |
| 9 | SRTP_GCRYPT = |
| 10 | |
| 11 | #LOCAL_CPPFLAGS += -Wno-psabi -frtti -pthread -fexceptions |
| 12 | LOCAL_CPPFLAGS += -std=gnu++0x -fexceptions |
Emeric Vigier | 02790e0 | 2012-08-06 15:14:25 -0400 | [diff] [blame] | 13 | LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../commoncpp2-1.8.1-android/inc |
Emeric Vigier | 2f62582 | 2012-08-06 11:09:52 -0400 | [diff] [blame] | 14 | LOCAL_MODULE := libccrtp1 |
Emeric Vigier | 7233532 | 2012-08-06 15:59:44 -0400 | [diff] [blame] | 15 | LOCAL_SHARED_LIBRARIES := libccgnu2 |
| 16 | LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib \ |
Emeric Vigier | af08611 | 2012-08-07 15:43:08 -0400 | [diff] [blame^] | 17 | -L$(APP_PROJECT_PATH)/obj/local/armeabi \ |
Emeric Vigier | 7233532 | 2012-08-06 15:59:44 -0400 | [diff] [blame] | 18 | -lccgnu2 |
Emeric Vigier | 2f62582 | 2012-08-06 11:09:52 -0400 | [diff] [blame] | 19 | LOCAL_CPP_EXTENSION := .cxx .cpp |
| 20 | |
| 21 | ifneq ($(SRTP_OPENSSL),) |
| 22 | SRTP_SRC_O = ccrtp/crypto/openssl/hmac.cpp \ |
| 23 | ccrtp/crypto/openssl/AesSrtp.cxx \ |
| 24 | ccrtp/crypto/openssl/InitializeOpenSSL.cxx |
| 25 | endif |
| 26 | |
| 27 | ifneq ($(SRTP_GCRYPT),) |
| 28 | SRTP_SRC_G = ccrtp/crypto/gcrypt/gcrypthmac.cxx \ |
| 29 | ccrtp/crypto/gcrypt/gcryptAesSrtp.cxx \ |
| 30 | ccrtp/crypto/gcrypt/InitializeGcrypt.cxx |
| 31 | endif |
| 32 | |
| 33 | SKEIN_SRCS = ccrtp/crypto/macSkein.cpp \ |
| 34 | ccrtp/crypto/skein.c \ |
| 35 | ccrtp/crypto/skein_block.c \ |
| 36 | ccrtp/crypto/skeinApi.c |
| 37 | |
| 38 | LOCAL_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 | |
| 45 | include $(BUILD_SHARED_LIBRARY) |