blob: 99b3f161cd0d3788e86a233f00f5775b4824402f [file] [log] [blame]
Henrik Boströmb04b2a12019-12-10 14:14:09 +01001# Copyright (c) 2019 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("resource_adaptation") {
12 sources = [
13 "resource.cc",
14 "resource.h",
Henrik Boström382cc6d2020-01-07 10:15:04 +010015 "resource_adaptation_module_interface.cc",
16 "resource_adaptation_module_interface.h",
Henrik Boströmb04b2a12019-12-10 14:14:09 +010017 "resource_adaptation_processor.cc",
18 "resource_adaptation_processor.h",
19 "resource_consumer.cc",
20 "resource_consumer.h",
21 "resource_consumer_configuration.cc",
22 "resource_consumer_configuration.h",
Henrik Boströmce0ea492020-01-13 11:27:18 +010023 "video_source_restrictions.cc",
24 "video_source_restrictions.h",
Henrik Boströmb04b2a12019-12-10 14:14:09 +010025 ]
26 deps = [
Henrik Boströma3d42522020-01-16 13:55:29 +010027 "../../api:rtp_parameters",
Henrik Boström4bab2fc2020-01-21 11:18:06 +010028 "../../api/video_codecs:video_codecs_api",
Henrik Boströmb04b2a12019-12-10 14:14:09 +010029 "../../rtc_base:checks",
30 "../../rtc_base:rtc_base_approved",
31 "//third_party/abseil-cpp/absl/types:optional",
32 ]
33}
34
35if (rtc_include_tests) {
36 rtc_library("resource_adaptation_tests") {
37 testonly = true
38
Henrik Boströma3d42522020-01-16 13:55:29 +010039 sources = [ "resource_adaptation_processor_unittest.cc" ]
Henrik Boströmb04b2a12019-12-10 14:14:09 +010040 deps = [
41 ":resource_adaptation",
42 ":resource_adaptation_test_utilities",
43 "../../rtc_base:checks",
44 "../../rtc_base:rtc_base_approved",
45 "../../test:test_support",
46 "//third_party/abseil-cpp/absl/types:optional",
47 ]
48 }
49
50 rtc_source_set("resource_adaptation_test_utilities") {
51 testonly = true
52
53 sources = [
54 "test/fake_resource.cc",
55 "test/fake_resource.h",
56 "test/fake_resource_consumer_configuration.cc",
57 "test/fake_resource_consumer_configuration.h",
58 ]
59 deps = [
60 ":resource_adaptation",
61 "../../rtc_base:rtc_base_approved",
62 ]
63 }
64}