Android.mk revision 6118f52739ac45de997706bc602b6d766b2bd0dc
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/planar_functions.cc \ 14 files/source/rotate.cc \ 15 files/source/rotate_argb.cc \ 16 files/source/row_common.cc \ 17 files/source/row_posix.cc \ 18 files/source/scale.cc \ 19 files/source/scale_argb.cc \ 20 files/source/video_common.cc 21 22common_CFLAGS := -Wall -fexceptions 23 24ifeq ($(TARGET_ARCH_VARIANT),armv7-a-neon) 25 common_CFLAGS += -DLIBYUV_NEON 26 common_SRC_FILES += \ 27 files/source/compare_neon.cc \ 28 files/source/rotate_neon.cc \ 29 files/source/row_neon.cc \ 30 files/source/scale_neon.cc 31endif 32 33common_C_INCLUDES = $(LOCAL_PATH)/files/include 34 35# For the device 36# ===================================================== 37# Device static library 38 39include $(CLEAR_VARS) 40 41LOCAL_CPP_EXTENSION := .cc 42 43LOCAL_SDK_VERSION := 9 44LOCAL_NDK_STL_VARIANT := stlport_static 45 46LOCAL_SRC_FILES := $(common_SRC_FILES) 47LOCAL_CFLAGS += $(common_CFLAGS) 48LOCAL_C_INCLUDES += $(common_C_INCLUDES) 49 50LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/files/include 51LOCAL_MODULE := libyuv_static 52LOCAL_MODULE_TAGS := optional 53 54include $(BUILD_STATIC_LIBRARY) 55