Android.mk 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # This is the Android makefile for libyuv for both platform and NDK.
  2. LOCAL_PATH:= $(call my-dir)
  3. include $(CLEAR_VARS)
  4. LOCAL_CPP_EXTENSION := .cc
  5. LOCAL_SRC_FILES := \
  6. source/compare.cc \
  7. source/compare_common.cc \
  8. source/compare_neon64.cc \
  9. source/compare_gcc.cc \
  10. source/convert.cc \
  11. source/convert_argb.cc \
  12. source/convert_from.cc \
  13. source/convert_from_argb.cc \
  14. source/convert_to_argb.cc \
  15. source/convert_to_i420.cc \
  16. source/cpu_id.cc \
  17. source/planar_functions.cc \
  18. source/rotate.cc \
  19. source/rotate_any.cc \
  20. source/rotate_argb.cc \
  21. source/rotate_common.cc \
  22. source/rotate_mips.cc \
  23. source/rotate_neon64.cc \
  24. source/rotate_gcc.cc \
  25. source/row_any.cc \
  26. source/row_common.cc \
  27. source/row_mips.cc \
  28. source/row_neon64.cc \
  29. source/row_gcc.cc \
  30. source/scale.cc \
  31. source/scale_any.cc \
  32. source/scale_argb.cc \
  33. source/scale_common.cc \
  34. source/scale_mips.cc \
  35. source/scale_neon64.cc \
  36. source/scale_gcc.cc \
  37. source/video_common.cc
  38. # TODO(fbarchard): Enable mjpeg encoder.
  39. # source/mjpeg_decoder.cc
  40. # source/convert_jpeg.cc
  41. # source/mjpeg_validate.cc
  42. ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
  43. LOCAL_CFLAGS += -DLIBYUV_NEON
  44. LOCAL_SRC_FILES += \
  45. source/compare_neon.cc.neon \
  46. source/rotate_neon.cc.neon \
  47. source/row_neon.cc.neon \
  48. source/scale_neon.cc.neon
  49. endif
  50. ifeq ($(TARGET_ARCH_ABI),mips)
  51. LOCAL_CFLAGS += -DLIBYUV_MSA
  52. LOCAL_SRC_FILES += \
  53. source/row_msa.cc
  54. endif
  55. LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include
  56. LOCAL_C_INCLUDES += $(LOCAL_PATH)/include
  57. LOCAL_MODULE := libyuv_static
  58. LOCAL_MODULE_TAGS := optional
  59. include $(BUILD_STATIC_LIBRARY)