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 = [ |
Henrik Boström | b0f2e0c | 2020-03-06 13:32:03 +0100 | [diff] [blame^] | 13 | "encoder_settings.cc", |
| 14 | "encoder_settings.h", |
Henrik Boström | b04b2a1 | 2019-12-10 14:14:09 +0100 | [diff] [blame] | 15 | "resource.cc", |
| 16 | "resource.h", |
Henrik Boström | 382cc6d | 2020-01-07 10:15:04 +0100 | [diff] [blame] | 17 | "resource_adaptation_module_interface.cc", |
| 18 | "resource_adaptation_module_interface.h", |
Henrik Boström | b04b2a1 | 2019-12-10 14:14:09 +0100 | [diff] [blame] | 19 | "resource_adaptation_processor.cc", |
| 20 | "resource_adaptation_processor.h", |
| 21 | "resource_consumer.cc", |
| 22 | "resource_consumer.h", |
| 23 | "resource_consumer_configuration.cc", |
| 24 | "resource_consumer_configuration.h", |
Henrik Boström | ce0ea49 | 2020-01-13 11:27:18 +0100 | [diff] [blame] | 25 | "video_source_restrictions.cc", |
| 26 | "video_source_restrictions.h", |
Henrik Boström | b04b2a1 | 2019-12-10 14:14:09 +0100 | [diff] [blame] | 27 | ] |
| 28 | deps = [ |
Henrik Boström | a3d4252 | 2020-01-16 13:55:29 +0100 | [diff] [blame] | 29 | "../../api:rtp_parameters", |
Henrik Boström | d4578ae | 2020-01-22 16:16:04 +0100 | [diff] [blame] | 30 | "../../api/video:video_frame", |
Henrik Boström | 4bab2fc | 2020-01-21 11:18:06 +0100 | [diff] [blame] | 31 | "../../api/video_codecs:video_codecs_api", |
Henrik Boström | b04b2a1 | 2019-12-10 14:14:09 +0100 | [diff] [blame] | 32 | "../../rtc_base:checks", |
| 33 | "../../rtc_base:rtc_base_approved", |
Evan Shrubsole | aa6fbc1 | 2020-02-25 16:26:01 +0100 | [diff] [blame] | 34 | "//third_party/abseil-cpp/absl/algorithm:container", |
Henrik Boström | b04b2a1 | 2019-12-10 14:14:09 +0100 | [diff] [blame] | 35 | "//third_party/abseil-cpp/absl/types:optional", |
| 36 | ] |
| 37 | } |
| 38 | |
| 39 | if (rtc_include_tests) { |
| 40 | rtc_library("resource_adaptation_tests") { |
| 41 | testonly = true |
| 42 | |
Evan Shrubsole | aa6fbc1 | 2020-02-25 16:26:01 +0100 | [diff] [blame] | 43 | sources = [ |
| 44 | "resource_adaptation_processor_unittest.cc", |
| 45 | "resource_unittest.cc", |
| 46 | ] |
Henrik Boström | b04b2a1 | 2019-12-10 14:14:09 +0100 | [diff] [blame] | 47 | deps = [ |
| 48 | ":resource_adaptation", |
| 49 | ":resource_adaptation_test_utilities", |
| 50 | "../../rtc_base:checks", |
| 51 | "../../rtc_base:rtc_base_approved", |
| 52 | "../../test:test_support", |
| 53 | "//third_party/abseil-cpp/absl/types:optional", |
| 54 | ] |
| 55 | } |
| 56 | |
| 57 | rtc_source_set("resource_adaptation_test_utilities") { |
| 58 | testonly = true |
| 59 | |
| 60 | sources = [ |
| 61 | "test/fake_resource.cc", |
| 62 | "test/fake_resource.h", |
| 63 | "test/fake_resource_consumer_configuration.cc", |
| 64 | "test/fake_resource_consumer_configuration.h", |
| 65 | ] |
| 66 | deps = [ |
| 67 | ":resource_adaptation", |
| 68 | "../../rtc_base:rtc_base_approved", |
| 69 | ] |
| 70 | } |
| 71 | } |