blob: 97a48451679096731a6da6d40751f6093eccf5dc [file] [log] [blame]
Param Reddappagari386ce4d2011-10-04 12:15:40 -07001# This is the Android makefile for google3/third_party/libsrtp so that we can
2# build it with the Android NDK.
3
4LOCAL_PATH:= $(call my-dir)
5
6common_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
31common_CFLAGS := \
32 -DPOSIX -iquote$(LOCAL_PATH)/crypto/include \
33 -Werror \
34 -Wno-ignored-qualifiers \
35 -Wno-sign-compare \
36 -Wno-missing-field-initializers
37
38common_C_INCLUDES = $(LOCAL_PATH)/include
39
40# For the device
41# =====================================================
42# Device static library
43
44include $(CLEAR_VARS)
45
Chris Dearmanbdcb2b32011-11-17 18:34:39 -080046ifeq ($(TARGET_ARCH),arm)
Param Reddappagari386ce4d2011-10-04 12:15:40 -070047 LOCAL_NDK_VERSION := 5
48 LOCAL_SDK_VERSION := 9
49endif
50
51
52LOCAL_SRC_FILES := $(common_SRC_FILES)
53LOCAL_CFLAGS += $(common_CFLAGS)
54LOCAL_C_INCLUDES += $(common_C_INCLUDES)
55
56LOCAL_MODULE:= libsrtp_static
57LOCAL_MODULE_TAGS := optional
58
59include $(BUILD_STATIC_LIBRARY)