Android.bp 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. cc_library {
  2. name: "libyuv",
  3. vendor_available: true,
  4. vndk: {
  5. enabled: true,
  6. },
  7. srcs: [
  8. "source/compare.cc",
  9. "source/compare_common.cc",
  10. "source/compare_gcc.cc",
  11. "source/compare_neon.cc",
  12. "source/compare_neon64.cc",
  13. "source/compare_mmi.cc",
  14. "source/compare_msa.cc",
  15. "source/convert.cc",
  16. "source/convert_argb.cc",
  17. "source/convert_from.cc",
  18. "source/convert_from_argb.cc",
  19. "source/convert_to_argb.cc",
  20. "source/convert_to_i420.cc",
  21. "source/cpu_id.cc",
  22. "source/planar_functions.cc",
  23. "source/rotate.cc",
  24. "source/rotate_any.cc",
  25. "source/rotate_argb.cc",
  26. "source/rotate_common.cc",
  27. "source/rotate_gcc.cc",
  28. "source/rotate_mmi.cc",
  29. "source/rotate_msa.cc",
  30. "source/rotate_neon.cc",
  31. "source/rotate_neon64.cc",
  32. "source/row_any.cc",
  33. "source/row_common.cc",
  34. "source/row_gcc.cc",
  35. "source/row_mmi.cc",
  36. "source/row_msa.cc",
  37. "source/row_neon.cc",
  38. "source/row_neon64.cc",
  39. "source/scale.cc",
  40. "source/scale_any.cc",
  41. "source/scale_argb.cc",
  42. "source/scale_common.cc",
  43. "source/scale_gcc.cc",
  44. "source/scale_mmi.cc",
  45. "source/scale_msa.cc",
  46. "source/scale_neon.cc",
  47. "source/scale_neon64.cc",
  48. "source/video_common.cc",
  49. "source/convert_jpeg.cc",
  50. "source/mjpeg_decoder.cc",
  51. "source/mjpeg_validate.cc",
  52. ],
  53. cflags: [
  54. "-Wall",
  55. "-Werror",
  56. "-Wno-unused-parameter",
  57. "-fexceptions",
  58. "-DHAVE_JPEG",
  59. ],
  60. shared_libs: ["libjpeg"],
  61. export_include_dirs: ["include"],
  62. }
  63. // compatibilty static library until all uses of libyuv_static are replaced
  64. // with libyuv (b/37646797)
  65. cc_library_static {
  66. name: "libyuv_static",
  67. vendor_available: true,
  68. whole_static_libs: ["libyuv"],
  69. }
  70. cc_test {
  71. name: "libyuv_unittest",
  72. static_libs: ["libyuv"],
  73. shared_libs: ["libjpeg"],
  74. cflags: ["-Wall", "-Werror"],
  75. srcs: [
  76. "unit_test/unit_test.cc",
  77. "unit_test/basictypes_test.cc",
  78. "unit_test/color_test.cc",
  79. "unit_test/compare_test.cc",
  80. "unit_test/convert_test.cc",
  81. "unit_test/cpu_test.cc",
  82. "unit_test/cpu_thread_test.cc",
  83. "unit_test/math_test.cc",
  84. "unit_test/planar_test.cc",
  85. "unit_test/rotate_argb_test.cc",
  86. "unit_test/rotate_test.cc",
  87. "unit_test/scale_argb_test.cc",
  88. "unit_test/scale_test.cc",
  89. "unit_test/video_common_test.cc",
  90. ],
  91. }
  92. cc_test {
  93. name: "compare",
  94. gtest: false,
  95. srcs: [
  96. "util/compare.cc",
  97. ],
  98. static_libs: ["libyuv"],
  99. }
  100. cc_test {
  101. name: "cpuid",
  102. gtest: false,
  103. srcs: [
  104. "util/cpuid.c",
  105. ],
  106. static_libs: ["libyuv"],
  107. }
  108. cc_test {
  109. name: "psnr",
  110. gtest: false,
  111. srcs: [
  112. "util/psnr_main.cc",
  113. "util/psnr.cc",
  114. "util/ssim.cc",
  115. ],
  116. static_libs: ["libyuv"],
  117. }
  118. cc_test {
  119. name: "yuvconvert",
  120. gtest: false,
  121. srcs: [
  122. "util/yuvconvert.cc",
  123. ],
  124. static_libs: ["libyuv"],
  125. shared_libs: ["libjpeg"],
  126. }