blob: 95705cb649c61a600b11b391b6f9c43fb881b3fa [file] [log] [blame]
Henrik Boströmefbec9a2020-03-06 10:41:25 +01001# 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
9import("../../webrtc.gni")
10
11rtc_library("video_adaptation") {
12 sources = [
13 "adaptation_counters.cc",
14 "adaptation_counters.h",
15 "video_stream_adapter.cc",
16 "video_stream_adapter.h",
17 ]
18
19 deps = [
Henrik Boströmb0f2e0c2020-03-06 13:32:03 +010020 "../../api:rtp_parameters",
21 "../../api/video:video_stream_encoder",
22 "../../api/video_codecs:video_codecs_api",
Henrik Boströmefbec9a2020-03-06 10:41:25 +010023 "../../call/adaptation:resource_adaptation",
Henrik Boströmb0f2e0c2020-03-06 13:32:03 +010024 "../../modules/video_coding:video_coding_utility",
Henrik Boströmefbec9a2020-03-06 10:41:25 +010025 "../../rtc_base:checks",
26 "../../rtc_base:logging",
27 "../../rtc_base:rtc_base_approved",
28 "../../rtc_base:rtc_event",
29 "../../rtc_base:rtc_numerics",
Henrik Boströmb0f2e0c2020-03-06 13:32:03 +010030 "../../rtc_base/experiments:balanced_degradation_settings",
Henrik Boströmefbec9a2020-03-06 10:41:25 +010031 "//third_party/abseil-cpp/absl/types:optional",
32 ]
33}
34
35if (rtc_include_tests) {
36 rtc_library("video_adaptation_tests") {
37 testonly = true
38
39 defines = []
40 sources = [ "adaptation_counters_unittest.cc" ]
41 deps = [
42 ":video_adaptation",
43 "../../rtc_base:checks",
44 "../../rtc_base:logging",
45 "../../rtc_base:rtc_base_approved",
46 "../../rtc_base:rtc_event",
47 "../../rtc_base:rtc_numerics",
48 "//test:test_support",
49 "//testing/gtest",
50 "//third_party/abseil-cpp/absl/types:optional",
51 ]
52 }
53}