blob: 680ec6bd2fe8a2704808abd3b31518d42896f277 [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
mbonadei9aa3f0a2017-01-24 06:58:22 -08009import("../webrtc.gni")
Peter Boström5c389d32015-09-25 13:58:30 +020010
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",
solenberg3ebbcb52017-01-31 03:58:40 -080019 "syncable.cc",
20 "syncable.h",
ossuf515ab82016-12-07 04:52:58 -080021 ]
22}
23
kjellanderb62dbbe2016-09-23 00:38:52 -070024rtc_static_library("call") {
Peter Boström5c389d32015-09-25 13:58:30 +020025 sources = [
mflodman0e7e2592015-11-12 21:02:42 -080026 "bitrate_allocator.cc",
Peter Boström5c389d32015-09-25 13:58:30 +020027 "call.cc",
brandtr7250b392016-12-19 01:13:46 -080028 "flexfec_receive_stream_impl.cc",
29 "flexfec_receive_stream_impl.h",
Peter Boström5c389d32015-09-25 13:58:30 +020030 ]
31
kjellandere40a7ee2016-10-16 23:56:12 -070032 if (!build_with_chromium && is_clang) {
33 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -070034 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
Peter Boström5c389d32015-09-25 13:58:30 +020035 }
36
aleloidd310712016-11-17 06:28:59 -080037 public_deps = [
ossuf515ab82016-12-07 04:52:58 -080038 ":call_interfaces",
aleloidd310712016-11-17 06:28:59 -080039 "../api:call_api",
40 ]
41
Peter Boström5c389d32015-09-25 13:58:30 +020042 deps = [
ossuf515ab82016-12-07 04:52:58 -080043 ":call_interfaces",
Peter Boström5c389d32015-09-25 13:58:30 +020044 "..:webrtc_common",
aleloia8eb7562016-11-28 07:02:13 -080045 "../api:transport_api",
katrielc14897d02016-06-03 13:14:28 -070046 "../audio",
perkj26091b12016-09-01 01:17:40 -070047 "../base:rtc_task_queue",
skvladcc91d282016-10-03 18:31:22 -070048 "../logging:rtc_event_log_impl",
Stefan Holmer80e12072016-02-23 13:30:42 +010049 "../modules/congestion_controller",
Peter Boström5c389d32015-09-25 13:58:30 +020050 "../modules/rtp_rtcp",
51 "../system_wrappers",
katrielc14897d02016-06-03 13:14:28 -070052 "../video",
Peter Boström5c389d32015-09-25 13:58:30 +020053 ]
54}
Peter Boström02083222016-06-14 12:52:54 +020055
56if (rtc_include_tests) {
ehmaldonado38a21322016-09-02 04:10:34 -070057 rtc_source_set("call_tests") {
Peter Boström02083222016-06-14 12:52:54 +020058 testonly = true
59 sources = [
60 "bitrate_allocator_unittest.cc",
61 "bitrate_estimator_tests.cc",
62 "call_unittest.cc",
brandtr76648da2016-10-20 04:54:48 -070063 "flexfec_receive_stream_unittest.cc",
Peter Boström02083222016-06-14 12:52:54 +020064 ]
65 deps = [
66 ":call",
aleloi10111bc2016-11-17 06:48:48 -080067 "../base:rtc_base_approved",
aleloidd310712016-11-17 06:28:59 -080068 "../modules/audio_device:mock_audio_device",
aleloi10111bc2016-11-17 06:48:48 -080069 "../modules/audio_mixer",
70 "../test:test_common",
Peter Boström02083222016-06-14 12:52:54 +020071 "//testing/gmock",
72 "//testing/gtest",
73 ]
kjellandere40a7ee2016-10-16 23:56:12 -070074 if (!build_with_chromium && is_clang) {
75 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -070076 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
Peter Boström02083222016-06-14 12:52:54 +020077 }
78 }
ehmaldonado021eef32017-01-05 07:09:50 -080079
80 rtc_source_set("call_perf_tests") {
81 testonly = true
82 sources = [
83 "call_perf_tests.cc",
84 "rampup_tests.cc",
85 "rampup_tests.h",
86 ]
87 deps = [
88 "//testing/gtest",
89 "//webrtc/test:test_common",
90 ]
91 if (!build_with_chromium && is_clang) {
92 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
93 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
94 }
95 }
Peter Boström02083222016-06-14 12:52:54 +020096}