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 "-Werror", 57 "-Wno-unused-parameter", 58 "-fexceptions", 59 "-DHAVE_JPEG", 60 ], 61 62 shared_libs: ["libjpeg"], 63 64 export_include_dirs: ["include"], 65} 66 67// compatibilty static library until all uses of libyuv_static are replaced 68// with libyuv (b/37646797) 69cc_library_static { 70 name: "libyuv_static", 71 vendor_available: true, 72 whole_static_libs: ["libyuv"], 73} 74 75cc_test { 76 name: "libyuv_unittest", 77 static_libs: ["libyuv"], 78 shared_libs: ["libjpeg"], 79 cflags: ["-Wall", "-Werror"], 80 81 srcs: [ 82 "unit_test/unit_test.cc", 83 "unit_test/basictypes_test.cc", 84 "unit_test/color_test.cc", 85 "unit_test/compare_test.cc", 86 "unit_test/convert_test.cc", 87 "unit_test/cpu_test.cc", 88 "unit_test/math_test.cc", 89 "unit_test/planar_test.cc", 90 "unit_test/rotate_argb_test.cc", 91 "unit_test/rotate_test.cc", 92 "unit_test/scale_argb_test.cc", 93 "unit_test/scale_test.cc", 94 "unit_test/video_common_test.cc", 95 ], 96} 97