| 1 |
# This file will be copied into //third_party/externals/libavif 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 = "libavif", |
| 8 |
srcs = [ |
| 9 |
"include/avif/internal.h", |
| 10 |
"src/alpha.c", |
| 11 |
"src/avif.c", |
| 12 |
"src/codec_libgav1.c", |
| 13 |
"src/colr.c", |
| 14 |
"src/diag.c", |
| 15 |
"src/io.c", |
| 16 |
"src/mem.c", |
| 17 |
"src/obu.c", |
| 18 |
"src/rawdata.c", |
| 19 |
"src/read.c", |
| 20 |
"src/reformat.c", |
| 21 |
"src/reformat_libyuv.c", |
| 22 |
"src/scale.c", |
| 23 |
"src/stream.c", |
| 24 |
"src/utils.c", |
| 25 |
], |
| 26 |
hdrs = [ |
| 27 |
"include/avif/avif.h", |
| 28 |
], |
| 29 |
includes = ["include"], |
| 30 |
local_defines = [ |
| 31 |
"AVIF_CODEC_LIBGAV1=1", |
| 32 |
"AVIF_LIBYUV_ENABLED=1", |
| 33 |
], |
| 34 |
visibility = ["//visibility:public"], |
| 35 |
deps = [ |
| 36 |
"@libgav1", |
| 37 |
"@libyuv", |
| 38 |
], |
| 39 |
) |