blob: 0a357c00d08574330b2a84bb8bd8f62ca213f3ed [file] [log] [blame]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +00001# 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
ehmaldonado38a21322016-09-02 04:10:34 -07009import("../../build/webrtc.gni")
10
kjellanderb62dbbe2016-09-23 00:38:52 -070011rtc_static_library("pacing") {
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000012 sources = [
isheriff31687812016-10-04 08:43:09 -070013 "alr_detector.cc",
14 "alr_detector.h",
stefan@webrtc.org82462aa2014-10-23 11:57:05 +000015 "bitrate_prober.cc",
16 "bitrate_prober.h",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000017 "paced_sender.cc",
Henrik Kjellander0b9e29c2015-11-16 11:12:24 +010018 "paced_sender.h",
Stefan Holmere5904162015-03-26 11:11:06 +010019 "packet_router.cc",
Henrik Kjellander0b9e29c2015-11-16 11:12:24 +010020 "packet_router.h",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000021 ]
22
kjellandere40a7ee2016-10-16 23:56:12 -070023 if (!build_with_chromium && is_clang) {
24 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -070025 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellander@webrtc.org42ee5b52014-08-25 14:15:35 +000026 }
27
Henrik Kjellander57e5fd22015-05-25 12:55:39 +020028 deps = [
mbonadei2a495ca2016-12-21 00:26:58 -080029 "../..:webrtc_common",
30 "../../base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +020031 "../../system_wrappers",
sprangebbf8a82015-09-21 15:11:14 -070032 "../rtp_rtcp",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +020033 ]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000034}
ehmaldonado36268652017-01-19 08:27:11 -080035
36if (rtc_include_tests) {
37 rtc_source_set("pacing_unittests") {
38 testonly = true
39 sources = [
40 "alr_detector_unittest.cc",
41 "bitrate_prober_unittest.cc",
42 "paced_sender_unittest.cc",
43 "packet_router_unittest.cc",
44 ]
45 deps = [
46 ":pacing",
47 "../../base:rtc_base_approved",
48 "../../system_wrappers:system_wrappers",
49 "../../test:test_support",
50 "../rtp_rtcp",
51 "../rtp_rtcp:rtp_rtcp_unittests",
52 "//testing/gmock",
53 ]
54
55 # TODO(jschuh): bugs.webrtc.org/1348: fix this warning.
56 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
57 if (!build_with_chromium && is_clang) {
58 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
59 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
60 }
61 }
62}