Home | History | Annotate | Download | only in srtp
      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 
     46 ifeq ($(TARGET_ARCH),arm)
     47     LOCAL_SDK_VERSION := 9
     48 endif
     49 
     50 
     51 LOCAL_SRC_FILES := $(common_SRC_FILES)
     52 LOCAL_CFLAGS += $(common_CFLAGS)
     53 LOCAL_C_INCLUDES += $(common_C_INCLUDES)
     54 
     55 LOCAL_MODULE:= libsrtp_static
     56 LOCAL_MODULE_TAGS := optional
     57 
     58 include $(BUILD_STATIC_LIBRARY)
     59