blob: 4a3238534838a43df5101c27e5816790570de43c [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",
brandtr7250b392016-12-19 01:13:46 -080018 "flexfec_receive_stream.h",
ossuf515ab82016-12-07 04:52:58 -080019 ]
20}
21
kjellanderb62dbbe2016-09-23 00:38:52 -070022rtc_static_library("call") {
Peter Boström5c389d32015-09-25 13:58:30 +020023 sources = [
mflodman0e7e2592015-11-12 21:02:42 -080024 "bitrate_allocator.cc",
Peter Boström5c389d32015-09-25 13:58:30 +020025 "call.cc",
brandtr7250b392016-12-19 01:13:46 -080026 "flexfec_receive_stream_impl.cc",
27 "flexfec_receive_stream_impl.h",
Peter Boström5c389d32015-09-25 13:58:30 +020028 ]
29
kjellandere40a7ee2016-10-16 23:56:12 -070030 if (!build_with_chromium && is_clang) {
31 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -070032 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
Peter Boström5c389d32015-09-25 13:58:30 +020033 }
34
aleloidd310712016-11-17 06:28:59 -080035 public_deps = [
ossuf515ab82016-12-07 04:52:58 -080036 ":call_interfaces",
aleloidd310712016-11-17 06:28:59 -080037 "../api:call_api",
38 ]
39
Peter Boström5c389d32015-09-25 13:58:30 +020040 deps = [
ossuf515ab82016-12-07 04:52:58 -080041 ":call_interfaces",
Peter Boström5c389d32015-09-25 13:58:30 +020042 "..:webrtc_common",
aleloia8eb7562016-11-28 07:02:13 -080043 "../api:transport_api",
katrielc14897d02016-06-03 13:14:28 -070044 "../audio",
perkj26091b12016-09-01 01:17:40 -070045 "../base:rtc_task_queue",
skvladcc91d282016-10-03 18:31:22 -070046 "../logging:rtc_event_log_impl",
Stefan Holmer80e12072016-02-23 13:30:42 +010047 "../modules/congestion_controller",
Peter Boström5c389d32015-09-25 13:58:30 +020048 "../modules/rtp_rtcp",
49 "../system_wrappers",
katrielc14897d02016-06-03 13:14:28 -070050 "../video",
Peter Boström5c389d32015-09-25 13:58:30 +020051 ]
52}
Peter Boström02083222016-06-14 12:52:54 +020053
54if (rtc_include_tests) {
ehmaldonado38a21322016-09-02 04:10:34 -070055 rtc_source_set("call_tests") {
Peter Boström02083222016-06-14 12:52:54 +020056 testonly = true
57 sources = [
58 "bitrate_allocator_unittest.cc",
59 "bitrate_estimator_tests.cc",
60 "call_unittest.cc",
brandtr76648da2016-10-20 04:54:48 -070061 "flexfec_receive_stream_unittest.cc",
Peter Boström02083222016-06-14 12:52:54 +020062 "packet_injection_tests.cc",
Peter Boström02083222016-06-14 12:52:54 +020063 ]
64 deps = [
65 ":call",
aleloi10111bc2016-11-17 06:48:48 -080066 "../base:rtc_base_approved",
aleloidd310712016-11-17 06:28:59 -080067 "../modules/audio_device:mock_audio_device",
aleloi10111bc2016-11-17 06:48:48 -080068 "../modules/audio_mixer",
69 "../test:test_common",
Peter Boström02083222016-06-14 12:52:54 +020070 "//testing/gmock",
71 "//testing/gtest",
72 ]
kjellandere40a7ee2016-10-16 23:56:12 -070073 if (!build_with_chromium && is_clang) {
74 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -070075 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
Peter Boström02083222016-06-14 12:52:54 +020076 }
77 }
78}