blob: 7caad9638b17e95112d235b779facdfb1c849056 [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 = [
nissed76b7b22017-06-01 04:02:35 -070023 ":rtp_interfaces",
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
nissed76b7b22017-06-01 04:02:35 -070035# TODO(nisse): These RTP targets should be moved elsewhere
36# when interfaces have stabilized.
37rtc_source_set("rtp_interfaces") {
38 sources = [
39 "rtp_packet_sink_interface.h",
40 "rtp_transport_controller_send_interface.h",
41 ]
42}
43
44rtc_source_set("rtp_receiver") {
45 sources = [
46 "rtp_demuxer.cc",
47 "rtp_demuxer.h",
48 "rtx_receive_stream.cc",
49 "rtx_receive_stream.h",
50 ]
51 deps = [
52 ":rtp_interfaces",
53 "../base:rtc_base_approved",
54 "../modules/rtp_rtcp",
55 ]
56}
57
58rtc_source_set("rtp_sender") {
59 sources = [
60 "rtp_transport_controller_send.cc",
61 "rtp_transport_controller_send.h",
62 ]
63 deps = [
64 ":rtp_interfaces",
65 "../base:rtc_base_approved",
66 "../modules/congestion_controller",
67 ]
68}
69
kjellanderb62dbbe2016-09-23 00:38:52 -070070rtc_static_library("call") {
Peter Boström5c389d32015-09-25 13:58:30 +020071 sources = [
mflodman0e7e2592015-11-12 21:02:42 -080072 "bitrate_allocator.cc",
Peter Boström5c389d32015-09-25 13:58:30 +020073 "call.cc",
brandtr7250b392016-12-19 01:13:46 -080074 "flexfec_receive_stream_impl.cc",
75 "flexfec_receive_stream_impl.h",
Peter Boström5c389d32015-09-25 13:58:30 +020076 ]
77
kjellandere40a7ee2016-10-16 23:56:12 -070078 if (!build_with_chromium && is_clang) {
79 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -070080 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
Peter Boström5c389d32015-09-25 13:58:30 +020081 }
82
aleloidd310712016-11-17 06:28:59 -080083 public_deps = [
ossuf515ab82016-12-07 04:52:58 -080084 ":call_interfaces",
aleloidd310712016-11-17 06:28:59 -080085 "../api:call_api",
86 ]
87
Peter Boström5c389d32015-09-25 13:58:30 +020088 deps = [
ossuf515ab82016-12-07 04:52:58 -080089 ":call_interfaces",
nissed76b7b22017-06-01 04:02:35 -070090 ":rtp_interfaces",
91 ":rtp_receiver",
92 ":rtp_sender",
Peter Boström5c389d32015-09-25 13:58:30 +020093 "..:webrtc_common",
aleloia8eb7562016-11-28 07:02:13 -080094 "../api:transport_api",
katrielc14897d02016-06-03 13:14:28 -070095 "../audio",
perkj26091b12016-09-01 01:17:40 -070096 "../base:rtc_task_queue",
kjellander2f1a5552017-02-27 15:57:45 -080097 "../logging:rtc_event_log_api",
skvladcc91d282016-10-03 18:31:22 -070098 "../logging:rtc_event_log_impl",
kjellander2f1a5552017-02-27 15:57:45 -080099 "../modules/bitrate_controller",
Stefan Holmer80e12072016-02-23 13:30:42 +0100100 "../modules/congestion_controller",
kjellander2f1a5552017-02-27 15:57:45 -0800101 "../modules/pacing",
Peter Boström5c389d32015-09-25 13:58:30 +0200102 "../modules/rtp_rtcp",
kjellander2f1a5552017-02-27 15:57:45 -0800103 "../modules/utility",
Peter Boström5c389d32015-09-25 13:58:30 +0200104 "../system_wrappers",
katrielc14897d02016-06-03 13:14:28 -0700105 "../video",
Peter Boström5c389d32015-09-25 13:58:30 +0200106 ]
107}
Peter Boström02083222016-06-14 12:52:54 +0200108
109if (rtc_include_tests) {
ehmaldonado38a21322016-09-02 04:10:34 -0700110 rtc_source_set("call_tests") {
Peter Boström02083222016-06-14 12:52:54 +0200111 testonly = true
kjellandere0629c02017-04-25 04:04:50 -0700112
113 # Skip restricting visibility on mobile platforms since the tests on those
114 # gets additional generated targets which would require many lines here to
115 # cover (which would be confusing to read and hard to maintain).
116 if (!is_android && !is_ios) {
117 visibility = [ "//webrtc:video_engine_tests" ]
118 }
Peter Boström02083222016-06-14 12:52:54 +0200119 sources = [
120 "bitrate_allocator_unittest.cc",
121 "bitrate_estimator_tests.cc",
122 "call_unittest.cc",
brandtr76648da2016-10-20 04:54:48 -0700123 "flexfec_receive_stream_unittest.cc",
eladalon760a0762017-05-31 09:12:25 -0700124 "rtp_demuxer_unittest.cc",
nisseeed52bf2017-05-19 06:15:19 -0700125 "rtx_receive_stream_unittest.cc",
Peter Boström02083222016-06-14 12:52:54 +0200126 ]
127 deps = [
128 ":call",
nissed76b7b22017-06-01 04:02:35 -0700129 ":rtp_interfaces",
130 ":rtp_receiver",
131 ":rtp_sender",
ossuc3d4b482017-05-23 06:07:11 -0700132 "../api:mock_audio_mixer",
aleloi10111bc2016-11-17 06:48:48 -0800133 "../base:rtc_base_approved",
kjellander2f1a5552017-02-27 15:57:45 -0800134 "../logging:rtc_event_log_api",
aleloidd310712016-11-17 06:28:59 -0800135 "../modules/audio_device:mock_audio_device",
aleloi10111bc2016-11-17 06:48:48 -0800136 "../modules/audio_mixer",
kjellander2f1a5552017-02-27 15:57:45 -0800137 "../modules/bitrate_controller",
zstein7cb69d52017-05-08 11:52:38 -0700138 "../modules/congestion_controller:mock_congestion_controller",
kjellander2f1a5552017-02-27 15:57:45 -0800139 "../modules/pacing",
140 "../modules/rtp_rtcp",
danilchap2d9d21f2017-05-10 08:41:13 -0700141 "../modules/rtp_rtcp:mock_rtp_rtcp",
kjellander2f1a5552017-02-27 15:57:45 -0800142 "../system_wrappers",
kwiberg37e99fd2017-04-10 05:15:48 -0700143 "../test:audio_codec_mocks",
kjellander2f1a5552017-02-27 15:57:45 -0800144 "../test:direct_transport",
aleloi10111bc2016-11-17 06:48:48 -0800145 "../test:test_common",
kjellander2f1a5552017-02-27 15:57:45 -0800146 "../test:test_support",
147 "../test:video_test_common",
Peter Boström02083222016-06-14 12:52:54 +0200148 "//testing/gmock",
149 "//testing/gtest",
150 ]
kjellandere40a7ee2016-10-16 23:56:12 -0700151 if (!build_with_chromium && is_clang) {
152 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -0700153 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
Peter Boström02083222016-06-14 12:52:54 +0200154 }
155 }
ehmaldonado021eef32017-01-05 07:09:50 -0800156
157 rtc_source_set("call_perf_tests") {
158 testonly = true
kjellandere0629c02017-04-25 04:04:50 -0700159
160 # Skip restricting visibility on mobile platforms since the tests on those
161 # gets additional generated targets which would require many lines here to
162 # cover (which would be confusing to read and hard to maintain).
163 if (!is_android && !is_ios) {
164 visibility = [ "//webrtc:webrtc_perf_tests" ]
165 }
ehmaldonado021eef32017-01-05 07:09:50 -0800166 sources = [
167 "call_perf_tests.cc",
168 "rampup_tests.cc",
169 "rampup_tests.h",
170 ]
171 deps = [
kjellander2f1a5552017-02-27 15:57:45 -0800172 ":call_interfaces",
173 "..:webrtc_common",
ossueb1fde42017-05-02 06:46:30 -0700174 "../api/audio_codecs:builtin_audio_encoder_factory",
kjellander2f1a5552017-02-27 15:57:45 -0800175 "../base:rtc_base_approved",
176 "../logging:rtc_event_log_api",
177 "../modules/audio_coding",
178 "../modules/audio_mixer:audio_mixer_impl",
179 "../modules/rtp_rtcp",
180 "../system_wrappers",
181 "../system_wrappers:metrics_default",
182 "../test:direct_transport",
perkj16ccfdf2017-02-28 14:41:05 -0800183 "../test:fake_audio_device",
kjellander2f1a5552017-02-27 15:57:45 -0800184 "../test:test_support",
185 "../test:video_test_common",
186 "../video",
187 "../voice_engine",
ehmaldonado021eef32017-01-05 07:09:50 -0800188 "//testing/gtest",
sprangc5d62e22017-04-02 23:53:04 -0700189 "//webrtc/test:field_trial",
ehmaldonado021eef32017-01-05 07:09:50 -0800190 "//webrtc/test:test_common",
191 ]
192 if (!build_with_chromium && is_clang) {
193 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
194 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
195 }
196 }
Peter Boström02083222016-06-14 12:52:54 +0200197}