blob: 95db035b48fc74e71fdff50664d39a04f676f1e4 [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 ]
kjellander2f1a5552017-02-27 15:57:45 -080022 deps = [
23 "..:webrtc_common",
24 "../api:audio_mixer_api",
25 "../api:transport_api",
26 "../api/audio_codecs:audio_codecs_api",
27 "../base:rtc_base",
28 "../base:rtc_base_approved",
29 "../modules/audio_coding:audio_encoder_interface",
30 ]
ossuf515ab82016-12-07 04:52:58 -080031}
32
kjellanderb62dbbe2016-09-23 00:38:52 -070033rtc_static_library("call") {
Peter Boström5c389d32015-09-25 13:58:30 +020034 sources = [
mflodman0e7e2592015-11-12 21:02:42 -080035 "bitrate_allocator.cc",
Peter Boström5c389d32015-09-25 13:58:30 +020036 "call.cc",
brandtr7250b392016-12-19 01:13:46 -080037 "flexfec_receive_stream_impl.cc",
38 "flexfec_receive_stream_impl.h",
Peter Boström5c389d32015-09-25 13:58:30 +020039 ]
40
kjellandere40a7ee2016-10-16 23:56:12 -070041 if (!build_with_chromium && is_clang) {
42 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -070043 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
Peter Boström5c389d32015-09-25 13:58:30 +020044 }
45
aleloidd310712016-11-17 06:28:59 -080046 public_deps = [
ossuf515ab82016-12-07 04:52:58 -080047 ":call_interfaces",
aleloidd310712016-11-17 06:28:59 -080048 "../api:call_api",
49 ]
50
Peter Boström5c389d32015-09-25 13:58:30 +020051 deps = [
ossuf515ab82016-12-07 04:52:58 -080052 ":call_interfaces",
Peter Boström5c389d32015-09-25 13:58:30 +020053 "..:webrtc_common",
aleloia8eb7562016-11-28 07:02:13 -080054 "../api:transport_api",
katrielc14897d02016-06-03 13:14:28 -070055 "../audio",
perkj26091b12016-09-01 01:17:40 -070056 "../base:rtc_task_queue",
kjellander2f1a5552017-02-27 15:57:45 -080057 "../logging:rtc_event_log_api",
skvladcc91d282016-10-03 18:31:22 -070058 "../logging:rtc_event_log_impl",
kjellander2f1a5552017-02-27 15:57:45 -080059 "../modules/bitrate_controller",
Stefan Holmer80e12072016-02-23 13:30:42 +010060 "../modules/congestion_controller",
kjellander2f1a5552017-02-27 15:57:45 -080061 "../modules/pacing",
Peter Boström5c389d32015-09-25 13:58:30 +020062 "../modules/rtp_rtcp",
kjellander2f1a5552017-02-27 15:57:45 -080063 "../modules/utility",
Peter Boström5c389d32015-09-25 13:58:30 +020064 "../system_wrappers",
katrielc14897d02016-06-03 13:14:28 -070065 "../video",
Peter Boström5c389d32015-09-25 13:58:30 +020066 ]
67}
Peter Boström02083222016-06-14 12:52:54 +020068
69if (rtc_include_tests) {
ehmaldonado38a21322016-09-02 04:10:34 -070070 rtc_source_set("call_tests") {
Peter Boström02083222016-06-14 12:52:54 +020071 testonly = true
72 sources = [
73 "bitrate_allocator_unittest.cc",
74 "bitrate_estimator_tests.cc",
75 "call_unittest.cc",
brandtr76648da2016-10-20 04:54:48 -070076 "flexfec_receive_stream_unittest.cc",
Peter Boström02083222016-06-14 12:52:54 +020077 ]
78 deps = [
79 ":call",
aleloi10111bc2016-11-17 06:48:48 -080080 "../base:rtc_base_approved",
kjellander2f1a5552017-02-27 15:57:45 -080081 "../logging:rtc_event_log_api",
aleloidd310712016-11-17 06:28:59 -080082 "../modules/audio_device:mock_audio_device",
aleloi10111bc2016-11-17 06:48:48 -080083 "../modules/audio_mixer",
kjellander2f1a5552017-02-27 15:57:45 -080084 "../modules/bitrate_controller",
85 "../modules/pacing",
86 "../modules/rtp_rtcp",
87 "../system_wrappers",
88 "../test:direct_transport",
aleloi10111bc2016-11-17 06:48:48 -080089 "../test:test_common",
kjellander2f1a5552017-02-27 15:57:45 -080090 "../test:test_support",
91 "../test:video_test_common",
Peter Boström02083222016-06-14 12:52:54 +020092 "//testing/gmock",
93 "//testing/gtest",
94 ]
kjellandere40a7ee2016-10-16 23:56:12 -070095 if (!build_with_chromium && is_clang) {
96 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -070097 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
Peter Boström02083222016-06-14 12:52:54 +020098 }
99 }
ehmaldonado021eef32017-01-05 07:09:50 -0800100
101 rtc_source_set("call_perf_tests") {
102 testonly = true
103 sources = [
104 "call_perf_tests.cc",
105 "rampup_tests.cc",
106 "rampup_tests.h",
107 ]
108 deps = [
kjellander2f1a5552017-02-27 15:57:45 -0800109 ":call_interfaces",
110 "..:webrtc_common",
111 "../base:rtc_base_approved",
112 "../logging:rtc_event_log_api",
113 "../modules/audio_coding",
114 "../modules/audio_mixer:audio_mixer_impl",
115 "../modules/rtp_rtcp",
116 "../system_wrappers",
117 "../system_wrappers:metrics_default",
118 "../test:direct_transport",
119 "../test:test_support",
120 "../test:video_test_common",
121 "../video",
122 "../voice_engine",
ehmaldonado021eef32017-01-05 07:09:50 -0800123 "//testing/gtest",
124 "//webrtc/test:test_common",
125 ]
126 if (!build_with_chromium && is_clang) {
127 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
128 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
129 }
130 }
Peter Boström02083222016-06-14 12:52:54 +0200131}