16d629809777ca5e0d1340ab4829c3a9db02d8877fbarchard@google.com# This is the Android makefile for libyuv for both platform and NDK. 26d629809777ca5e0d1340ab4829c3a9db02d8877fbarchard@google.comLOCAL_PATH:= $(call my-dir) 3855c3a3d9eab41f3359c5cc763b70b4fe66cc492fbarchard@google.com 46d629809777ca5e0d1340ab4829c3a9db02d8877fbarchard@google.cominclude $(CLEAR_VARS) 56d629809777ca5e0d1340ab4829c3a9db02d8877fbarchard@google.com 66d629809777ca5e0d1340ab4829c3a9db02d8877fbarchard@google.comLOCAL_CPP_EXTENSION := .cc 7855c3a3d9eab41f3359c5cc763b70b4fe66cc492fbarchard@google.com 86d629809777ca5e0d1340ab4829c3a9db02d8877fbarchard@google.comLOCAL_SRC_FILES := \ 995eb5264a6d03f8b7dc9180a379f8d1f077c5417fbarchard@google.com source/compare.cc \ 1095eb5264a6d03f8b7dc9180a379f8d1f077c5417fbarchard@google.com source/compare_common.cc \ 1195eb5264a6d03f8b7dc9180a379f8d1f077c5417fbarchard@google.com source/compare_posix.cc \ 1295eb5264a6d03f8b7dc9180a379f8d1f077c5417fbarchard@google.com source/convert.cc \ 1395eb5264a6d03f8b7dc9180a379f8d1f077c5417fbarchard@google.com source/convert_argb.cc \ 1495eb5264a6d03f8b7dc9180a379f8d1f077c5417fbarchard@google.com source/convert_from.cc \ 1595eb5264a6d03f8b7dc9180a379f8d1f077c5417fbarchard@google.com source/convert_from_argb.cc \ 1620794c4680dfec0716a6e4332d0ff84d955d4ff0fbarchard@google.com source/convert_to_argb.cc \ 1720794c4680dfec0716a6e4332d0ff84d955d4ff0fbarchard@google.com source/convert_to_i420.cc \ 1895eb5264a6d03f8b7dc9180a379f8d1f077c5417fbarchard@google.com source/cpu_id.cc \ 1995eb5264a6d03f8b7dc9180a379f8d1f077c5417fbarchard@google.com source/format_conversion.cc \ 2095eb5264a6d03f8b7dc9180a379f8d1f077c5417fbarchard@google.com source/planar_functions.cc \ 2195eb5264a6d03f8b7dc9180a379f8d1f077c5417fbarchard@google.com source/rotate.cc \ 2295eb5264a6d03f8b7dc9180a379f8d1f077c5417fbarchard@google.com source/rotate_argb.cc \ 2320794c4680dfec0716a6e4332d0ff84d955d4ff0fbarchard@google.com source/rotate_mips.cc \ 244bfe1e0d6b1edf62d46beba2d6481c4184580ef1fbarchard@google.com source/row_any.cc \ 2595eb5264a6d03f8b7dc9180a379f8d1f077c5417fbarchard@google.com source/row_common.cc \ 2695eb5264a6d03f8b7dc9180a379f8d1f077c5417fbarchard@google.com source/row_mips.cc \ 2795eb5264a6d03f8b7dc9180a379f8d1f077c5417fbarchard@google.com source/row_posix.cc \ 2895eb5264a6d03f8b7dc9180a379f8d1f077c5417fbarchard@google.com source/scale.cc \ 2995eb5264a6d03f8b7dc9180a379f8d1f077c5417fbarchard@google.com source/scale_argb.cc \ 3049bbc1b4f368e7e30fe5f12663b2334a5213752efbarchard@google.com source/scale_common.cc \ 3195eb5264a6d03f8b7dc9180a379f8d1f077c5417fbarchard@google.com source/scale_mips.cc \ 32dbe4814361fb8fcbc462bbe45a2f39360e14a982fbarchard@google.com source/scale_posix.cc \ 3320794c4680dfec0716a6e4332d0ff84d955d4ff0fbarchard@google.com source/video_common.cc 3466fe097a2b67f339b81e969e6f2ac624bfbfa296fbarchard@google.com 3566fe097a2b67f339b81e969e6f2ac624bfbfa296fbarchard@google.com# TODO(fbarchard): Enable mjpeg encoder. 36d3728d92220d86fe76837c9002d2e2c8a7caab21fbarchard@google.com# source/mjpeg_decoder.cc 372b115a5237a8133a2eff060880f29198adf35eecfbarchard@google.com# source/convert_jpeg.cc 382b115a5237a8133a2eff060880f29198adf35eecfbarchard@google.com# source/mjpeg_validate.cc 39855c3a3d9eab41f3359c5cc763b70b4fe66cc492fbarchard@google.com 406d629809777ca5e0d1340ab4829c3a9db02d8877fbarchard@google.comifeq ($(TARGET_ARCH_ABI),armeabi-v7a) 416d629809777ca5e0d1340ab4829c3a9db02d8877fbarchard@google.com LOCAL_CFLAGS += -DLIBYUV_NEON 426d629809777ca5e0d1340ab4829c3a9db02d8877fbarchard@google.com LOCAL_SRC_FILES += \ 4320794c4680dfec0716a6e4332d0ff84d955d4ff0fbarchard@google.com source/compare_neon.cc.neon \ 4420794c4680dfec0716a6e4332d0ff84d955d4ff0fbarchard@google.com source/rotate_neon.cc.neon \ 4520794c4680dfec0716a6e4332d0ff84d955d4ff0fbarchard@google.com source/row_neon.cc.neon \ 4620794c4680dfec0716a6e4332d0ff84d955d4ff0fbarchard@google.com source/scale_neon.cc.neon 476d629809777ca5e0d1340ab4829c3a9db02d8877fbarchard@google.comendif 48855c3a3d9eab41f3359c5cc763b70b4fe66cc492fbarchard@google.com 4928e2a9daa059fc7fb648dfcd1065ff013deb2ca3fbarchard@google.comLOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include 506d629809777ca5e0d1340ab4829c3a9db02d8877fbarchard@google.comLOCAL_C_INCLUDES += $(LOCAL_PATH)/include 51855c3a3d9eab41f3359c5cc763b70b4fe66cc492fbarchard@google.com 526d629809777ca5e0d1340ab4829c3a9db02d8877fbarchard@google.comLOCAL_MODULE := libyuv_static 53855c3a3d9eab41f3359c5cc763b70b4fe66cc492fbarchard@google.comLOCAL_MODULE_TAGS := optional 54855c3a3d9eab41f3359c5cc763b70b4fe66cc492fbarchard@google.com 55855c3a3d9eab41f3359c5cc763b70b4fe66cc492fbarchard@google.cominclude $(BUILD_STATIC_LIBRARY) 56855c3a3d9eab41f3359c5cc763b70b4fe66cc492fbarchard@google.com 57