blob: 7bd01048df6b0c53ad8bf821ae7c9891df74579c [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",
zhihuang38ede132017-06-15 12:52:32 -070018 "callfactoryinterface.h",
brandtr7250b392016-12-19 01:13:46 -080019 "flexfec_receive_stream.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 = [
nissed76b7b22017-06-01 04:02:35 -070024 ":rtp_interfaces",
mbonadei81c79f52017-04-25 23:42:15 -070025 "..:video_stream_api",
kjellander2f1a5552017-02-27 15:57:45 -080026 "..:webrtc_common",
27 "../api:audio_mixer_api",
hbos8d609f62017-04-10 07:39:05 -070028 "../api:libjingle_peerconnection_api",
kjellander2f1a5552017-02-27 15:57:45 -080029 "../api:transport_api",
30 "../api/audio_codecs:audio_codecs_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -070031 "../rtc_base:rtc_base",
32 "../rtc_base:rtc_base_approved",
kjellander2f1a5552017-02-27 15:57:45 -080033 ]
ossuf515ab82016-12-07 04:52:58 -080034}
35
nissed76b7b22017-06-01 04:02:35 -070036# TODO(nisse): These RTP targets should be moved elsewhere
eladalone2173d92017-07-28 10:05:45 -070037# when interfaces have stabilized. See also TODO for |mock_rtp_interfaces|.
nissed76b7b22017-06-01 04:02:35 -070038rtc_source_set("rtp_interfaces") {
39 sources = [
eladalona52722f2017-06-26 11:23:54 -070040 "rtcp_packet_sink_interface.h",
nissed76b7b22017-06-01 04:02:35 -070041 "rtp_packet_sink_interface.h",
nisse0f15f922017-06-21 01:05:22 -070042 "rtp_stream_receiver_controller_interface.h",
nissed76b7b22017-06-01 04:02:35 -070043 "rtp_transport_controller_send_interface.h",
44 ]
eladalona52722f2017-06-26 11:23:54 -070045 deps = [
ehmaldonadof6a861a2017-07-19 10:40:47 -070046 "../rtc_base:rtc_base_approved",
eladalona52722f2017-06-26 11:23:54 -070047 ]
nissed76b7b22017-06-01 04:02:35 -070048}
49
50rtc_source_set("rtp_receiver") {
51 sources = [
eladalona52722f2017-06-26 11:23:54 -070052 "rsid_resolution_observer.h",
53 "rtcp_demuxer.cc",
54 "rtcp_demuxer.h",
nissed76b7b22017-06-01 04:02:35 -070055 "rtp_demuxer.cc",
56 "rtp_demuxer.h",
eladalona52722f2017-06-26 11:23:54 -070057 "rtp_rtcp_demuxer_helper.cc",
58 "rtp_rtcp_demuxer_helper.h",
nisse0f15f922017-06-21 01:05:22 -070059 "rtp_stream_receiver_controller.cc",
60 "rtp_stream_receiver_controller.h",
nissed76b7b22017-06-01 04:02:35 -070061 "rtx_receive_stream.cc",
62 "rtx_receive_stream.h",
63 ]
64 deps = [
65 ":rtp_interfaces",
eladalona52722f2017-06-26 11:23:54 -070066 "..:webrtc_common",
nissed76b7b22017-06-01 04:02:35 -070067 "../modules/rtp_rtcp",
ehmaldonadof6a861a2017-07-19 10:40:47 -070068 "../rtc_base:rtc_base_approved",
nissed76b7b22017-06-01 04:02:35 -070069 ]
70}
71
72rtc_source_set("rtp_sender") {
73 sources = [
74 "rtp_transport_controller_send.cc",
75 "rtp_transport_controller_send.h",
76 ]
77 deps = [
78 ":rtp_interfaces",
sprangdb2a9fc2017-08-09 06:42:32 -070079 "..:webrtc_common",
nissed76b7b22017-06-01 04:02:35 -070080 "../modules/congestion_controller",
ehmaldonadof6a861a2017-07-19 10:40:47 -070081 "../rtc_base:rtc_base_approved",
nissed76b7b22017-06-01 04:02:35 -070082 ]
83}
84
kjellanderb62dbbe2016-09-23 00:38:52 -070085rtc_static_library("call") {
Peter Boström5c389d32015-09-25 13:58:30 +020086 sources = [
mflodman0e7e2592015-11-12 21:02:42 -080087 "bitrate_allocator.cc",
Peter Boström5c389d32015-09-25 13:58:30 +020088 "call.cc",
zhihuang38ede132017-06-15 12:52:32 -070089 "callfactory.cc",
90 "callfactory.h",
brandtr7250b392016-12-19 01:13:46 -080091 "flexfec_receive_stream_impl.cc",
92 "flexfec_receive_stream_impl.h",
Peter Boström5c389d32015-09-25 13:58:30 +020093 ]
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öm5c389d32015-09-25 13:58:30 +020098 }
99
aleloidd310712016-11-17 06:28:59 -0800100 public_deps = [
ossuf515ab82016-12-07 04:52:58 -0800101 ":call_interfaces",
aleloidd310712016-11-17 06:28:59 -0800102 "../api:call_api",
103 ]
104
Peter Boström5c389d32015-09-25 13:58:30 +0200105 deps = [
ossuf515ab82016-12-07 04:52:58 -0800106 ":call_interfaces",
nissed76b7b22017-06-01 04:02:35 -0700107 ":rtp_interfaces",
108 ":rtp_receiver",
109 ":rtp_sender",
Peter Boström5c389d32015-09-25 13:58:30 +0200110 "..:webrtc_common",
aleloia8eb7562016-11-28 07:02:13 -0800111 "../api:transport_api",
katrielc14897d02016-06-03 13:14:28 -0700112 "../audio",
kjellander2f1a5552017-02-27 15:57:45 -0800113 "../logging:rtc_event_log_api",
skvladcc91d282016-10-03 18:31:22 -0700114 "../logging:rtc_event_log_impl",
kjellander2f1a5552017-02-27 15:57:45 -0800115 "../modules/bitrate_controller",
Stefan Holmer80e12072016-02-23 13:30:42 +0100116 "../modules/congestion_controller",
kjellander2f1a5552017-02-27 15:57:45 -0800117 "../modules/pacing",
Peter Boström5c389d32015-09-25 13:58:30 +0200118 "../modules/rtp_rtcp",
kjellander2f1a5552017-02-27 15:57:45 -0800119 "../modules/utility",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700120 "../rtc_base:rtc_task_queue",
Peter Boström5c389d32015-09-25 13:58:30 +0200121 "../system_wrappers",
katrielc14897d02016-06-03 13:14:28 -0700122 "../video",
Peter Boström5c389d32015-09-25 13:58:30 +0200123 ]
124}
Peter Boström02083222016-06-14 12:52:54 +0200125
126if (rtc_include_tests) {
ehmaldonado38a21322016-09-02 04:10:34 -0700127 rtc_source_set("call_tests") {
Peter Boström02083222016-06-14 12:52:54 +0200128 testonly = true
kjellandere0629c02017-04-25 04:04:50 -0700129
130 # Skip restricting visibility on mobile platforms since the tests on those
131 # gets additional generated targets which would require many lines here to
132 # cover (which would be confusing to read and hard to maintain).
133 if (!is_android && !is_ios) {
jianjun.zhuc0247402017-07-11 06:20:45 -0700134 visibility = [ "..:video_engine_tests" ]
kjellandere0629c02017-04-25 04:04:50 -0700135 }
Peter Boström02083222016-06-14 12:52:54 +0200136 sources = [
137 "bitrate_allocator_unittest.cc",
138 "bitrate_estimator_tests.cc",
139 "call_unittest.cc",
brandtr76648da2016-10-20 04:54:48 -0700140 "flexfec_receive_stream_unittest.cc",
eladalona52722f2017-06-26 11:23:54 -0700141 "rtcp_demuxer_unittest.cc",
eladalon760a0762017-05-31 09:12:25 -0700142 "rtp_demuxer_unittest.cc",
eladalona52722f2017-06-26 11:23:54 -0700143 "rtp_rtcp_demuxer_helper_unittest.cc",
nisseeed52bf2017-05-19 06:15:19 -0700144 "rtx_receive_stream_unittest.cc",
Peter Boström02083222016-06-14 12:52:54 +0200145 ]
146 deps = [
147 ":call",
eladalone2173d92017-07-28 10:05:45 -0700148 ":mock_rtp_interfaces",
nissed76b7b22017-06-01 04:02:35 -0700149 ":rtp_interfaces",
150 ":rtp_receiver",
151 ":rtp_sender",
eladalona52722f2017-06-26 11:23:54 -0700152 "..:webrtc_common",
ossuc3d4b482017-05-23 06:07:11 -0700153 "../api:mock_audio_mixer",
kjellander2f1a5552017-02-27 15:57:45 -0800154 "../logging:rtc_event_log_api",
aleloidd310712016-11-17 06:28:59 -0800155 "../modules/audio_device:mock_audio_device",
aleloi10111bc2016-11-17 06:48:48 -0800156 "../modules/audio_mixer",
kjellander2f1a5552017-02-27 15:57:45 -0800157 "../modules/bitrate_controller",
zstein7cb69d52017-05-08 11:52:38 -0700158 "../modules/congestion_controller:mock_congestion_controller",
kjellander2f1a5552017-02-27 15:57:45 -0800159 "../modules/pacing",
160 "../modules/rtp_rtcp",
danilchap2d9d21f2017-05-10 08:41:13 -0700161 "../modules/rtp_rtcp:mock_rtp_rtcp",
mbonadei5166e542017-08-03 05:57:11 -0700162 "../modules/utility:mock_process_thread",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700163 "../rtc_base:rtc_base_approved",
kjellander2f1a5552017-02-27 15:57:45 -0800164 "../system_wrappers",
kwiberg37e99fd2017-04-10 05:15:48 -0700165 "../test:audio_codec_mocks",
kjellander2f1a5552017-02-27 15:57:45 -0800166 "../test:direct_transport",
aleloi10111bc2016-11-17 06:48:48 -0800167 "../test:test_common",
kjellander2f1a5552017-02-27 15:57:45 -0800168 "../test:test_support",
169 "../test:video_test_common",
Peter Boström02083222016-06-14 12:52:54 +0200170 "//testing/gmock",
171 "//testing/gtest",
172 ]
kjellandere40a7ee2016-10-16 23:56:12 -0700173 if (!build_with_chromium && is_clang) {
174 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -0700175 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
Peter Boström02083222016-06-14 12:52:54 +0200176 }
177 }
ehmaldonado021eef32017-01-05 07:09:50 -0800178
179 rtc_source_set("call_perf_tests") {
180 testonly = true
kjellandere0629c02017-04-25 04:04:50 -0700181
182 # Skip restricting visibility on mobile platforms since the tests on those
183 # gets additional generated targets which would require many lines here to
184 # cover (which would be confusing to read and hard to maintain).
185 if (!is_android && !is_ios) {
jianjun.zhuc0247402017-07-11 06:20:45 -0700186 visibility = [ "..:webrtc_perf_tests" ]
kjellandere0629c02017-04-25 04:04:50 -0700187 }
ehmaldonado021eef32017-01-05 07:09:50 -0800188 sources = [
189 "call_perf_tests.cc",
190 "rampup_tests.cc",
191 "rampup_tests.h",
192 ]
193 deps = [
kjellander2f1a5552017-02-27 15:57:45 -0800194 ":call_interfaces",
195 "..:webrtc_common",
ossueb1fde42017-05-02 06:46:30 -0700196 "../api/audio_codecs:builtin_audio_encoder_factory",
kjellander2f1a5552017-02-27 15:57:45 -0800197 "../logging:rtc_event_log_api",
198 "../modules/audio_coding",
199 "../modules/audio_mixer:audio_mixer_impl",
200 "../modules/rtp_rtcp",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700201 "../rtc_base:rtc_base_approved",
kjellander2f1a5552017-02-27 15:57:45 -0800202 "../system_wrappers",
203 "../system_wrappers:metrics_default",
204 "../test:direct_transport",
perkj16ccfdf2017-02-28 14:41:05 -0800205 "../test:fake_audio_device",
jianjun.zhuc0247402017-07-11 06:20:45 -0700206 "../test:field_trial",
207 "../test:test_common",
kjellander2f1a5552017-02-27 15:57:45 -0800208 "../test:test_support",
209 "../test:video_test_common",
210 "../video",
211 "../voice_engine",
ehmaldonado021eef32017-01-05 07:09:50 -0800212 "//testing/gtest",
ehmaldonado021eef32017-01-05 07:09:50 -0800213 ]
214 if (!build_with_chromium && is_clang) {
215 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
216 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
217 }
218 }
eladalone2173d92017-07-28 10:05:45 -0700219
220 # TODO(eladalon): This should be moved, as with the TODO for |rtp_interfaces|.
221 rtc_source_set("mock_rtp_interfaces") {
222 testonly = true
223
224 sources = [
225 "test/mock_rtp_packet_sink_interface.h",
226 ]
227 deps = [
228 ":rtp_interfaces",
229 "../test:test_support",
230 "//testing/gmock",
231 ]
232 }
Peter Boström02083222016-06-14 12:52:54 +0200233}