blob: 47129530e170fe3d6c20b83c9588211b9b5f00d2 [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",
nisseb8f9a322017-03-27 05:36:15 -070019 "rtp_transport_controller_send.h",
solenberg3ebbcb52017-01-31 03:58:40 -080020 "syncable.cc",
21 "syncable.h",
ossuf515ab82016-12-07 04:52:58 -080022 ]
kjellander2f1a5552017-02-27 15:57:45 -080023 deps = [
24 "..:webrtc_common",
25 "../api:audio_mixer_api",
26 "../api:transport_api",
27 "../api/audio_codecs:audio_codecs_api",
28 "../base:rtc_base",
29 "../base:rtc_base_approved",
30 "../modules/audio_coding:audio_encoder_interface",
31 ]
ossuf515ab82016-12-07 04:52:58 -080032}
33
kjellanderb62dbbe2016-09-23 00:38:52 -070034rtc_static_library("call") {
Peter Boström5c389d32015-09-25 13:58:30 +020035 sources = [
mflodman0e7e2592015-11-12 21:02:42 -080036 "bitrate_allocator.cc",
Peter Boström5c389d32015-09-25 13:58:30 +020037 "call.cc",
brandtr7250b392016-12-19 01:13:46 -080038 "flexfec_receive_stream_impl.cc",
39 "flexfec_receive_stream_impl.h",
Peter Boström5c389d32015-09-25 13:58:30 +020040 ]
41
kjellandere40a7ee2016-10-16 23:56:12 -070042 if (!build_with_chromium && is_clang) {
43 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -070044 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
Peter Boström5c389d32015-09-25 13:58:30 +020045 }
46
aleloidd310712016-11-17 06:28:59 -080047 public_deps = [
ossuf515ab82016-12-07 04:52:58 -080048 ":call_interfaces",
aleloidd310712016-11-17 06:28:59 -080049 "../api:call_api",
50 ]
51
Peter Boström5c389d32015-09-25 13:58:30 +020052 deps = [
ossuf515ab82016-12-07 04:52:58 -080053 ":call_interfaces",
Peter Boström5c389d32015-09-25 13:58:30 +020054 "..:webrtc_common",
aleloia8eb7562016-11-28 07:02:13 -080055 "../api:transport_api",
katrielc14897d02016-06-03 13:14:28 -070056 "../audio",
perkj26091b12016-09-01 01:17:40 -070057 "../base:rtc_task_queue",
kjellander2f1a5552017-02-27 15:57:45 -080058 "../logging:rtc_event_log_api",
skvladcc91d282016-10-03 18:31:22 -070059 "../logging:rtc_event_log_impl",
kjellander2f1a5552017-02-27 15:57:45 -080060 "../modules/bitrate_controller",
Stefan Holmer80e12072016-02-23 13:30:42 +010061 "../modules/congestion_controller",
kjellander2f1a5552017-02-27 15:57:45 -080062 "../modules/pacing",
Peter Boström5c389d32015-09-25 13:58:30 +020063 "../modules/rtp_rtcp",
kjellander2f1a5552017-02-27 15:57:45 -080064 "../modules/utility",
Peter Boström5c389d32015-09-25 13:58:30 +020065 "../system_wrappers",
katrielc14897d02016-06-03 13:14:28 -070066 "../video",
Peter Boström5c389d32015-09-25 13:58:30 +020067 ]
68}
Peter Boström02083222016-06-14 12:52:54 +020069
70if (rtc_include_tests) {
ehmaldonado38a21322016-09-02 04:10:34 -070071 rtc_source_set("call_tests") {
Peter Boström02083222016-06-14 12:52:54 +020072 testonly = true
73 sources = [
74 "bitrate_allocator_unittest.cc",
75 "bitrate_estimator_tests.cc",
76 "call_unittest.cc",
brandtr76648da2016-10-20 04:54:48 -070077 "flexfec_receive_stream_unittest.cc",
Peter Boström02083222016-06-14 12:52:54 +020078 ]
79 deps = [
80 ":call",
aleloi10111bc2016-11-17 06:48:48 -080081 "../base:rtc_base_approved",
kjellander2f1a5552017-02-27 15:57:45 -080082 "../logging:rtc_event_log_api",
aleloidd310712016-11-17 06:28:59 -080083 "../modules/audio_device:mock_audio_device",
aleloi10111bc2016-11-17 06:48:48 -080084 "../modules/audio_mixer",
kjellander2f1a5552017-02-27 15:57:45 -080085 "../modules/bitrate_controller",
86 "../modules/pacing",
87 "../modules/rtp_rtcp",
88 "../system_wrappers",
89 "../test:direct_transport",
aleloi10111bc2016-11-17 06:48:48 -080090 "../test:test_common",
kjellander2f1a5552017-02-27 15:57:45 -080091 "../test:test_support",
92 "../test:video_test_common",
Peter Boström02083222016-06-14 12:52:54 +020093 "//testing/gmock",
94 "//testing/gtest",
95 ]
kjellandere40a7ee2016-10-16 23:56:12 -070096 if (!build_with_chromium && is_clang) {
97 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -070098 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
Peter Boström02083222016-06-14 12:52:54 +020099 }
100 }
ehmaldonado021eef32017-01-05 07:09:50 -0800101
102 rtc_source_set("call_perf_tests") {
103 testonly = true
104 sources = [
105 "call_perf_tests.cc",
106 "rampup_tests.cc",
107 "rampup_tests.h",
108 ]
109 deps = [
kjellander2f1a5552017-02-27 15:57:45 -0800110 ":call_interfaces",
111 "..:webrtc_common",
112 "../base:rtc_base_approved",
113 "../logging:rtc_event_log_api",
114 "../modules/audio_coding",
115 "../modules/audio_mixer:audio_mixer_impl",
116 "../modules/rtp_rtcp",
117 "../system_wrappers",
118 "../system_wrappers:metrics_default",
119 "../test:direct_transport",
perkj16ccfdf2017-02-28 14:41:05 -0800120 "../test:fake_audio_device",
kjellander2f1a5552017-02-27 15:57:45 -0800121 "../test:test_support",
122 "../test:video_test_common",
123 "../video",
124 "../voice_engine",
ehmaldonado021eef32017-01-05 07:09:50 -0800125 "//testing/gtest",
sprangc5d62e22017-04-02 23:53:04 -0700126 "//webrtc/test:field_trial",
ehmaldonado021eef32017-01-05 07:09:50 -0800127 "//webrtc/test:test_common",
128 ]
129 if (!build_with_chromium && is_clang) {
130 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
131 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
132 }
133 }
Peter Boström02083222016-06-14 12:52:54 +0200134}