| 1 |
# This file will be copied into //third_party/externals/libyuv via the new_local_repository |
| 2 |
# rule in WORKSPACE.bazel, so all files should be relative to that path. |
| 3 |
|
| 4 |
load("@rules_cc//cc:cc_library.bzl", "cc_library") |
| 5 |
|
| 6 |
cc_library( |
| 7 |
name = "libyuv", |
| 8 |
srcs = [ |
| 9 |
"include/libyuv/basic_types.h", |
| 10 |
"include/libyuv/compare.h", |
| 11 |
"include/libyuv/compare_row.h", |
| 12 |
"include/libyuv/convert.h", |
| 13 |
"include/libyuv/convert_argb.h", |
| 14 |
"include/libyuv/convert_from.h", |
| 15 |
"include/libyuv/convert_from_argb.h", |
| 16 |
"include/libyuv/cpu_id.h", |
| 17 |
"include/libyuv/loongson_intrinsics.h", |
| 18 |
"include/libyuv/macros_msa.h", |
| 19 |
"include/libyuv/mjpeg_decoder.h", |
| 20 |
"include/libyuv/planar_functions.h", |
| 21 |
"include/libyuv/rotate.h", |
| 22 |
"include/libyuv/rotate_argb.h", |
| 23 |
"include/libyuv/rotate_row.h", |
| 24 |
"include/libyuv/row.h", |
| 25 |
"include/libyuv/scale.h", |
| 26 |
"include/libyuv/scale_argb.h", |
| 27 |
"include/libyuv/scale_rgb.h", |
| 28 |
"include/libyuv/scale_row.h", |
| 29 |
"include/libyuv/scale_uv.h", |
| 30 |
"include/libyuv/version.h", |
| 31 |
"include/libyuv/video_common.h", |
| 32 |
"source/compare.cc", |
| 33 |
"source/compare_common.cc", |
| 34 |
"source/compare_gcc.cc", |
| 35 |
"source/compare_mmi.cc", |
| 36 |
"source/compare_msa.cc", |
| 37 |
"source/compare_neon.cc", |
| 38 |
"source/compare_neon64.cc", |
| 39 |
"source/compare_win.cc", |
| 40 |
"source/convert.cc", |
| 41 |
"source/convert_argb.cc", |
| 42 |
"source/convert_from.cc", |
| 43 |
"source/convert_from_argb.cc", |
| 44 |
"source/convert_jpeg.cc", |
| 45 |
"source/convert_to_argb.cc", |
| 46 |
"source/convert_to_i420.cc", |
| 47 |
"source/cpu_id.cc", |
| 48 |
"source/mjpeg_decoder.cc", |
| 49 |
"source/mjpeg_validate.cc", |
| 50 |
"source/planar_functions.cc", |
| 51 |
"source/rotate.cc", |
| 52 |
"source/rotate_any.cc", |
| 53 |
"source/rotate_argb.cc", |
| 54 |
"source/rotate_common.cc", |
| 55 |
"source/rotate_gcc.cc", |
| 56 |
"source/rotate_lsx.cc", |
| 57 |
"source/rotate_mmi.cc", |
| 58 |
"source/rotate_msa.cc", |
| 59 |
"source/rotate_neon.cc", |
| 60 |
"source/rotate_neon64.cc", |
| 61 |
"source/rotate_win.cc", |
| 62 |
"source/row_any.cc", |
| 63 |
"source/row_common.cc", |
| 64 |
"source/row_gcc.cc", |
| 65 |
"source/row_lasx.cc", |
| 66 |
"source/row_lsx.cc", |
| 67 |
"source/row_mmi.cc", |
| 68 |
"source/row_msa.cc", |
| 69 |
"source/row_neon.cc", |
| 70 |
"source/row_neon64.cc", |
| 71 |
"source/row_win.cc", |
| 72 |
"source/scale.cc", |
| 73 |
"source/scale_any.cc", |
| 74 |
"source/scale_argb.cc", |
| 75 |
"source/scale_common.cc", |
| 76 |
"source/scale_gcc.cc", |
| 77 |
"source/scale_lsx.cc", |
| 78 |
"source/scale_mmi.cc", |
| 79 |
"source/scale_msa.cc", |
| 80 |
"source/scale_neon.cc", |
| 81 |
"source/scale_neon64.cc", |
| 82 |
"source/scale_rgb.cc", |
| 83 |
"source/scale_uv.cc", |
| 84 |
"source/scale_win.cc", |
| 85 |
"source/video_common.cc", |
| 86 |
], |
| 87 |
hdrs = [ |
| 88 |
"include/libyuv.h", |
| 89 |
], |
| 90 |
includes = [ |
| 91 |
"include", |
| 92 |
], |
| 93 |
local_defines = [ |
| 94 |
"AVIF_CODEC_LIBGAV1=1", |
| 95 |
"AVIF_LIBYUV_ENABLED=1", |
| 96 |
], |
| 97 |
visibility = ["//visibility:public"], |
| 98 |
) |