blob: d2dc680adbb963906f380f64c23b20611d00f7ab [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
9import("../../build/webrtc.gni")
10
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",
terelius5a388362016-12-09 05:50:01 -080017 "median_slope_estimator.cc",
18 "median_slope_estimator.h",
philipel233c4ba2016-08-01 08:49:04 -070019 "probe_bitrate_estimator.cc",
20 "probe_bitrate_estimator.h",
Irfan Sheriffb2540bb2016-09-12 12:28:54 -070021 "probe_controller.cc",
22 "probe_controller.h",
michaelt4a4b3cf2016-11-17 01:18:43 -080023 "probing_interval_estimator.cc",
24 "probing_interval_estimator.h",
Stefan Holmer280de9e2016-09-30 10:06:51 +020025 "transport_feedback_adapter.cc",
26 "transport_feedback_adapter.h",
tereliusafaef8b2016-11-17 03:48:18 -080027 "trendline_estimator.cc",
28 "trendline_estimator.h",
Stefan Holmer80e12072016-02-23 13:30:42 +010029 ]
30
tereliusafaef8b2016-11-17 03:48:18 -080031 if (rtc_enable_bwe_test_logging) {
32 defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=1" ]
33 } else {
34 defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=0" ]
35 }
36
kjellander8f4419b2016-06-02 02:09:52 -070037 # TODO(jschuh): Bug 1348: fix this warning.
38 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
39
kjellandere40a7ee2016-10-16 23:56:12 -070040 if (!build_with_chromium && is_clang) {
41 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -070042 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
Stefan Holmer80e12072016-02-23 13:30:42 +010043 }
44
45 deps = [
terelius5a388362016-12-09 05:50:01 -080046 "../../base:rtc_analytics",
Stefan Holmer80e12072016-02-23 13:30:42 +010047 "../bitrate_controller",
48 "../pacing",
Stefan Holmer80e12072016-02-23 13:30:42 +010049 ]
50}