Danil Chapovalov | c46385c | 2020-03-11 10:45:57 +0100 | [diff] [blame^] | 1 | # Copyright (c) 2020 The WebRTC project authors. All Rights Reserved. |
| 2 | # |
| 3 | # Use of this source code is governed by a BSD-style license |
| 4 | # that can be found in the LICENSE file in the root of the source |
| 5 | # tree. An additional intellectual property rights grant can be found |
| 6 | # in the file PATENTS. All contributing project authors may |
| 7 | # be found in the AUTHORS file in the root of the source tree. |
| 8 | |
| 9 | import("//third_party/libaom/options.gni") |
| 10 | import("../../../../webrtc.gni") |
| 11 | |
| 12 | rtc_library("libaom_av1_decoder") { |
| 13 | visibility = [ "*" ] |
| 14 | poisonous = [ "software_video_codecs" ] |
| 15 | public = [ "libaom_av1_decoder.h" ] |
| 16 | deps = [ |
| 17 | "../../../../api/video_codecs:video_codecs_api", |
| 18 | "//third_party/abseil-cpp/absl/base:core_headers", |
| 19 | ] |
| 20 | |
| 21 | if (enable_libaom_decoder) { |
| 22 | sources = [ "libaom_av1_decoder.cc" ] |
| 23 | deps += [ |
| 24 | "../..:video_codec_interface", |
| 25 | "../../../../api:scoped_refptr", |
| 26 | "../../../../api/video:encoded_image", |
| 27 | "../../../../api/video:video_frame_i420", |
| 28 | "../../../../common_video", |
| 29 | "../../../../rtc_base:logging", |
| 30 | "//third_party/abseil-cpp/absl/types:optional", |
| 31 | "//third_party/libaom", |
| 32 | "//third_party/libyuv", |
| 33 | ] |
| 34 | } else { |
| 35 | sources = [ "libaom_av1_decoder_absent.cc" ] |
| 36 | } |
| 37 | } |