1 # This is the Android makefile for google3/third_party/libsrtp so that we can 2 # build it with the Android NDK. 3 ifeq ($(TARGET_ARCH),arm) 4 5 LOCAL_PATH := $(call my-dir) 6 7 common_SRC_FILES := \ 8 files/source/compare.cc \ 9 files/source/convert.cc \ 10 files/source/convert_argb.cc \ 11 files/source/convert_from.cc \ 12 files/source/cpu_id.cc \ 13 files/source/format_conversion.cc \ 14 files/source/planar_functions.cc \ 15 files/source/rotate.cc \ 16 files/source/rotate_argb.cc \ 17 files/source/row_common.cc \ 18 files/source/row_posix.cc \ 19 files/source/scale.cc \ 20 files/source/scale_argb.cc \ 21 files/source/video_common.cc 22 23 common_CFLAGS := -Wall -fexceptions 24 25 ifeq ($(TARGET_ARCH_VARIANT),armv7-a-neon) 26 common_CFLAGS += -DLIBYUV_NEON 27 common_SRC_FILES += \ 28 files/source/compare_neon.cc \ 29 files/source/rotate_neon.cc \ 30 files/source/row_neon.cc \ 31 files/source/scale_neon.cc 32 endif 33 34 common_C_INCLUDES = $(LOCAL_PATH)/files/include 35 36 # For the device 37 # ===================================================== 38 # Device static library 39 40 include $(CLEAR_VARS) 41 42 LOCAL_CPP_EXTENSION := .cc 43 44 LOCAL_SDK_VERSION := 9 45 LOCAL_NDK_STL_VARIANT := stlport_static 46 47 LOCAL_SRC_FILES := $(common_SRC_FILES) 48 LOCAL_CFLAGS += $(common_CFLAGS) 49 LOCAL_C_INCLUDES += $(common_C_INCLUDES) 50 51 LOCAL_MODULE:= libyuv_static 52 LOCAL_MODULE_TAGS := optional 53 54 include $(BUILD_STATIC_LIBRARY) 55 56 endif 57