blob: ad20f340fc0b2e581e40cd6c7554f37a3575ef9e [file] [log] [blame]
Peter Boström5c389d32015-09-25 13:58:30 +02001# Copyright (c) 2015 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
9import("../build/webrtc.gni")
10
kjellanderb62dbbe2016-09-23 00:38:52 -070011rtc_static_library("call") {
Peter Boström5c389d32015-09-25 13:58:30 +020012 sources = [
mflodman0e7e2592015-11-12 21:02:42 -080013 "bitrate_allocator.cc",
Peter Boström5c389d32015-09-25 13:58:30 +020014 "call.cc",
brandtr76648da2016-10-20 04:54:48 -070015 "flexfec_receive_stream.cc",
16 "flexfec_receive_stream.h",
Peter Boström5c389d32015-09-25 13:58:30 +020017 ]
18
kjellandere40a7ee2016-10-16 23:56:12 -070019 if (!build_with_chromium && is_clang) {
20 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -070021 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
Peter Boström5c389d32015-09-25 13:58:30 +020022 }
23
aleloidd310712016-11-17 06:28:59 -080024 public_deps = [
25 "../api:call_api",
26 ]
27
Peter Boström5c389d32015-09-25 13:58:30 +020028 deps = [
Peter Boström5c389d32015-09-25 13:58:30 +020029 "..:webrtc_common",
katrielc14897d02016-06-03 13:14:28 -070030 "../audio",
perkj26091b12016-09-01 01:17:40 -070031 "../base:rtc_task_queue",
skvladcc91d282016-10-03 18:31:22 -070032 "../logging:rtc_event_log_impl",
Stefan Holmer80e12072016-02-23 13:30:42 +010033 "../modules/congestion_controller",
Peter Boström5c389d32015-09-25 13:58:30 +020034 "../modules/rtp_rtcp",
35 "../system_wrappers",
katrielc14897d02016-06-03 13:14:28 -070036 "../video",
Peter Boström5c389d32015-09-25 13:58:30 +020037 ]
38}
Peter Boström02083222016-06-14 12:52:54 +020039
40if (rtc_include_tests) {
ehmaldonado38a21322016-09-02 04:10:34 -070041 rtc_source_set("call_tests") {
Peter Boström02083222016-06-14 12:52:54 +020042 testonly = true
43 sources = [
44 "bitrate_allocator_unittest.cc",
45 "bitrate_estimator_tests.cc",
46 "call_unittest.cc",
brandtr76648da2016-10-20 04:54:48 -070047 "flexfec_receive_stream_unittest.cc",
Peter Boström02083222016-06-14 12:52:54 +020048 "packet_injection_tests.cc",
Peter Boström02083222016-06-14 12:52:54 +020049 ]
50 deps = [
51 ":call",
aleloidd310712016-11-17 06:28:59 -080052 "../modules/audio_device:mock_audio_device",
Peter Boström02083222016-06-14 12:52:54 +020053 "//testing/gmock",
54 "//testing/gtest",
55 ]
kjellandere40a7ee2016-10-16 23:56:12 -070056 if (!build_with_chromium && is_clang) {
57 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -070058 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
Peter Boström02083222016-06-14 12:52:54 +020059 }
60 }
61}