BUILD.gn (3354B)
1 # Copyright (c) 2014 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("pacing") { 12 # Client code SHOULD NOT USE THIS TARGET, but for now it needs to be public 13 # because there exists client code that uses it. 14 # TODO(bugs.webrtc.org/9808): Move to private visibility as soon as that 15 # client code gets updated. 16 visibility = [ "*" ] 17 sources = [ 18 "bitrate_prober.cc", 19 "bitrate_prober.h", 20 "pacing_controller.cc", 21 "pacing_controller.h", 22 "packet_router.cc", 23 "packet_router.h", 24 "prioritized_packet_queue.cc", 25 "prioritized_packet_queue.h", 26 "rtp_packet_pacer.h", 27 "task_queue_paced_sender.cc", 28 "task_queue_paced_sender.h", 29 ] 30 31 deps = [ 32 "../../api:array_view", 33 "../../api:field_trials_view", 34 "../../api:rtp_headers", 35 "../../api:rtp_packet_sender", 36 "../../api:sequence_checker", 37 "../../api/task_queue", 38 "../../api/task_queue:pending_task_safety_flag", 39 "../../api/transport:network_control", 40 "../../api/units:data_rate", 41 "../../api/units:data_size", 42 "../../api/units:time_delta", 43 "../../api/units:timestamp", 44 "../../rtc_base:checks", 45 "../../rtc_base:event_tracer", 46 "../../rtc_base:logging", 47 "../../rtc_base:macromagic", 48 "../../rtc_base:rtc_numerics", 49 "../../rtc_base:safe_conversions", 50 "../../rtc_base/experiments:field_trial_parser", 51 "../../rtc_base/system:unused", 52 "../../system_wrappers", 53 "../rtp_rtcp", 54 "../rtp_rtcp:rtp_rtcp_format", 55 "//third_party/abseil-cpp/absl/cleanup", 56 "//third_party/abseil-cpp/absl/container:inlined_vector", 57 "//third_party/abseil-cpp/absl/functional:any_invocable", 58 "//third_party/abseil-cpp/absl/strings:string_view", 59 ] 60 } 61 62 rtc_library("interval_budget") { 63 sources = [ 64 "interval_budget.cc", 65 "interval_budget.h", 66 ] 67 68 deps = [ 69 "../../rtc_base:checks", 70 "../../rtc_base:safe_conversions", 71 ] 72 } 73 74 if (rtc_include_tests) { 75 rtc_library("pacing_unittests") { 76 testonly = true 77 78 sources = [ 79 "bitrate_prober_unittest.cc", 80 "interval_budget_unittest.cc", 81 "pacing_controller_unittest.cc", 82 "packet_router_unittest.cc", 83 "prioritized_packet_queue_unittest.cc", 84 "task_queue_paced_sender_unittest.cc", 85 ] 86 deps = [ 87 ":interval_budget", 88 ":pacing", 89 "../../api:array_view", 90 "../../api:field_trials", 91 "../../api:rtp_headers", 92 "../../api:sequence_checker", 93 "../../api/task_queue", 94 "../../api/transport:network_control", 95 "../../api/units:data_rate", 96 "../../api/units:data_size", 97 "../../api/units:time_delta", 98 "../../api/units:timestamp", 99 "../../rtc_base:checks", 100 "../../rtc_base:rtc_base_tests_utils", 101 "../../system_wrappers", 102 "../../test:create_test_field_trials", 103 "../../test:test_support", 104 "../../test/time_controller", 105 "../rtp_rtcp:mock_rtp_rtcp", 106 "../rtp_rtcp:rtp_rtcp_format", 107 "//third_party/abseil-cpp/absl/cleanup", 108 ] 109 } 110 }