blob: a06233ad90131b407b019684ead81fd7330d0aa4 [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",
tommi919dce22017-03-15 07:45:36 -070032 "../../:webrtc_common",
Danil Chapovalovdb128562018-09-17 13:11:50 +020033 "../../api/transport:network_control",
Qingsi Wang970b0882018-02-01 11:04:46 -080034 "../../logging:rtc_event_bwe",
philipelc3b3f7a2017-03-29 01:23:13 -070035 "../../logging:rtc_event_log_api",
Qingsi Wang970b0882018-02-01 11:04:46 -080036 "../../logging:rtc_event_pacing",
Patrik Höglunda8005cf2017-12-13 16:05:42 +010037 "../../rtc_base:checks",
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",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +020040 "../../system_wrappers",
Mirko Bonadei17f48782018-09-28 08:51:10 +020041 "../../system_wrappers:field_trial",
Sebastian Janssonf9f49a32018-06-25 17:56:08 +020042 "../congestion_controller/goog_cc:alr_detector",
nisse05843312017-04-18 23:38:35 -070043 "../remote_bitrate_estimator",
sprangebbf8a82015-09-21 15:11:14 -070044 "../rtp_rtcp",
Mirko Bonadeib5728d92017-12-06 07:51:33 +010045 "../rtp_rtcp:rtp_rtcp_format",
tommi919dce22017-03-15 07:45:36 -070046 "../utility",
Karl Wiberg918f50c2018-07-05 11:40:33 +020047 "//third_party/abseil-cpp/absl/memory",
Danil Chapovalov0040b662018-06-18 10:48:16 +020048 "//third_party/abseil-cpp/absl/types:optional",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +020049 ]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000050}
ehmaldonado36268652017-01-19 08:27:11 -080051
Sebastian Janssonf9f49a32018-06-25 17:56:08 +020052rtc_source_set("interval_budget") {
53 sources = [
54 "interval_budget.cc",
55 "interval_budget.h",
56 ]
57
Sebastian Janssonf9f49a32018-06-25 17:56:08 +020058 deps = [
Sebastian Janssonf9f49a32018-06-25 17:56:08 +020059 "../../:webrtc_common",
60 "../../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",
Patrik Höglunda8005cf2017-12-13 16:05:42 +010078 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -070079 "../../rtc_base:rtc_base_approved",
80 "../../rtc_base:rtc_base_tests_utils",
Sebastian Janssoncabe3832018-01-12 10:54:18 +010081 "../../rtc_base/experiments:alr_experiment",
Mirko Bonadeia498ae82017-12-06 09:17:14 +010082 "../../system_wrappers",
Mirko Bonadei17f48782018-09-28 08:51:10 +020083 "../../system_wrappers:field_trial",
Erik Språngb378a222017-10-02 13:25:38 +020084 "../../test:field_trial",
ehmaldonado36268652017-01-19 08:27:11 -080085 "../../test:test_support",
86 "../rtp_rtcp",
kjellandere0629c02017-04-25 04:04:50 -070087 "../rtp_rtcp:mock_rtp_rtcp",
Mirko Bonadeib5728d92017-12-06 07:51:33 +010088 "../rtp_rtcp:rtp_rtcp_format",
ehmaldonado36268652017-01-19 08:27:11 -080089 ]
ehmaldonado36268652017-01-19 08:27:11 -080090 }
mbonadei334f9e62017-09-04 04:57:11 -070091
92 rtc_source_set("mock_paced_sender") {
93 testonly = true
94 sources = [
95 "mock/mock_paced_sender.h",
96 ]
97 deps = [
98 ":pacing",
99 "../../system_wrappers",
100 "../../test:test_support",
101 ]
102 }
ehmaldonado36268652017-01-19 08:27:11 -0800103}