Android.mk 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. # This is the Android makefile for libyuv for 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_gcc.cc \
  9. source/compare_mmi.cc \
  10. source/compare_msa.cc \
  11. source/compare_neon.cc \
  12. source/compare_neon64.cc \
  13. source/convert.cc \
  14. source/convert_argb.cc \
  15. source/convert_from.cc \
  16. source/convert_from_argb.cc \
  17. source/convert_to_argb.cc \
  18. source/convert_to_i420.cc \
  19. source/cpu_id.cc \
  20. source/planar_functions.cc \
  21. source/rotate.cc \
  22. source/rotate_any.cc \
  23. source/rotate_argb.cc \
  24. source/rotate_common.cc \
  25. source/rotate_gcc.cc \
  26. source/rotate_mmi.cc \
  27. source/rotate_msa.cc \
  28. source/rotate_neon.cc \
  29. source/rotate_neon64.cc \
  30. source/row_any.cc \
  31. source/row_common.cc \
  32. source/row_gcc.cc \
  33. source/row_mmi.cc \
  34. source/row_msa.cc \
  35. source/row_neon.cc \
  36. source/row_neon64.cc \
  37. source/scale.cc \
  38. source/scale_any.cc \
  39. source/scale_argb.cc \
  40. source/scale_common.cc \
  41. source/scale_gcc.cc \
  42. source/scale_mmi.cc \
  43. source/scale_msa.cc \
  44. source/scale_neon.cc \
  45. source/scale_neon64.cc \
  46. source/video_common.cc
  47. common_CFLAGS := -Wall -fexceptions
  48. ifneq ($(LIBYUV_DISABLE_JPEG), "yes")
  49. LOCAL_SRC_FILES += \
  50. source/convert_jpeg.cc \
  51. source/mjpeg_decoder.cc \
  52. source/mjpeg_validate.cc
  53. common_CFLAGS += -DHAVE_JPEG
  54. LOCAL_SHARED_LIBRARIES := libjpeg
  55. endif
  56. LOCAL_CFLAGS += $(common_CFLAGS)
  57. LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include
  58. LOCAL_C_INCLUDES += $(LOCAL_PATH)/include
  59. LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
  60. LOCAL_MODULE := libyuv_static
  61. LOCAL_MODULE_TAGS := optional
  62. include $(BUILD_STATIC_LIBRARY)
  63. include $(CLEAR_VARS)
  64. LOCAL_WHOLE_STATIC_LIBRARIES := libyuv_static
  65. LOCAL_MODULE := libyuv
  66. ifneq ($(LIBYUV_DISABLE_JPEG), "yes")
  67. LOCAL_SHARED_LIBRARIES := libjpeg
  68. endif
  69. include $(BUILD_SHARED_LIBRARY)
  70. include $(CLEAR_VARS)
  71. LOCAL_STATIC_LIBRARIES := libyuv_static
  72. LOCAL_SHARED_LIBRARIES := libjpeg
  73. LOCAL_MODULE_TAGS := tests
  74. LOCAL_CPP_EXTENSION := .cc
  75. LOCAL_C_INCLUDES += $(LOCAL_PATH)/include
  76. LOCAL_SRC_FILES := \
  77. unit_test/unit_test.cc \
  78. unit_test/basictypes_test.cc \
  79. unit_test/color_test.cc \
  80. unit_test/compare_test.cc \
  81. unit_test/convert_test.cc \
  82. unit_test/cpu_test.cc \
  83. unit_test/cpu_thread_test.cc \
  84. unit_test/math_test.cc \
  85. unit_test/planar_test.cc \
  86. unit_test/rotate_argb_test.cc \
  87. unit_test/rotate_test.cc \
  88. unit_test/scale_argb_test.cc \
  89. unit_test/scale_test.cc \
  90. unit_test/video_common_test.cc
  91. LOCAL_MODULE := libyuv_unittest
  92. include $(BUILD_NATIVE_TEST)