Android.mk 1.32 KB
Newer Older
1 2
# This is the Android makefile for libyuv for both platform and NDK.
LOCAL_PATH:= $(call my-dir)
3

4 5 6
include $(CLEAR_VARS)

LOCAL_CPP_EXTENSION := .cc
7

8
LOCAL_SRC_FILES := \
9 10 11 12 13 14 15 16 17 18 19 20
    source/compare.cc           \
    source/compare_common.cc    \
    source/compare_posix.cc     \
    source/convert.cc           \
    source/convert_argb.cc      \
    source/convert_from.cc      \
    source/convert_from_argb.cc \
    source/cpu_id.cc            \
    source/format_conversion.cc \
    source/planar_functions.cc  \
    source/rotate.cc            \
    source/rotate_argb.cc       \
21
    source/row_any.cc           \
22 23 24 25 26 27 28
    source/row_common.cc        \
    source/row_mips.cc          \
    source/row_posix.cc         \
    source/scale.cc             \
    source/scale_argb.cc        \
    source/scale_mips.cc        \
    source/video_common.cc      \
29 30

# TODO(fbarchard): Enable mjpeg encoder.
31
#   source/mjpeg_decoder.cc
32

33 34 35
ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
    LOCAL_CFLAGS += -DLIBYUV_NEON
    LOCAL_SRC_FILES += \
36
        source/compare_neon.cc.neon \
37 38
        source/rotate_neon.cc.neon  \
        source/row_neon.cc.neon     \
39 40
        source/scale_neon.cc.neon   \
        source/scale_neon_argb.cc.neon
41
endif
42

43
LOCAL_C_INCLUDES += $(LOCAL_PATH)/include
44

45
LOCAL_MODULE := libyuv_static
46 47 48 49
LOCAL_MODULE_TAGS := optional

include $(BUILD_STATIC_LIBRARY)