blob: 5572941f30efeec1f7d8497b333ef4d24ec7f3de [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
ossuf515ab82016-12-07 04:52:58 -080011rtc_source_set("call_interfaces") {
12 sources = [
13 "audio_receive_stream.h",
14 "audio_send_stream.cc",
15 "audio_send_stream.h",
16 "audio_state.h",
17 "call.h",
18 ]
19}
20
kjellanderb62dbbe2016-09-23 00:38:52 -070021rtc_static_library("call") {
Peter Boström5c389d32015-09-25 13:58:30 +020022 sources = [
mflodman0e7e2592015-11-12 21:02:42 -080023 "bitrate_allocator.cc",
Peter Boström5c389d32015-09-25 13:58:30 +020024 "call.cc",
brandtr76648da2016-10-20 04:54:48 -070025 "flexfec_receive_stream.cc",
26 "flexfec_receive_stream.h",
Peter Boström5c389d32015-09-25 13:58:30 +020027 ]
28
kjellandere40a7ee2016-10-16 23:56:12 -070029 if (!build_with_chromium && is_clang) {
30 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -070031 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
Peter Boström5c389d32015-09-25 13:58:30 +020032 }
33
aleloidd310712016-11-17 06:28:59 -080034 public_deps = [
ossuf515ab82016-12-07 04:52:58 -080035 ":call_interfaces",
aleloidd310712016-11-17 06:28:59 -080036 "../api:call_api",
37 ]
38
Peter Boström5c389d32015-09-25 13:58:30 +020039 deps = [
ossuf515ab82016-12-07 04:52:58 -080040 ":call_interfaces",
Peter Boström5c389d32015-09-25 13:58:30 +020041 "..:webrtc_common",
aleloia8eb7562016-11-28 07:02:13 -080042 "../api:transport_api",
katrielc14897d02016-06-03 13:14:28 -070043 "../audio",
perkj26091b12016-09-01 01:17:40 -070044 "../base:rtc_task_queue",
skvladcc91d282016-10-03 18:31:22 -070045 "../logging:rtc_event_log_impl",
Stefan Holmer80e12072016-02-23 13:30:42 +010046 "../modules/congestion_controller",
Peter Boström5c389d32015-09-25 13:58:30 +020047 "../modules/rtp_rtcp",
48 "../system_wrappers",
katrielc14897d02016-06-03 13:14:28 -070049 "../video",
Peter Boström5c389d32015-09-25 13:58:30 +020050 ]
51}
Peter Boström02083222016-06-14 12:52:54 +020052
53if (rtc_include_tests) {
ehmaldonado38a21322016-09-02 04:10:34 -070054 rtc_source_set("call_tests") {
Peter Boström02083222016-06-14 12:52:54 +020055 testonly = true
56 sources = [
57 "bitrate_allocator_unittest.cc",
58 "bitrate_estimator_tests.cc",
59 "call_unittest.cc",
brandtr76648da2016-10-20 04:54:48 -070060 "flexfec_receive_stream_unittest.cc",
Peter Boström02083222016-06-14 12:52:54 +020061 "packet_injection_tests.cc",
Peter Boström02083222016-06-14 12:52:54 +020062 ]
63 deps = [
64 ":call",
aleloi10111bc2016-11-17 06:48:48 -080065 "../base:rtc_base_approved",
aleloidd310712016-11-17 06:28:59 -080066 "../modules/audio_device:mock_audio_device",
aleloi10111bc2016-11-17 06:48:48 -080067 "../modules/audio_mixer",
68 "../test:test_common",
Peter Boström02083222016-06-14 12:52:54 +020069 "//testing/gmock",
70 "//testing/gtest",
71 ]
kjellandere40a7ee2016-10-16 23:56:12 -070072 if (!build_with_chromium && is_clang) {
73 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -070074 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
Peter Boström02083222016-06-14 12:52:54 +020075 }
76 }
77}