blob: a7a67e20f3cab8124101ef278b5a06c3796a290b [file] [log] [blame]
Stefan Holmer80e12072016-02-23 13:30:42 +01001# 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")
Stefan Holmer80e12072016-02-23 13:30:42 +010010
kjellanderb62dbbe2016-09-23 00:38:52 -070011rtc_static_library("congestion_controller") {
Stefan Holmer80e12072016-02-23 13:30:42 +010012 sources = [
13 "congestion_controller.cc",
philipel863a8262016-06-17 09:21:34 -070014 "delay_based_bwe.cc",
15 "delay_based_bwe.h",
Stefan Holmer80e12072016-02-23 13:30:42 +010016 "include/congestion_controller.h",
nisse559af382017-03-21 06:41:12 -070017 "include/receive_side_congestion_controller.h",
18 "include/send_side_congestion_controller.h",
terelius5a388362016-12-09 05:50:01 -080019 "median_slope_estimator.cc",
20 "median_slope_estimator.h",
philipel233c4ba2016-08-01 08:49:04 -070021 "probe_bitrate_estimator.cc",
22 "probe_bitrate_estimator.h",
Irfan Sheriffb2540bb2016-09-12 12:28:54 -070023 "probe_controller.cc",
24 "probe_controller.h",
michaelt4a4b3cf2016-11-17 01:18:43 -080025 "probing_interval_estimator.cc",
26 "probing_interval_estimator.h",
nisse559af382017-03-21 06:41:12 -070027 "receive_side_congestion_controller.cc",
28 "send_side_congestion_controller.cc",
Stefan Holmer280de9e2016-09-30 10:06:51 +020029 "transport_feedback_adapter.cc",
30 "transport_feedback_adapter.h",
tereliusafaef8b2016-11-17 03:48:18 -080031 "trendline_estimator.cc",
32 "trendline_estimator.h",
Stefan Holmer80e12072016-02-23 13:30:42 +010033 ]
34
tereliusafaef8b2016-11-17 03:48:18 -080035 if (rtc_enable_bwe_test_logging) {
36 defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=1" ]
37 } else {
38 defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=0" ]
39 }
40
kjellander8f4419b2016-06-02 02:09:52 -070041 # TODO(jschuh): Bug 1348: fix this warning.
42 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
43
kjellandere40a7ee2016-10-16 23:56:12 -070044 if (!build_with_chromium && is_clang) {
45 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -070046 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
Stefan Holmer80e12072016-02-23 13:30:42 +010047 }
48
49 deps = [
mbonadei49f465f2016-12-28 04:43:46 -080050 "../..:webrtc_common",
mbonadei49f465f2016-12-28 04:43:46 -080051 "../../base:rtc_base",
52 "../../base:rtc_base_approved",
tereliusbc5d9212017-01-13 09:14:33 -080053 "../../base:rtc_numerics",
terelius0baf55d2017-02-17 03:38:28 -080054 "../../logging:rtc_event_log_api",
mbonadei49f465f2016-12-28 04:43:46 -080055 "../../system_wrappers",
Stefan Holmer80e12072016-02-23 13:30:42 +010056 "../bitrate_controller",
57 "../pacing",
mbonadei49f465f2016-12-28 04:43:46 -080058 "../remote_bitrate_estimator",
59 "../rtp_rtcp",
60 "../utility",
Stefan Holmer80e12072016-02-23 13:30:42 +010061 ]
62}
ehmaldonado36268652017-01-19 08:27:11 -080063
64if (rtc_include_tests) {
65 rtc_source_set("congestion_controller_unittests") {
66 testonly = true
67 sources = [
68 "congestion_controller_unittest.cc",
elad.alon5bbf43f2017-03-09 06:40:08 -080069 "congestion_controller_unittests_helper.cc",
70 "congestion_controller_unittests_helper.h",
ehmaldonado36268652017-01-19 08:27:11 -080071 "delay_based_bwe_unittest.cc",
72 "delay_based_bwe_unittest_helper.cc",
73 "delay_based_bwe_unittest_helper.h",
74 "median_slope_estimator_unittest.cc",
75 "probe_bitrate_estimator_unittest.cc",
76 "probe_controller_unittest.cc",
77 "probing_interval_estimator_unittest.cc",
78 "transport_feedback_adapter_unittest.cc",
79 "trendline_estimator_unittest.cc",
80 ]
81 deps = [
82 ":congestion_controller",
83 "../../base:rtc_base_approved",
84 "../../system_wrappers:system_wrappers",
85 "../../test:field_trial",
86 "../../test:test_support",
87 "../bitrate_controller:bitrate_controller",
88 "../pacing:pacing",
89 "../remote_bitrate_estimator:remote_bitrate_estimator",
90 "../remote_bitrate_estimator:remote_bitrate_estimator_unittests",
91 "../rtp_rtcp:rtp_rtcp",
92 "//testing/gmock",
93 ]
94 if (!build_with_chromium && is_clang) {
95 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
96 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
97 }
98 }
99}