blob: 626f39f2a7d1cf161352c8d6e83f1067d6cf9fee [file] [log] [blame]
# Copyright 2022 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("../third_party.gni")
third_party("libavif") {
deps = [
"//third_party/libgav1",
"//third_party/libyuv",
]
public_include_dirs = [
".",
"../externals/libavif/include",
]
include_dirs = [ "../externals/libavif" ]
defines = [
"AVIF_CODEC_LIBGAV1=1",
"AVIF_LIBYUV_ENABLED=1",
]
sources = [
"../externals/libavif/src/alpha.c",
"../externals/libavif/src/avif.c",
"../externals/libavif/src/codec_libgav1.c",
"../externals/libavif/src/colr.c",
"../externals/libavif/src/diag.c",
"../externals/libavif/src/io.c",
"../externals/libavif/src/mem.c",
"../externals/libavif/src/obu.c",
"../externals/libavif/src/rawdata.c",
"../externals/libavif/src/read.c",
"../externals/libavif/src/reformat.c",
"../externals/libavif/src/reformat_libyuv.c",
"../externals/libavif/src/scale.c",
"../externals/libavif/src/stream.c",
"../externals/libavif/src/utils.c",
]
}