1cc_library { 2 name: "libyuv", 3 vendor_available: true, 4 vndk: { 5 enabled: true, 6 }, 7 8 srcs: [ 9 "source/compare.cc", 10 "source/compare_common.cc", 11 "source/compare_gcc.cc", 12 "source/compare_neon.cc", 13 "source/compare_neon64.cc", 14 "source/convert.cc", 15 "source/convert_argb.cc", 16 "source/convert_from.cc", 17 "source/convert_from_argb.cc", 18 "source/convert_to_argb.cc", 19 "source/convert_to_i420.cc", 20 "source/cpu_id.cc", 21 "source/planar_functions.cc", 22 "source/rotate.cc", 23 "source/rotate_any.cc", 24 "source/rotate_argb.cc", 25 "source/rotate_common.cc", 26 "source/rotate_dspr2.cc", 27 "source/rotate_gcc.cc", 28 "source/rotate_msa.cc", 29 "source/rotate_neon.cc", 30 "source/rotate_neon64.cc", 31 "source/row_any.cc", 32 "source/row_common.cc", 33 "source/row_dspr2.cc", 34 "source/row_gcc.cc", 35 "source/row_msa.cc", 36 "source/row_neon.cc", 37 "source/row_neon64.cc", 38 "source/scale.cc", 39 "source/scale_any.cc", 40 "source/scale_argb.cc", 41 "source/scale_common.cc", 42 "source/scale_dspr2.cc", 43 "source/scale_gcc.cc", 44 "source/scale_msa.cc", 45 "source/scale_neon.cc", 46 "source/scale_neon64.cc", 47 "source/video_common.cc", 48 49 "source/convert_jpeg.cc", 50 "source/mjpeg_decoder.cc", 51 "source/mjpeg_validate.cc", 52 ], 53 54 cflags: [ 55 "-Wall", 56 "-Wno-unused-parameter", 57 "-fexceptions", 58 "-DHAVE_JPEG", 59 ], 60 61 shared_libs: ["libjpeg"], 62 63 export_include_dirs: ["include"], 64} 65 66// compatibilty static library until all uses of libyuv_static are replaced 67// with libyuv (b/37646797) 68cc_library_static { 69 name: "libyuv_static", 70 vendor_available: true, 71 whole_static_libs: ["libyuv"], 72} 73 74cc_test { 75 name: "libyuv_unittest", 76 static_libs: ["libyuv"], 77 shared_libs: ["libjpeg"], 78 79 srcs: [ 80 "unit_test/unit_test.cc", 81 "unit_test/basictypes_test.cc", 82 "unit_test/color_test.cc", 83 "unit_test/compare_test.cc", 84 "unit_test/convert_test.cc", 85 "unit_test/cpu_test.cc", 86 "unit_test/math_test.cc", 87 "unit_test/planar_test.cc", 88 "unit_test/rotate_argb_test.cc", 89 "unit_test/rotate_test.cc", 90 "unit_test/scale_argb_test.cc", 91 "unit_test/scale_test.cc", 92 "unit_test/video_common_test.cc", 93 ], 94} 95