kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 1 | # 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 | |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 9 | import("../../build/webrtc.gni") |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 10 | |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 11 | rtc_source_set("remote_bitrate_estimator") { |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 12 | sources = [ |
pbos@webrtc.org | 9f79fe6 | 2014-12-04 15:34:06 +0000 | [diff] [blame] | 13 | "aimd_rate_control.cc", |
| 14 | "aimd_rate_control.h", |
stefan | 64636dd | 2016-08-03 00:29:03 -0700 | [diff] [blame] | 15 | "bwe_defines.cc", |
kjellander | 5c1d043 | 2016-06-09 02:40:58 -0700 | [diff] [blame] | 16 | "include/bwe_defines.h", |
| 17 | "include/remote_bitrate_estimator.h", |
sprang | 318673c | 2015-09-04 04:43:21 -0700 | [diff] [blame] | 18 | "include/send_time_history.h", |
pbos@webrtc.org | 9f79fe6 | 2014-12-04 15:34:06 +0000 | [diff] [blame] | 19 | "inter_arrival.cc", |
| 20 | "inter_arrival.h", |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 21 | "overuse_detector.cc", |
| 22 | "overuse_detector.h", |
pbos@webrtc.org | 9f79fe6 | 2014-12-04 15:34:06 +0000 | [diff] [blame] | 23 | "overuse_estimator.cc", |
| 24 | "overuse_estimator.h", |
| 25 | "remote_bitrate_estimator_abs_send_time.cc", |
kjellander | 5c1d043 | 2016-06-09 02:40:58 -0700 | [diff] [blame] | 26 | "remote_bitrate_estimator_abs_send_time.h", |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 27 | "remote_bitrate_estimator_single_stream.cc", |
kjellander | 5c1d043 | 2016-06-09 02:40:58 -0700 | [diff] [blame] | 28 | "remote_bitrate_estimator_single_stream.h", |
Erik Språng | 6b8d355 | 2015-09-24 15:06:57 +0200 | [diff] [blame] | 29 | "remote_estimator_proxy.cc", |
| 30 | "remote_estimator_proxy.h", |
sprang | 318673c | 2015-09-04 04:43:21 -0700 | [diff] [blame] | 31 | "send_time_history.cc", |
kjellander | 5c1d043 | 2016-06-09 02:40:58 -0700 | [diff] [blame] | 32 | "test/bwe_test_logging.h", |
Erik Språng | 6b8d355 | 2015-09-24 15:06:57 +0200 | [diff] [blame] | 33 | "transport_feedback_adapter.cc", |
| 34 | "transport_feedback_adapter.h", |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 35 | ] |
kjellander@webrtc.org | 9bef551 | 2014-07-13 09:02:54 +0000 | [diff] [blame] | 36 | |
gaetano.carlucci | 52a5703 | 2016-09-14 05:04:36 -0700 | [diff] [blame] | 37 | if (!rtc_include_tests) { |
| 38 | if (rtc_enable_bwe_test_logging) { |
| 39 | defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=1" ] |
| 40 | sources += [ "test/bwe_test_logging.cc" ] |
| 41 | } else { |
| 42 | defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=0" ] |
| 43 | } |
brucedawson | 07df20b | 2016-05-22 17:15:02 -0700 | [diff] [blame] | 44 | } |
| 45 | |
kjellander@webrtc.org | 42ee5b5 | 2014-08-25 14:15:35 +0000 | [diff] [blame] | 46 | if (is_clang) { |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 47 | # Suppress warnings from the Chromium Clang plugins (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 48 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kjellander@webrtc.org | 42ee5b5 | 2014-08-25 14:15:35 +0000 | [diff] [blame] | 49 | } |
kjellander | 5c1d043 | 2016-06-09 02:40:58 -0700 | [diff] [blame] | 50 | |
| 51 | deps = [ |
| 52 | "../..:webrtc_common", |
Henrik Kjellander | d4070c6 | 2016-06-09 11:55:29 +0200 | [diff] [blame] | 53 | "../../base:rtc_base_approved", |
kjellander | 5c1d043 | 2016-06-09 02:40:58 -0700 | [diff] [blame] | 54 | "../../system_wrappers", |
| 55 | ] |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 56 | } |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 57 | |
| 58 | if (rtc_include_tests) { |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 59 | rtc_source_set("bwe_simulator") { |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 60 | testonly = true |
| 61 | sources = [ |
gaetano.carlucci | 52a5703 | 2016-09-14 05:04:36 -0700 | [diff] [blame] | 62 | "bwe_simulations.cc", |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 63 | "test/bwe.cc", |
| 64 | "test/bwe.h", |
| 65 | "test/bwe_test.cc", |
| 66 | "test/bwe_test.h", |
| 67 | "test/bwe_test_baselinefile.cc", |
| 68 | "test/bwe_test_baselinefile.h", |
| 69 | "test/bwe_test_fileutils.cc", |
| 70 | "test/bwe_test_fileutils.h", |
| 71 | "test/bwe_test_framework.cc", |
| 72 | "test/bwe_test_framework.h", |
| 73 | "test/bwe_test_logging.h", |
| 74 | "test/estimators/nada.cc", |
| 75 | "test/estimators/nada.h", |
| 76 | "test/estimators/remb.cc", |
| 77 | "test/estimators/remb.h", |
| 78 | "test/estimators/send_side.cc", |
| 79 | "test/estimators/send_side.h", |
| 80 | "test/estimators/tcp.cc", |
| 81 | "test/estimators/tcp.h", |
| 82 | "test/metric_recorder.cc", |
| 83 | "test/metric_recorder.h", |
| 84 | "test/packet.h", |
| 85 | "test/packet_receiver.cc", |
| 86 | "test/packet_receiver.h", |
| 87 | "test/packet_sender.cc", |
| 88 | "test/packet_sender.h", |
| 89 | ] |
| 90 | |
| 91 | if (rtc_enable_bwe_test_logging) { |
| 92 | defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=1" ] |
| 93 | sources += [ "test/bwe_test_logging.cc" ] |
| 94 | } else { |
| 95 | defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=0" ] |
| 96 | } |
| 97 | |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 98 | if (is_clang) { |
| 99 | # Suppress warnings from the Chromium Clang plugins (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 100 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 101 | } |
| 102 | |
| 103 | if (is_win) { |
| 104 | cflags = [ |
| 105 | # TODO(kjellander): Bug 261: fix this warning. |
| 106 | "/wd4373", # virtual function override. |
| 107 | ] |
| 108 | } |
| 109 | |
| 110 | deps = [ |
| 111 | "../../test:test_support", |
| 112 | "../pacing", |
| 113 | "//testing/gmock", |
| 114 | "//testing/gtest", |
| 115 | ] |
| 116 | } |
| 117 | } |