• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
4cc_library(
5    name = "libavif",
6    srcs = [
7        "include/avif/internal.h",
8        "src/alpha.c",
9        "src/avif.c",
10        "src/codec_libgav1.c",
11        "src/colr.c",
12        "src/diag.c",
13        "src/io.c",
14        "src/mem.c",
15        "src/obu.c",
16        "src/rawdata.c",
17        "src/read.c",
18        "src/reformat.c",
19        "src/reformat_libyuv.c",
20        "src/scale.c",
21        "src/stream.c",
22        "src/utils.c",
23    ],
24    hdrs = [
25        "include/avif/avif.h",
26    ],
27    includes = ["include"],
28    local_defines = [
29        "AVIF_CODEC_LIBGAV1=1",
30        "AVIF_LIBYUV_ENABLED=1",
31    ],
32    visibility = ["//visibility:public"],
33    deps = [
34        "@libgav1",
35        "@libyuv",
36    ],
37)
38