fbarchard@google.com | 6d62980 | 2012-10-04 17:49:07 +0000 | [diff] [blame] | 1 | # This is the Android makefile for libyuv for both platform and NDK. |
| 2 | LOCAL_PATH:= $(call my-dir) |
fbarchard@google.com | 855c3a3 | 2012-09-19 07:27:17 +0000 | [diff] [blame] | 3 | |
fbarchard@google.com | 6d62980 | 2012-10-04 17:49:07 +0000 | [diff] [blame] | 4 | include $(CLEAR_VARS) |
fbarchard@google.com | 855c3a3 | 2012-09-19 07:27:17 +0000 | [diff] [blame] | 5 | |
fbarchard@google.com | 6d62980 | 2012-10-04 17:49:07 +0000 | [diff] [blame] | 6 | LOCAL_CPP_EXTENSION := .cc |
| 7 | |
| 8 | LOCAL_SRC_FILES := \ |
fbarchard@google.com | 95eb526 | 2012-10-22 19:55:40 +0000 | [diff] [blame] | 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 \ |
fbarchard@google.com | 20794c4 | 2013-04-12 07:30:25 +0000 | [diff] [blame] | 16 | source/convert_to_argb.cc \ |
| 17 | source/convert_to_i420.cc \ |
fbarchard@google.com | 95eb526 | 2012-10-22 19:55:40 +0000 | [diff] [blame] | 18 | source/cpu_id.cc \ |
| 19 | source/format_conversion.cc \ |
| 20 | source/planar_functions.cc \ |
| 21 | source/rotate.cc \ |
| 22 | source/rotate_argb.cc \ |
fbarchard@google.com | 20794c4 | 2013-04-12 07:30:25 +0000 | [diff] [blame] | 23 | source/rotate_mips.cc \ |
fbarchard@google.com | 4bfe1e0 | 2012-10-30 20:01:41 +0000 | [diff] [blame] | 24 | source/row_any.cc \ |
fbarchard@google.com | 95eb526 | 2012-10-22 19:55:40 +0000 | [diff] [blame] | 25 | source/row_common.cc \ |
| 26 | source/row_mips.cc \ |
| 27 | source/row_posix.cc \ |
| 28 | source/scale.cc \ |
| 29 | source/scale_argb.cc \ |
fbarchard@google.com | 49bbc1b | 2013-08-27 16:32:22 +0000 | [diff] [blame] | 30 | source/scale_common.cc \ |
fbarchard@google.com | 95eb526 | 2012-10-22 19:55:40 +0000 | [diff] [blame] | 31 | source/scale_mips.cc \ |
fbarchard@google.com | dbe4814 | 2013-11-28 01:16:15 +0000 | [diff] [blame] | 32 | source/scale_posix.cc \ |
fbarchard@google.com | 20794c4 | 2013-04-12 07:30:25 +0000 | [diff] [blame] | 33 | source/video_common.cc |
fbarchard@google.com | 66fe097 | 2012-10-22 16:18:53 +0000 | [diff] [blame] | 34 | |
| 35 | # TODO(fbarchard): Enable mjpeg encoder. |
fbarchard@google.com | d3728d9 | 2012-10-25 17:12:41 +0000 | [diff] [blame] | 36 | # source/mjpeg_decoder.cc |
fbarchard@google.com | 2b115a5 | 2013-04-15 20:06:52 +0000 | [diff] [blame] | 37 | # source/convert_jpeg.cc |
| 38 | # source/mjpeg_validate.cc |
fbarchard@google.com | 855c3a3 | 2012-09-19 07:27:17 +0000 | [diff] [blame] | 39 | |
fbarchard@google.com | 6d62980 | 2012-10-04 17:49:07 +0000 | [diff] [blame] | 40 | ifeq ($(TARGET_ARCH_ABI),armeabi-v7a) |
| 41 | LOCAL_CFLAGS += -DLIBYUV_NEON |
| 42 | LOCAL_SRC_FILES += \ |
fbarchard@google.com | 20794c4 | 2013-04-12 07:30:25 +0000 | [diff] [blame] | 43 | source/compare_neon.cc.neon \ |
| 44 | source/rotate_neon.cc.neon \ |
| 45 | source/row_neon.cc.neon \ |
fbarchard@google.com | 20794c4 | 2013-04-12 07:30:25 +0000 | [diff] [blame] | 46 | source/scale_neon.cc.neon |
fbarchard@google.com | 6d62980 | 2012-10-04 17:49:07 +0000 | [diff] [blame] | 47 | endif |
fbarchard@google.com | 855c3a3 | 2012-09-19 07:27:17 +0000 | [diff] [blame] | 48 | |
fbarchard@google.com | 28e2a9d | 2013-02-06 05:49:24 +0000 | [diff] [blame] | 49 | LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include |
fbarchard@google.com | 6d62980 | 2012-10-04 17:49:07 +0000 | [diff] [blame] | 50 | LOCAL_C_INCLUDES += $(LOCAL_PATH)/include |
fbarchard@google.com | 855c3a3 | 2012-09-19 07:27:17 +0000 | [diff] [blame] | 51 | |
fbarchard@google.com | 6d62980 | 2012-10-04 17:49:07 +0000 | [diff] [blame] | 52 | LOCAL_MODULE := libyuv_static |
fbarchard@google.com | 855c3a3 | 2012-09-19 07:27:17 +0000 | [diff] [blame] | 53 | LOCAL_MODULE_TAGS := optional |
| 54 | |
| 55 | include $(BUILD_STATIC_LIBRARY) |
| 56 | |