blob: 3083b3f1e865982af68299c6aba5b3a77b0bcd31 [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") {
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000012 sources = [
stefan@webrtc.org82462aa2014-10-23 11:57:05 +000013 "bitrate_prober.cc",
14 "bitrate_prober.h",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000015 "paced_sender.cc",
Henrik Kjellander0b9e29c2015-11-16 11:12:24 +010016 "paced_sender.h",
gnisha36165c2017-08-20 09:19:58 -070017 "pacer.h",
philipel9981bd92017-09-26 17:16:06 +020018 "packet_queue.cc",
19 "packet_queue.h",
Sebastian Janssonb5374962018-02-07 13:26:38 +010020 "packet_queue_interface.cc",
21 "packet_queue_interface.h",
Stefan Holmere5904162015-03-26 11:11:06 +010022 "packet_router.cc",
Henrik Kjellander0b9e29c2015-11-16 11:12:24 +010023 "packet_router.h",
Sebastian Janssonb5374962018-02-07 13:26:38 +010024 "round_robin_packet_queue.cc",
25 "round_robin_packet_queue.h",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000026 ]
27
kjellandere40a7ee2016-10-16 23:56:12 -070028 if (!build_with_chromium && is_clang) {
29 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -070030 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellander@webrtc.org42ee5b52014-08-25 14:15:35 +000031 }
32
Henrik Kjellander57e5fd22015-05-25 12:55:39 +020033 deps = [
Sebastian Janssonf9f49a32018-06-25 17:56:08 +020034 ":interval_budget",
mbonadei1140f972017-04-26 03:38:35 -070035 "..:module_api",
Patrik Höglund3e113432017-12-15 14:40:10 +010036 "../../:typedefs",
tommi919dce22017-03-15 07:45:36 -070037 "../../:webrtc_common",
Qingsi Wang970b0882018-02-01 11:04:46 -080038 "../../logging:rtc_event_bwe",
philipelc3b3f7a2017-03-29 01:23:13 -070039 "../../logging:rtc_event_log_api",
Qingsi Wang970b0882018-02-01 11:04:46 -080040 "../../logging:rtc_event_pacing",
Patrik Höglunda8005cf2017-12-13 16:05:42 +010041 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -070042 "../../rtc_base:rtc_base_approved",
Sebastian Janssoncabe3832018-01-12 10:54:18 +010043 "../../rtc_base/experiments:alr_experiment",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +020044 "../../system_wrappers",
Mirko Bonadeia498ae82017-12-06 09:17:14 +010045 "../../system_wrappers:field_trial_api",
Ilya Nikolaevskiy2ffe3e82018-01-17 19:57:24 +000046 "../../system_wrappers:runtime_enabled_features_api",
Sebastian Janssonf9f49a32018-06-25 17:56:08 +020047 "../congestion_controller/goog_cc:alr_detector",
nisse05843312017-04-18 23:38:35 -070048 "../remote_bitrate_estimator",
sprangebbf8a82015-09-21 15:11:14 -070049 "../rtp_rtcp",
Mirko Bonadeib5728d92017-12-06 07:51:33 +010050 "../rtp_rtcp:rtp_rtcp_format",
tommi919dce22017-03-15 07:45:36 -070051 "../utility",
Karl Wiberg918f50c2018-07-05 11:40:33 +020052 "//third_party/abseil-cpp/absl/memory",
Danil Chapovalov0040b662018-06-18 10:48:16 +020053 "//third_party/abseil-cpp/absl/types:optional",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +020054 ]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000055}
ehmaldonado36268652017-01-19 08:27:11 -080056
Sebastian Janssonf9f49a32018-06-25 17:56:08 +020057rtc_source_set("interval_budget") {
58 sources = [
59 "interval_budget.cc",
60 "interval_budget.h",
61 ]
62
63 if (!build_with_chromium && is_clang) {
64 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
65 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
66 }
67
68 deps = [
69 # "../../:typedefs",
70 "../../:webrtc_common",
71 "../../rtc_base:checks",
72 "../../rtc_base:rtc_base_approved",
73 ]
74}
75
ehmaldonado36268652017-01-19 08:27:11 -080076if (rtc_include_tests) {
77 rtc_source_set("pacing_unittests") {
78 testonly = true
kjellandere0629c02017-04-25 04:04:50 -070079
ehmaldonado36268652017-01-19 08:27:11 -080080 sources = [
ehmaldonado36268652017-01-19 08:27:11 -080081 "bitrate_prober_unittest.cc",
tschumim82c55932017-07-11 06:56:04 -070082 "interval_budget_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -080083 "paced_sender_unittest.cc",
84 "packet_router_unittest.cc",
85 ]
86 deps = [
Sebastian Janssonf9f49a32018-06-25 17:56:08 +020087 ":interval_budget",
ehmaldonado36268652017-01-19 08:27:11 -080088 ":pacing",
Patrik Höglunda8005cf2017-12-13 16:05:42 +010089 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -070090 "../../rtc_base:rtc_base_approved",
91 "../../rtc_base:rtc_base_tests_utils",
Sebastian Janssoncabe3832018-01-12 10:54:18 +010092 "../../rtc_base/experiments:alr_experiment",
Mirko Bonadeia498ae82017-12-06 09:17:14 +010093 "../../system_wrappers",
94 "../../system_wrappers:field_trial_api",
Ilya Nikolaevskiy2ffe3e82018-01-17 19:57:24 +000095 "../../system_wrappers:runtime_enabled_features_api",
Erik Språngb378a222017-10-02 13:25:38 +020096 "../../test:field_trial",
ehmaldonado36268652017-01-19 08:27:11 -080097 "../../test:test_support",
98 "../rtp_rtcp",
kjellandere0629c02017-04-25 04:04:50 -070099 "../rtp_rtcp:mock_rtp_rtcp",
Mirko Bonadeib5728d92017-12-06 07:51:33 +0100100 "../rtp_rtcp:rtp_rtcp_format",
ehmaldonado36268652017-01-19 08:27:11 -0800101 ]
102
ehmaldonado36268652017-01-19 08:27:11 -0800103 if (!build_with_chromium && is_clang) {
104 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
105 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
106 }
107 }
mbonadei334f9e62017-09-04 04:57:11 -0700108
109 rtc_source_set("mock_paced_sender") {
110 testonly = true
111 sources = [
112 "mock/mock_paced_sender.h",
113 ]
114 deps = [
115 ":pacing",
116 "../../system_wrappers",
117 "../../test:test_support",
118 ]
119 }
ehmaldonado36268652017-01-19 08:27:11 -0800120}