Param Reddappagari | 386ce4d | 2011-10-04 12:15:40 -0700 | [diff] [blame] | 1 | # This is the Android makefile for google3/third_party/libsrtp so that we can |
| 2 | # build it with the Android NDK. |
| 3 | |
| 4 | LOCAL_PATH:= $(call my-dir) |
| 5 | |
| 6 | common_SRC_FILES := \ |
| 7 | srtp/srtp.c \ |
| 8 | srtp/ekt.c \ |
| 9 | crypto/cipher/cipher.c \ |
| 10 | crypto/cipher/null_cipher.c \ |
| 11 | crypto/cipher/aes.c \ |
| 12 | crypto/cipher/aes_icm.c \ |
| 13 | crypto/cipher/aes_cbc.c \ |
| 14 | crypto/hash/null_auth.c \ |
| 15 | crypto/hash/sha1.c \ |
| 16 | crypto/hash/hmac.c \ |
| 17 | crypto/hash/auth.c \ |
| 18 | crypto/math/datatypes.c \ |
| 19 | crypto/math/stat.c \ |
| 20 | crypto/rng/rand_source.c \ |
| 21 | crypto/rng/prng.c \ |
| 22 | crypto/rng/ctr_prng.c \ |
| 23 | crypto/kernel/err.c \ |
| 24 | crypto/kernel/crypto_kernel.c \ |
| 25 | crypto/kernel/alloc.c \ |
| 26 | crypto/kernel/key.c \ |
| 27 | crypto/ae_xfm/xfm.c \ |
| 28 | crypto/replay/rdb.c \ |
| 29 | crypto/replay/rdbx.c |
| 30 | |
| 31 | common_CFLAGS := \ |
| 32 | -DPOSIX -iquote$(LOCAL_PATH)/crypto/include \ |
| 33 | -Werror \ |
| 34 | -Wno-ignored-qualifiers \ |
| 35 | -Wno-sign-compare \ |
| 36 | -Wno-missing-field-initializers |
| 37 | |
| 38 | common_C_INCLUDES = $(LOCAL_PATH)/include |
| 39 | |
| 40 | # For the device |
| 41 | # ===================================================== |
| 42 | # Device static library |
| 43 | |
| 44 | include $(CLEAR_VARS) |
| 45 | |
Chris Dearman | bdcb2b3 | 2011-11-17 18:34:39 -0800 | [diff] [blame^] | 46 | ifeq ($(TARGET_ARCH),arm) |
Param Reddappagari | 386ce4d | 2011-10-04 12:15:40 -0700 | [diff] [blame] | 47 | LOCAL_NDK_VERSION := 5 |
| 48 | LOCAL_SDK_VERSION := 9 |
| 49 | endif |
| 50 | |
| 51 | |
| 52 | LOCAL_SRC_FILES := $(common_SRC_FILES) |
| 53 | LOCAL_CFLAGS += $(common_CFLAGS) |
| 54 | LOCAL_C_INCLUDES += $(common_C_INCLUDES) |
| 55 | |
| 56 | LOCAL_MODULE:= libsrtp_static |
| 57 | LOCAL_MODULE_TAGS := optional |
| 58 | |
| 59 | include $(BUILD_STATIC_LIBRARY) |