Android.mk 1.78 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
    source/compare.cc           \
    source/compare_common.cc    \
11
    source/compare_neon64.cc    \
12
    source/compare_gcc.cc       \
13 14 15 16
    source/convert.cc           \
    source/convert_argb.cc      \
    source/convert_from.cc      \
    source/convert_from_argb.cc \
17 18
    source/convert_to_argb.cc   \
    source/convert_to_i420.cc   \
19 20 21
    source/cpu_id.cc            \
    source/planar_functions.cc  \
    source/rotate.cc            \
22
    source/rotate_any.cc        \
23
    source/rotate_argb.cc       \
24
    source/rotate_common.cc     \
25
    source/rotate_mips.cc       \
26
    source/rotate_neon64.cc     \
27
    source/rotate_gcc.cc        \
28
    source/row_any.cc           \
29 30
    source/row_common.cc        \
    source/row_mips.cc          \
31
    source/row_neon64.cc        \
32
    source/row_gcc.cc	        \
33
    source/scale.cc             \
34
    source/scale_any.cc         \
35
    source/scale_argb.cc        \
36
    source/scale_common.cc      \
37
    source/scale_mips.cc        \
38
    source/scale_neon64.cc      \
39
    source/scale_gcc.cc         \
40
    source/video_common.cc
41 42

# TODO(fbarchard): Enable mjpeg encoder.
43
#   source/mjpeg_decoder.cc
fbarchard@google.com's avatar
fbarchard@google.com committed
44 45
#   source/convert_jpeg.cc
#   source/mjpeg_validate.cc
46

47 48 49
ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
    LOCAL_CFLAGS += -DLIBYUV_NEON
    LOCAL_SRC_FILES += \
50 51 52 53
        source/compare_neon.cc.neon    \
        source/rotate_neon.cc.neon     \
        source/row_neon.cc.neon        \
        source/scale_neon.cc.neon
54
endif
55

56
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include
57
LOCAL_C_INCLUDES += $(LOCAL_PATH)/include
58

59
LOCAL_MODULE := libyuv_static
60 61 62 63
LOCAL_MODULE_TAGS := optional

include $(BUILD_STATIC_LIBRARY)