2014-06-23 19:21:07 +00:00
|
|
|
# Copyright (c) 2014 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.
|
|
|
|
|
|
2017-01-24 05:14:35 -08:00
|
|
|
import("../../build/webrtc.gni")
|
2016-09-02 04:10:34 -07:00
|
|
|
|
2016-09-23 00:38:52 -07:00
|
|
|
rtc_static_library("pacing") {
|
2014-06-23 19:21:07 +00:00
|
|
|
sources = [
|
2016-10-04 08:43:09 -07:00
|
|
|
"alr_detector.cc",
|
|
|
|
|
"alr_detector.h",
|
2014-10-23 11:57:05 +00:00
|
|
|
"bitrate_prober.cc",
|
|
|
|
|
"bitrate_prober.h",
|
2014-06-23 19:21:07 +00:00
|
|
|
"paced_sender.cc",
|
2015-11-16 11:12:24 +01:00
|
|
|
"paced_sender.h",
|
2015-03-26 11:11:06 +01:00
|
|
|
"packet_router.cc",
|
2015-11-16 11:12:24 +01:00
|
|
|
"packet_router.h",
|
2014-06-23 19:21:07 +00:00
|
|
|
]
|
|
|
|
|
|
2016-10-16 23:56:12 -07:00
|
|
|
if (!build_with_chromium && is_clang) {
|
|
|
|
|
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
2016-09-02 04:10:34 -07:00
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
2014-08-25 14:15:35 +00:00
|
|
|
}
|
|
|
|
|
|
2015-05-25 12:55:39 +02:00
|
|
|
deps = [
|
2016-12-21 00:26:58 -08:00
|
|
|
"../..:webrtc_common",
|
|
|
|
|
"../../base:rtc_base_approved",
|
2015-05-25 12:55:39 +02:00
|
|
|
"../../system_wrappers",
|
2015-09-21 15:11:14 -07:00
|
|
|
"../rtp_rtcp",
|
2015-05-25 12:55:39 +02:00
|
|
|
]
|
2014-06-23 19:21:07 +00:00
|
|
|
}
|
2017-01-19 08:27:11 -08:00
|
|
|
|
|
|
|
|
if (rtc_include_tests) {
|
|
|
|
|
rtc_source_set("pacing_unittests") {
|
|
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"alr_detector_unittest.cc",
|
|
|
|
|
"bitrate_prober_unittest.cc",
|
|
|
|
|
"paced_sender_unittest.cc",
|
|
|
|
|
"packet_router_unittest.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":pacing",
|
|
|
|
|
"../../base:rtc_base_approved",
|
|
|
|
|
"../../system_wrappers:system_wrappers",
|
|
|
|
|
"../../test:test_support",
|
|
|
|
|
"../rtp_rtcp",
|
|
|
|
|
"../rtp_rtcp:rtp_rtcp_unittests",
|
|
|
|
|
"//testing/gmock",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
# TODO(jschuh): bugs.webrtc.org/1348: fix this warning.
|
|
|
|
|
configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
|
|
|
|
|
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" ]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|