blob: 7ebd37be9ec7c61b8d20733757df64602ac615a3 [file] [log] [blame]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +00001# 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
mbonadei9aa3f0a2017-01-24 06:58:22 -08009import("../../webrtc.gni")
ehmaldonado38a21322016-09-02 04:10:34 -070010
kjellanderb62dbbe2016-09-23 00:38:52 -070011rtc_static_library("pacing") {
Danil Chapovalov32fe3d12018-10-04 13:41:03 +020012 # 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 = [ "*" ]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000017 sources = [
stefan@webrtc.org82462aa2014-10-23 11:57:05 +000018 "bitrate_prober.cc",
19 "bitrate_prober.h",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000020 "paced_sender.cc",
Henrik Kjellander0b9e29c2015-11-16 11:12:24 +010021 "paced_sender.h",
gnisha36165c2017-08-20 09:19:58 -070022 "pacer.h",
Stefan Holmere5904162015-03-26 11:11:06 +010023 "packet_router.cc",
Henrik Kjellander0b9e29c2015-11-16 11:12:24 +010024 "packet_router.h",
Sebastian Janssonb5374962018-02-07 13:26:38 +010025 "round_robin_packet_queue.cc",
26 "round_robin_packet_queue.h",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000027 ]
28
Henrik Kjellander57e5fd22015-05-25 12:55:39 +020029 deps = [
Sebastian Janssonf9f49a32018-06-25 17:56:08 +020030 ":interval_budget",
mbonadei1140f972017-04-26 03:38:35 -070031 "..:module_api",
Danil Chapovalovdb128562018-09-17 13:11:50 +020032 "../../api/transport:network_control",
Qingsi Wang970b0882018-02-01 11:04:46 -080033 "../../logging:rtc_event_bwe",
philipelc3b3f7a2017-03-29 01:23:13 -070034 "../../logging:rtc_event_log_api",
Qingsi Wang970b0882018-02-01 11:04:46 -080035 "../../logging:rtc_event_pacing",
Patrik Höglunda8005cf2017-12-13 16:05:42 +010036 "../../rtc_base:checks",
Piotr (Peter) Slatalac39f4622019-02-15 07:38:04 -080037 "../../rtc_base:deprecation",
ehmaldonadof6a861a2017-07-19 10:40:47 -070038 "../../rtc_base:rtc_base_approved",
Sebastian Janssoncabe3832018-01-12 10:54:18 +010039 "../../rtc_base/experiments:alr_experiment",
Christoffer Rodbroe2e00002018-12-20 15:46:03 +010040 "../../rtc_base/experiments:field_trial_parser",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +020041 "../../system_wrappers",
Mirko Bonadei17f48782018-09-28 08:51:10 +020042 "../../system_wrappers:field_trial",
Sebastian Janssonf9f49a32018-06-25 17:56:08 +020043 "../congestion_controller/goog_cc:alr_detector",
nisse05843312017-04-18 23:38:35 -070044 "../remote_bitrate_estimator",
sprangebbf8a82015-09-21 15:11:14 -070045 "../rtp_rtcp",
Mirko Bonadeib5728d92017-12-06 07:51:33 +010046 "../rtp_rtcp:rtp_rtcp_format",
tommi919dce22017-03-15 07:45:36 -070047 "../utility",
Karl Wiberg918f50c2018-07-05 11:40:33 +020048 "//third_party/abseil-cpp/absl/memory",
Danil Chapovalov0040b662018-06-18 10:48:16 +020049 "//third_party/abseil-cpp/absl/types:optional",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +020050 ]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000051}
ehmaldonado36268652017-01-19 08:27:11 -080052
Sebastian Janssonf9f49a32018-06-25 17:56:08 +020053rtc_source_set("interval_budget") {
54 sources = [
55 "interval_budget.cc",
56 "interval_budget.h",
57 ]
58
Sebastian Janssonf9f49a32018-06-25 17:56:08 +020059 deps = [
Sebastian Janssonf9f49a32018-06-25 17:56:08 +020060 "../../rtc_base:checks",
61 "../../rtc_base:rtc_base_approved",
62 ]
63}
64
ehmaldonado36268652017-01-19 08:27:11 -080065if (rtc_include_tests) {
66 rtc_source_set("pacing_unittests") {
67 testonly = true
kjellandere0629c02017-04-25 04:04:50 -070068
ehmaldonado36268652017-01-19 08:27:11 -080069 sources = [
ehmaldonado36268652017-01-19 08:27:11 -080070 "bitrate_prober_unittest.cc",
tschumim82c55932017-07-11 06:56:04 -070071 "interval_budget_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -080072 "paced_sender_unittest.cc",
73 "packet_router_unittest.cc",
74 ]
75 deps = [
Sebastian Janssonf9f49a32018-06-25 17:56:08 +020076 ":interval_budget",
ehmaldonado36268652017-01-19 08:27:11 -080077 ":pacing",
Yves Gerey3e707812018-11-28 16:47:49 +010078 "../../api/units:time_delta",
Patrik Höglunda8005cf2017-12-13 16:05:42 +010079 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -070080 "../../rtc_base:rtc_base_approved",
81 "../../rtc_base:rtc_base_tests_utils",
Sebastian Janssoncabe3832018-01-12 10:54:18 +010082 "../../rtc_base/experiments:alr_experiment",
Mirko Bonadeia498ae82017-12-06 09:17:14 +010083 "../../system_wrappers",
Mirko Bonadei17f48782018-09-28 08:51:10 +020084 "../../system_wrappers:field_trial",
Erik Språngb378a222017-10-02 13:25:38 +020085 "../../test:field_trial",
ehmaldonado36268652017-01-19 08:27:11 -080086 "../../test:test_support",
87 "../rtp_rtcp",
kjellandere0629c02017-04-25 04:04:50 -070088 "../rtp_rtcp:mock_rtp_rtcp",
Mirko Bonadeib5728d92017-12-06 07:51:33 +010089 "../rtp_rtcp:rtp_rtcp_format",
ehmaldonado36268652017-01-19 08:27:11 -080090 ]
ehmaldonado36268652017-01-19 08:27:11 -080091 }
mbonadei334f9e62017-09-04 04:57:11 -070092
93 rtc_source_set("mock_paced_sender") {
94 testonly = true
95 sources = [
96 "mock/mock_paced_sender.h",
97 ]
98 deps = [
99 ":pacing",
100 "../../system_wrappers",
101 "../../test:test_support",
102 ]
103 }
ehmaldonado36268652017-01-19 08:27:11 -0800104}