Sebastian Jansson | fc7ec8e | 2018-02-28 16:48:00 +0100 | [diff] [blame] | 1 | # Copyright (c) 2018 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 | |
| 9 | import("../../../webrtc.gni") |
| 10 | |
| 11 | config("bwe_test_logging") { |
| 12 | if (rtc_enable_bwe_test_logging) { |
| 13 | defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=1" ] |
| 14 | } else { |
| 15 | defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=0" ] |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | rtc_static_library("goog_cc") { |
| 20 | configs += [ ":bwe_test_logging" ] |
| 21 | sources = [ |
Sebastian Jansson | fc7ec8e | 2018-02-28 16:48:00 +0100 | [diff] [blame] | 22 | "goog_cc_factory.cc", |
| 23 | "goog_cc_network_control.cc", |
| 24 | "goog_cc_network_control.h", |
| 25 | "include/goog_cc_factory.h", |
| 26 | "probe_controller.cc", |
| 27 | "probe_controller.h", |
| 28 | ] |
| 29 | |
Sebastian Jansson | fc7ec8e | 2018-02-28 16:48:00 +0100 | [diff] [blame] | 30 | if (!build_with_chromium && is_clang) { |
| 31 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 32 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 33 | } |
| 34 | |
| 35 | deps = [ |
Sebastian Jansson | f9f49a3 | 2018-06-25 17:56:08 +0200 | [diff] [blame] | 36 | ":alr_detector", |
Sebastian Jansson | fc7ec8e | 2018-02-28 16:48:00 +0100 | [diff] [blame] | 37 | ":delay_based_bwe", |
| 38 | ":estimators", |
| 39 | "../..:module_api", |
| 40 | "../../..:webrtc_common", |
| 41 | "../../../:typedefs", |
Sebastian Jansson | c6c4426 | 2018-05-09 10:33:39 +0200 | [diff] [blame] | 42 | "../../../api/transport:network_control", |
Sebastian Jansson | fc7ec8e | 2018-02-28 16:48:00 +0100 | [diff] [blame] | 43 | "../../../logging:rtc_event_log_api", |
| 44 | "../../../logging:rtc_event_pacing", |
| 45 | "../../../rtc_base:checks", |
| 46 | "../../../rtc_base:rtc_base_approved", |
| 47 | "../../../rtc_base/experiments:alr_experiment", |
| 48 | "../../../system_wrappers", |
| 49 | "../../../system_wrappers:field_trial_api", |
| 50 | "../../../system_wrappers:metrics_api", |
| 51 | "../../bitrate_controller", |
Sebastian Jansson | fc7ec8e | 2018-02-28 16:48:00 +0100 | [diff] [blame] | 52 | "../../remote_bitrate_estimator", |
| 53 | "../../rtp_rtcp:rtp_rtcp_format", |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 54 | "//third_party/abseil-cpp/absl/memory", |
Danil Chapovalov | 0040b66 | 2018-06-18 10:48:16 +0200 | [diff] [blame] | 55 | "//third_party/abseil-cpp/absl/types:optional", |
Sebastian Jansson | fc7ec8e | 2018-02-28 16:48:00 +0100 | [diff] [blame] | 56 | ] |
| 57 | } |
| 58 | |
Sebastian Jansson | f9f49a3 | 2018-06-25 17:56:08 +0200 | [diff] [blame] | 59 | rtc_source_set("alr_detector") { |
| 60 | sources = [ |
| 61 | "alr_detector.cc", |
| 62 | "alr_detector.h", |
| 63 | ] |
| 64 | if (!build_with_chromium && is_clang) { |
| 65 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 66 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 67 | } |
| 68 | deps = [ |
| 69 | "../../..:webrtc_common", |
| 70 | "../../../:typedefs", |
| 71 | "../../../logging:rtc_event_log_api", |
| 72 | "../../../logging:rtc_event_pacing", |
| 73 | "../../../rtc_base:checks", |
| 74 | "../../../rtc_base:rtc_base_approved", |
| 75 | "../../../rtc_base/experiments:alr_experiment", |
| 76 | "../../../system_wrappers:field_trial_api", |
| 77 | "../../pacing:interval_budget", |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 78 | "//third_party/abseil-cpp/absl/memory", |
Sebastian Jansson | f9f49a3 | 2018-06-25 17:56:08 +0200 | [diff] [blame] | 79 | "//third_party/abseil-cpp/absl/types:optional", |
| 80 | ] |
| 81 | } |
Sebastian Jansson | fc7ec8e | 2018-02-28 16:48:00 +0100 | [diff] [blame] | 82 | rtc_source_set("estimators") { |
| 83 | configs += [ ":bwe_test_logging" ] |
| 84 | sources = [ |
| 85 | "acknowledged_bitrate_estimator.cc", |
| 86 | "acknowledged_bitrate_estimator.h", |
| 87 | "bitrate_estimator.cc", |
| 88 | "bitrate_estimator.h", |
| 89 | "delay_increase_detector_interface.h", |
| 90 | "median_slope_estimator.cc", |
| 91 | "median_slope_estimator.h", |
| 92 | "probe_bitrate_estimator.cc", |
| 93 | "probe_bitrate_estimator.h", |
| 94 | "trendline_estimator.cc", |
| 95 | "trendline_estimator.h", |
| 96 | ] |
| 97 | |
| 98 | # TODO(jschuh): Bug 1348: fix this warning. |
| 99 | configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 100 | |
| 101 | if (!build_with_chromium && is_clang) { |
| 102 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 103 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 104 | } |
| 105 | |
| 106 | deps = [ |
Sebastian Jansson | fc7ec8e | 2018-02-28 16:48:00 +0100 | [diff] [blame] | 107 | "../../../logging:rtc_event_bwe", |
| 108 | "../../../logging:rtc_event_log_api", |
| 109 | "../../../rtc_base:checks", |
| 110 | "../../../rtc_base:rtc_base_approved", |
| 111 | "../../../rtc_base:rtc_numerics", |
Karl Wiberg | 12edf4c | 2018-03-07 14:18:56 +0100 | [diff] [blame] | 112 | "../../../rtc_base:safe_minmax", |
Sebastian Jansson | fc7ec8e | 2018-02-28 16:48:00 +0100 | [diff] [blame] | 113 | "../../../system_wrappers:field_trial_api", |
| 114 | "../../../system_wrappers:metrics_api", |
| 115 | "../../remote_bitrate_estimator", |
| 116 | "../../rtp_rtcp:rtp_rtcp_format", |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 117 | "//third_party/abseil-cpp/absl/memory", |
Danil Chapovalov | 0040b66 | 2018-06-18 10:48:16 +0200 | [diff] [blame] | 118 | "//third_party/abseil-cpp/absl/types:optional", |
Sebastian Jansson | fc7ec8e | 2018-02-28 16:48:00 +0100 | [diff] [blame] | 119 | ] |
| 120 | } |
| 121 | |
| 122 | rtc_source_set("delay_based_bwe") { |
| 123 | configs += [ ":bwe_test_logging" ] |
| 124 | sources = [ |
| 125 | "delay_based_bwe.cc", |
| 126 | "delay_based_bwe.h", |
| 127 | ] |
| 128 | |
| 129 | deps = [ |
| 130 | ":estimators", |
| 131 | "../../../:typedefs", |
| 132 | "../../../logging:rtc_event_bwe", |
| 133 | "../../../logging:rtc_event_log_api", |
| 134 | "../../../rtc_base:checks", |
| 135 | "../../../rtc_base:rtc_base_approved", |
| 136 | "../../../system_wrappers:field_trial_api", |
| 137 | "../../../system_wrappers:metrics_api", |
| 138 | "../../pacing", |
| 139 | "../../remote_bitrate_estimator", |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 140 | "//third_party/abseil-cpp/absl/memory", |
Sebastian Jansson | fc7ec8e | 2018-02-28 16:48:00 +0100 | [diff] [blame] | 141 | ] |
| 142 | |
| 143 | if (!build_with_chromium && is_clang) { |
| 144 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 145 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 146 | } |
| 147 | } |
| 148 | |
| 149 | if (rtc_include_tests) { |
Sebastian Jansson | 13171bd | 2018-07-03 18:11:45 +0200 | [diff] [blame] | 150 | rtc_source_set("test_goog_cc_printer") { |
| 151 | testonly = true |
| 152 | sources = [ |
| 153 | "test/goog_cc_printer.cc", |
| 154 | "test/goog_cc_printer.h", |
| 155 | ] |
| 156 | deps = [ |
| 157 | ":goog_cc", |
| 158 | "..:test_controller_printer", |
| 159 | ] |
| 160 | } |
Sebastian Jansson | fc7ec8e | 2018-02-28 16:48:00 +0100 | [diff] [blame] | 161 | rtc_source_set("goog_cc_unittests") { |
| 162 | testonly = true |
| 163 | |
| 164 | sources = [ |
| 165 | "acknowledged_bitrate_estimator_unittest.cc", |
| 166 | "alr_detector_unittest.cc", |
| 167 | "delay_based_bwe_unittest.cc", |
| 168 | "delay_based_bwe_unittest_helper.cc", |
| 169 | "delay_based_bwe_unittest_helper.h", |
| 170 | "median_slope_estimator_unittest.cc", |
| 171 | "probe_bitrate_estimator_unittest.cc", |
| 172 | "probe_controller_unittest.cc", |
| 173 | "trendline_estimator_unittest.cc", |
| 174 | ] |
| 175 | deps = [ |
Sebastian Jansson | f9f49a3 | 2018-06-25 17:56:08 +0200 | [diff] [blame] | 176 | ":alr_detector", |
Sebastian Jansson | fc7ec8e | 2018-02-28 16:48:00 +0100 | [diff] [blame] | 177 | ":delay_based_bwe", |
| 178 | ":estimators", |
| 179 | ":goog_cc", |
Sebastian Jansson | c6c4426 | 2018-05-09 10:33:39 +0200 | [diff] [blame] | 180 | "../../../api/transport:network_control", |
| 181 | "../../../api/transport:network_control_test", |
Sebastian Jansson | fc7ec8e | 2018-02-28 16:48:00 +0100 | [diff] [blame] | 182 | "../../../rtc_base:checks", |
| 183 | "../../../rtc_base:rtc_base_approved", |
| 184 | "../../../rtc_base:rtc_base_tests_utils", |
| 185 | "../../../rtc_base/experiments:alr_experiment", |
| 186 | "../../../system_wrappers", |
| 187 | "../../../test:field_trial", |
| 188 | "../../../test:test_support", |
| 189 | "../../pacing", |
| 190 | "../../remote_bitrate_estimator", |
| 191 | "../../rtp_rtcp:rtp_rtcp_format", |
Sebastian Jansson | fc7ec8e | 2018-02-28 16:48:00 +0100 | [diff] [blame] | 192 | "//testing/gmock", |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 193 | "//third_party/abseil-cpp/absl/memory", |
Sebastian Jansson | fc7ec8e | 2018-02-28 16:48:00 +0100 | [diff] [blame] | 194 | ] |
| 195 | if (!build_with_chromium && is_clang) { |
| 196 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 197 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 198 | } |
| 199 | } |
| 200 | } |