Henrik Boström | b04b2a1 | 2019-12-10 14:14:09 +0100 | [diff] [blame] | 1 | # 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 | |
| 9 | import("../../webrtc.gni") |
| 10 | |
| 11 | rtc_library("resource_adaptation") { |
| 12 | sources = [ |
| 13 | "resource.cc", |
| 14 | "resource.h", |
Henrik Boström | 382cc6d | 2020-01-07 10:15:04 +0100 | [diff] [blame] | 15 | "resource_adaptation_module_interface.cc", |
| 16 | "resource_adaptation_module_interface.h", |
Henrik Boström | b04b2a1 | 2019-12-10 14:14:09 +0100 | [diff] [blame] | 17 | "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öm | ce0ea49 | 2020-01-13 11:27:18 +0100 | [diff] [blame] | 23 | "video_source_restrictions.cc", |
| 24 | "video_source_restrictions.h", |
Henrik Boström | b04b2a1 | 2019-12-10 14:14:09 +0100 | [diff] [blame] | 25 | ] |
| 26 | deps = [ |
Henrik Boström | a3d4252 | 2020-01-16 13:55:29 +0100 | [diff] [blame] | 27 | "../../api:rtp_parameters", |
Henrik Boström | 4bab2fc | 2020-01-21 11:18:06 +0100 | [diff] [blame^] | 28 | "../../api/video_codecs:video_codecs_api", |
Henrik Boström | b04b2a1 | 2019-12-10 14:14:09 +0100 | [diff] [blame] | 29 | "../../rtc_base:checks", |
| 30 | "../../rtc_base:rtc_base_approved", |
| 31 | "//third_party/abseil-cpp/absl/types:optional", |
| 32 | ] |
| 33 | } |
| 34 | |
| 35 | if (rtc_include_tests) { |
| 36 | rtc_library("resource_adaptation_tests") { |
| 37 | testonly = true |
| 38 | |
Henrik Boström | a3d4252 | 2020-01-16 13:55:29 +0100 | [diff] [blame] | 39 | sources = [ "resource_adaptation_processor_unittest.cc" ] |
Henrik Boström | b04b2a1 | 2019-12-10 14:14:09 +0100 | [diff] [blame] | 40 | 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 | } |