1# This is the Android makefile for libyuv for NDK. 2LOCAL_PATH:= $(call my-dir) 3 4include $(CLEAR_VARS) 5 6LOCAL_CPP_EXTENSION := .cc 7 8LOCAL_SRC_FILES := \ 9 source/compare.cc \ 10 source/compare_common.cc \ 11 source/compare_gcc.cc \ 12 source/compare_neon.cc \ 13 source/compare_neon64.cc \ 14 source/convert.cc \ 15 source/convert_argb.cc \ 16 source/convert_from.cc \ 17 source/convert_from_argb.cc \ 18 source/convert_jpeg.cc \ 19 source/convert_to_argb.cc \ 20 source/convert_to_i420.cc \ 21 source/cpu_id.cc \ 22 source/mjpeg_decoder.cc \ 23 source/mjpeg_validate.cc \ 24 source/planar_functions.cc \ 25 source/rotate.cc \ 26 source/rotate_any.cc \ 27 source/rotate_argb.cc \ 28 source/rotate_common.cc \ 29 source/rotate_dspr2.cc \ 30 source/rotate_gcc.cc \ 31 source/rotate_msa.cc \ 32 source/rotate_neon.cc \ 33 source/rotate_neon64.cc \ 34 source/row_any.cc \ 35 source/row_common.cc \ 36 source/row_dspr2.cc \ 37 source/row_gcc.cc \ 38 source/row_msa.cc \ 39 source/row_neon.cc \ 40 source/row_neon64.cc \ 41 source/scale.cc \ 42 source/scale_any.cc \ 43 source/scale_argb.cc \ 44 source/scale_common.cc \ 45 source/scale_dspr2.cc \ 46 source/scale_gcc.cc \ 47 source/scale_msa.cc \ 48 source/scale_neon.cc \ 49 source/scale_neon64.cc \ 50 source/video_common.cc 51 52common_CFLAGS := -Wall -fexceptions -DHAVE_JPEG 53LOCAL_CFLAGS += $(common_CFLAGS) 54LOCAL_SHARED_LIBRARIES := libjpeg 55LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include 56LOCAL_C_INCLUDES += $(LOCAL_PATH)/include 57LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include 58 59LOCAL_MODULE := libyuv_static 60LOCAL_MODULE_TAGS := optional 61 62include $(BUILD_STATIC_LIBRARY) 63 64include $(CLEAR_VARS) 65 66LOCAL_WHOLE_STATIC_LIBRARIES := libyuv_static 67LOCAL_MODULE := libyuv 68LOCAL_SHARED_LIBRARIES := libjpeg 69 70include $(BUILD_SHARED_LIBRARY) 71