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     -Wno-unused-parameter \
     38     -Wno-unused-but-set-variable
     39 
     40 common_C_INCLUDES = $(LOCAL_PATH)/include
     41 
     42 # For the device
     43 # =====================================================
     44 # Device static library
     45 
     46 include $(CLEAR_VARS)
     47 
     48 ifeq ($(TARGET_ARCH),arm)
     49     LOCAL_SDK_VERSION := 9
     50 endif
     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)
     60