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