1# 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 files/source/compare.cc \ 8 files/source/convert.cc \ 9 files/source/convert_argb.cc \ 10 files/source/convert_from.cc \ 11 files/source/cpu_id.cc \ 12 files/source/format_conversion.cc \ 13 files/source/mjpeg_decoder.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 23common_CFLAGS := -Wall -fexceptions -DHAVE_JPEG 24 25common_C_INCLUDES = $(LOCAL_PATH)/files/include 26 27# For the device 28# ===================================================== 29# Device static library 30 31include $(CLEAR_VARS) 32 33LOCAL_CPP_EXTENSION := .cc 34 35LOCAL_SDK_VERSION := 9 36LOCAL_NDK_STL_VARIANT := stlport_static 37 38LOCAL_SRC_FILES := $(common_SRC_FILES) 39LOCAL_CFLAGS += $(common_CFLAGS) 40LOCAL_C_INCLUDES += $(common_C_INCLUDES) 41LOCAL_SHARED_LIBRARIES := libjpeg 42 43LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/files/include 44 45ifeq ($(ARCH_ARM_HAVE_NEON),true) 46 LOCAL_CFLAGS_arm += -DLIBYUV_NEON 47 LOCAL_SRC_FILES_arm += \ 48 files/source/compare_neon.cc \ 49 files/source/rotate_neon.cc \ 50 files/source/row_neon.cc \ 51 files/source/scale_neon.cc 52endif 53 54LOCAL_MODULE := libyuv_static 55 56include $(BUILD_STATIC_LIBRARY) 57