The code using the units now depends on specific targets to make the dependencies more clear Bug: None Change-Id: I3200d57a2974b6981db68f05d84391cbbb06e981 Reviewed-on: https://webrtc-review.googlesource.com/70181 Commit-Queue: Sebastian Jansson <srte@webrtc.org> Reviewed-by: Björn Terelius <terelius@webrtc.org> Cr-Commit-Position: refs/heads/master@{#22882}
99 lines
2.5 KiB
Plaintext
99 lines
2.5 KiB
Plaintext
# Copyright (c) 2018 The WebRTC project authors. All Rights Reserved.
|
|
#
|
|
# Use of this source code is governed by a BSD-style license
|
|
# that can be found in the LICENSE file in the root of the source
|
|
# tree. An additional intellectual property rights grant can be found
|
|
# in the file PATENTS. All contributing project authors may
|
|
# be found in the AUTHORS file in the root of the source tree.
|
|
|
|
import("../../../webrtc.gni")
|
|
|
|
rtc_static_library("bbr") {
|
|
sources = [
|
|
"bbr_factory.cc",
|
|
"bbr_factory.h",
|
|
]
|
|
deps = [
|
|
":bbr_controller",
|
|
"../../../rtc_base:rtc_base_approved",
|
|
"../network_control",
|
|
]
|
|
}
|
|
|
|
rtc_source_set("bbr_controller") {
|
|
visibility = [ ":*" ]
|
|
sources = [
|
|
"bbr_network_controller.cc",
|
|
"bbr_network_controller.h",
|
|
]
|
|
deps = [
|
|
":data_transfer_tracker",
|
|
":rtt_stats",
|
|
":windowed_filter",
|
|
"../../../api:optional",
|
|
"../../../rtc_base:checks",
|
|
"../../../rtc_base:rtc_base_approved",
|
|
"../../../rtc_base/experiments:congestion_controller_experiment",
|
|
"../../../rtc_base/system:fallthrough",
|
|
"../network_control",
|
|
]
|
|
}
|
|
rtc_source_set("data_transfer_tracker") {
|
|
visibility = [ ":*" ]
|
|
sources = [
|
|
"data_transfer_tracker.cc",
|
|
"data_transfer_tracker.h",
|
|
]
|
|
deps = [
|
|
"../../../rtc_base:checks",
|
|
"../../../rtc_base:rtc_base_approved",
|
|
"../network_control/units:data_size",
|
|
"../network_control/units:time_delta",
|
|
"../network_control/units:timestamp",
|
|
]
|
|
}
|
|
rtc_source_set("rtt_stats") {
|
|
visibility = [ ":*" ]
|
|
sources = [
|
|
"rtt_stats.cc",
|
|
"rtt_stats.h",
|
|
]
|
|
deps = [
|
|
"../../../rtc_base:rtc_base_approved",
|
|
"../network_control/units:time_delta",
|
|
"../network_control/units:timestamp",
|
|
]
|
|
}
|
|
rtc_source_set("windowed_filter") {
|
|
visibility = [ ":*" ]
|
|
sources = [
|
|
"windowed_filter.h",
|
|
]
|
|
}
|
|
if (rtc_include_tests) {
|
|
rtc_source_set("bbr_unittests") {
|
|
testonly = true
|
|
sources = [
|
|
"bbr_network_controller_unittest.cc",
|
|
"data_transfer_tracker_unittest.cc",
|
|
"rtt_stats_unittest.cc",
|
|
"windowed_filter_unittest.cc",
|
|
]
|
|
deps = [
|
|
":bbr",
|
|
":bbr_controller",
|
|
":data_transfer_tracker",
|
|
":rtt_stats",
|
|
":windowed_filter",
|
|
"../../../test:test_support",
|
|
"../network_control:network_control_test",
|
|
"../network_control/units:data_rate",
|
|
"../network_control/units:time_delta",
|
|
]
|
|
if (!build_with_chromium && is_clang) {
|
|
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
|
}
|
|
}
|
|
}
|