blob: da94de536b2820e1266a3eb9995fee632c1eb038 [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",
nissecae45d02017-04-24 05:53:20 -070019 "rtp_transport_controller_send_interface.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 = [
mbonadei81c79f52017-04-25 23:42:15 -070024 "..:video_stream_api",
kjellander2f1a5552017-02-27 15:57:45 -080025 "..:webrtc_common",
26 "../api:audio_mixer_api",
hbos8d609f62017-04-10 07:39:05 -070027 "../api:libjingle_peerconnection_api",
kjellander2f1a5552017-02-27 15:57:45 -080028 "../api:transport_api",
29 "../api/audio_codecs:audio_codecs_api",
30 "../base:rtc_base",
31 "../base:rtc_base_approved",
kjellander2f1a5552017-02-27 15:57:45 -080032 ]
ossuf515ab82016-12-07 04:52:58 -080033}
34
kjellanderb62dbbe2016-09-23 00:38:52 -070035rtc_static_library("call") {
Peter Boström5c389d32015-09-25 13:58:30 +020036 sources = [
mflodman0e7e2592015-11-12 21:02:42 -080037 "bitrate_allocator.cc",
Peter Boström5c389d32015-09-25 13:58:30 +020038 "call.cc",
brandtr7250b392016-12-19 01:13:46 -080039 "flexfec_receive_stream_impl.cc",
40 "flexfec_receive_stream_impl.h",
nissecae45d02017-04-24 05:53:20 -070041 "rtp_transport_controller_send.cc",
42 "rtp_transport_controller_send.h",
Peter Boström5c389d32015-09-25 13:58:30 +020043 ]
44
kjellandere40a7ee2016-10-16 23:56:12 -070045 if (!build_with_chromium && is_clang) {
46 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -070047 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
Peter Boström5c389d32015-09-25 13:58:30 +020048 }
49
aleloidd310712016-11-17 06:28:59 -080050 public_deps = [
ossuf515ab82016-12-07 04:52:58 -080051 ":call_interfaces",
aleloidd310712016-11-17 06:28:59 -080052 "../api:call_api",
53 ]
54
Peter Boström5c389d32015-09-25 13:58:30 +020055 deps = [
ossuf515ab82016-12-07 04:52:58 -080056 ":call_interfaces",
Peter Boström5c389d32015-09-25 13:58:30 +020057 "..:webrtc_common",
aleloia8eb7562016-11-28 07:02:13 -080058 "../api:transport_api",
katrielc14897d02016-06-03 13:14:28 -070059 "../audio",
perkj26091b12016-09-01 01:17:40 -070060 "../base:rtc_task_queue",
kjellander2f1a5552017-02-27 15:57:45 -080061 "../logging:rtc_event_log_api",
skvladcc91d282016-10-03 18:31:22 -070062 "../logging:rtc_event_log_impl",
kjellander2f1a5552017-02-27 15:57:45 -080063 "../modules/bitrate_controller",
Stefan Holmer80e12072016-02-23 13:30:42 +010064 "../modules/congestion_controller",
kjellander2f1a5552017-02-27 15:57:45 -080065 "../modules/pacing",
Peter Boström5c389d32015-09-25 13:58:30 +020066 "../modules/rtp_rtcp",
kjellander2f1a5552017-02-27 15:57:45 -080067 "../modules/utility",
Peter Boström5c389d32015-09-25 13:58:30 +020068 "../system_wrappers",
katrielc14897d02016-06-03 13:14:28 -070069 "../video",
Peter Boström5c389d32015-09-25 13:58:30 +020070 ]
71}
Peter Boström02083222016-06-14 12:52:54 +020072
73if (rtc_include_tests) {
ehmaldonado38a21322016-09-02 04:10:34 -070074 rtc_source_set("call_tests") {
Peter Boström02083222016-06-14 12:52:54 +020075 testonly = true
kjellandere0629c02017-04-25 04:04:50 -070076
77 # Skip restricting visibility on mobile platforms since the tests on those
78 # gets additional generated targets which would require many lines here to
79 # cover (which would be confusing to read and hard to maintain).
80 if (!is_android && !is_ios) {
81 visibility = [ "//webrtc:video_engine_tests" ]
82 }
Peter Boström02083222016-06-14 12:52:54 +020083 sources = [
84 "bitrate_allocator_unittest.cc",
85 "bitrate_estimator_tests.cc",
86 "call_unittest.cc",
brandtr76648da2016-10-20 04:54:48 -070087 "flexfec_receive_stream_unittest.cc",
Peter Boström02083222016-06-14 12:52:54 +020088 ]
89 deps = [
90 ":call",
aleloi10111bc2016-11-17 06:48:48 -080091 "../base:rtc_base_approved",
kjellander2f1a5552017-02-27 15:57:45 -080092 "../logging:rtc_event_log_api",
aleloidd310712016-11-17 06:28:59 -080093 "../modules/audio_device:mock_audio_device",
aleloi10111bc2016-11-17 06:48:48 -080094 "../modules/audio_mixer",
kjellander2f1a5552017-02-27 15:57:45 -080095 "../modules/bitrate_controller",
zstein7cb69d52017-05-08 11:52:38 -070096 "../modules/congestion_controller:mock_congestion_controller",
kjellander2f1a5552017-02-27 15:57:45 -080097 "../modules/pacing",
98 "../modules/rtp_rtcp",
99 "../system_wrappers",
kwiberg37e99fd2017-04-10 05:15:48 -0700100 "../test:audio_codec_mocks",
kjellander2f1a5552017-02-27 15:57:45 -0800101 "../test:direct_transport",
aleloi10111bc2016-11-17 06:48:48 -0800102 "../test:test_common",
kjellander2f1a5552017-02-27 15:57:45 -0800103 "../test:test_support",
104 "../test:video_test_common",
Peter Boström02083222016-06-14 12:52:54 +0200105 "//testing/gmock",
106 "//testing/gtest",
107 ]
kjellandere40a7ee2016-10-16 23:56:12 -0700108 if (!build_with_chromium && is_clang) {
109 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -0700110 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
Peter Boström02083222016-06-14 12:52:54 +0200111 }
112 }
ehmaldonado021eef32017-01-05 07:09:50 -0800113
114 rtc_source_set("call_perf_tests") {
115 testonly = true
kjellandere0629c02017-04-25 04:04:50 -0700116
117 # Skip restricting visibility on mobile platforms since the tests on those
118 # gets additional generated targets which would require many lines here to
119 # cover (which would be confusing to read and hard to maintain).
120 if (!is_android && !is_ios) {
121 visibility = [ "//webrtc:webrtc_perf_tests" ]
122 }
ehmaldonado021eef32017-01-05 07:09:50 -0800123 sources = [
124 "call_perf_tests.cc",
125 "rampup_tests.cc",
126 "rampup_tests.h",
127 ]
128 deps = [
kjellander2f1a5552017-02-27 15:57:45 -0800129 ":call_interfaces",
130 "..:webrtc_common",
ossueb1fde42017-05-02 06:46:30 -0700131 "../api/audio_codecs:builtin_audio_encoder_factory",
kjellander2f1a5552017-02-27 15:57:45 -0800132 "../base:rtc_base_approved",
133 "../logging:rtc_event_log_api",
134 "../modules/audio_coding",
135 "../modules/audio_mixer:audio_mixer_impl",
136 "../modules/rtp_rtcp",
137 "../system_wrappers",
138 "../system_wrappers:metrics_default",
139 "../test:direct_transport",
perkj16ccfdf2017-02-28 14:41:05 -0800140 "../test:fake_audio_device",
kjellander2f1a5552017-02-27 15:57:45 -0800141 "../test:test_support",
142 "../test:video_test_common",
143 "../video",
144 "../voice_engine",
ehmaldonado021eef32017-01-05 07:09:50 -0800145 "//testing/gtest",
sprangc5d62e22017-04-02 23:53:04 -0700146 "//webrtc/test:field_trial",
ehmaldonado021eef32017-01-05 07:09:50 -0800147 "//webrtc/test:test_common",
148 ]
149 if (!build_with_chromium && is_clang) {
150 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
151 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
152 }
153 }
Peter Boström02083222016-06-14 12:52:54 +0200154}