1 # This is the Android makefile for libyuv for both platform and NDK. 2 LOCAL_PATH:= $(call my-dir) 3 4 include $(CLEAR_VARS) 5 6 LOCAL_CPP_EXTENSION := .cc 7 8 LOCAL_SRC_FILES := \ 9 source/compare.cc \ 10 source/compare_common.cc \ 11 source/compare_posix.cc \ 12 source/convert.cc \ 13 source/convert_argb.cc \ 14 source/convert_from.cc \ 15 source/convert_from_argb.cc \ 16 source/convert_to_argb.cc \ 17 source/convert_to_i420.cc \ 18 source/cpu_id.cc \ 19 source/format_conversion.cc \ 20 source/planar_functions.cc \ 21 source/rotate.cc \ 22 source/rotate_argb.cc \ 23 source/rotate_mips.cc \ 24 source/row_any.cc \ 25 source/row_common.cc \ 26 source/row_mips.cc \ 27 source/row_posix.cc \ 28 source/scale.cc \ 29 source/scale_argb.cc \ 30 source/scale_common.cc \ 31 source/scale_mips.cc \ 32 source/scale_posix.cc \ 33 source/video_common.cc 34 35 # TODO(fbarchard): Enable mjpeg encoder. 36 # source/mjpeg_decoder.cc 37 # source/convert_jpeg.cc 38 # source/mjpeg_validate.cc 39 40 ifeq ($(TARGET_ARCH_ABI),armeabi-v7a) 41 LOCAL_CFLAGS += -DLIBYUV_NEON 42 LOCAL_SRC_FILES += \ 43 source/compare_neon.cc.neon \ 44 source/rotate_neon.cc.neon \ 45 source/row_neon.cc.neon \ 46 source/scale_neon.cc.neon 47 endif 48 49 LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include 50 LOCAL_C_INCLUDES += $(LOCAL_PATH)/include 51 52 LOCAL_MODULE := libyuv_static 53 LOCAL_MODULE_TAGS := optional 54 55 include $(BUILD_STATIC_LIBRARY) 56 57