Peter Boström | bf9f73c | 2015-09-25 11:58:30 | [diff] [blame] | 1 | # 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 | |
mbonadei | 90cc2a9 | 2017-01-24 14:58:22 | [diff] [blame] | 9 | import("../webrtc.gni") |
Peter Boström | bf9f73c | 2015-09-25 11:58:30 | [diff] [blame] | 10 | |
ossu | 31212ba | 2016-12-07 12:52:58 | [diff] [blame] | 11 | rtc_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", |
zhihuang | f91805c | 2017-06-15 19:52:32 | [diff] [blame] | 18 | "callfactoryinterface.h", |
brandtr | 02a6431 | 2016-12-19 09:13:46 | [diff] [blame] | 19 | "flexfec_receive_stream.h", |
solenberg | 9551ae0 | 2017-01-31 11:58:40 | [diff] [blame] | 20 | "syncable.cc", |
| 21 | "syncable.h", |
ossu | 31212ba | 2016-12-07 12:52:58 | [diff] [blame] | 22 | ] |
kjellander | 388c1df | 2017-02-27 23:57:45 | [diff] [blame] | 23 | deps = [ |
nisse | 2d1de82 | 2017-06-01 11:02:35 | [diff] [blame] | 24 | ":rtp_interfaces", |
aleloi | f0c86c0 | 2017-08-22 12:43:23 | [diff] [blame] | 25 | ":video_stream_api", |
kjellander | 388c1df | 2017-02-27 23:57:45 | [diff] [blame] | 26 | "..:webrtc_common", |
| 27 | "../api:audio_mixer_api", |
hbos | 69579d7 | 2017-04-10 14:39:05 | [diff] [blame] | 28 | "../api:libjingle_peerconnection_api", |
kwiberg | 5b18967 | 2017-09-05 15:43:13 | [diff] [blame] | 29 | "../api:optional", |
kjellander | 388c1df | 2017-02-27 23:57:45 | [diff] [blame] | 30 | "../api:transport_api", |
| 31 | "../api/audio_codecs:audio_codecs_api", |
ehmaldonado | 2bc62f3 | 2017-07-19 17:40:47 | [diff] [blame] | 32 | "../rtc_base:rtc_base", |
| 33 | "../rtc_base:rtc_base_approved", |
kjellander | 388c1df | 2017-02-27 23:57:45 | [diff] [blame] | 34 | ] |
ossu | 31212ba | 2016-12-07 12:52:58 | [diff] [blame] | 35 | } |
| 36 | |
nisse | 2d1de82 | 2017-06-01 11:02:35 | [diff] [blame] | 37 | # TODO(nisse): These RTP targets should be moved elsewhere |
eladalon | 5fb3e75 | 2017-07-28 17:05:45 | [diff] [blame] | 38 | # when interfaces have stabilized. See also TODO for |mock_rtp_interfaces|. |
nisse | 2d1de82 | 2017-06-01 11:02:35 | [diff] [blame] | 39 | rtc_source_set("rtp_interfaces") { |
| 40 | sources = [ |
eladalon | 9ae9fd9 | 2017-06-26 18:23:54 | [diff] [blame] | 41 | "rtcp_packet_sink_interface.h", |
Stefan Holmer | 36189cd | 2017-09-01 13:29:28 | [diff] [blame] | 42 | "rtp_config.cc", |
| 43 | "rtp_config.h", |
nisse | 2d1de82 | 2017-06-01 11:02:35 | [diff] [blame] | 44 | "rtp_packet_sink_interface.h", |
nisse | 04ef6b0 | 2017-06-21 08:05:22 | [diff] [blame] | 45 | "rtp_stream_receiver_controller_interface.h", |
nisse | 2d1de82 | 2017-06-01 11:02:35 | [diff] [blame] | 46 | "rtp_transport_controller_send_interface.h", |
| 47 | ] |
eladalon | 9ae9fd9 | 2017-06-26 18:23:54 | [diff] [blame] | 48 | deps = [ |
kwiberg | 23aa43d | 2017-09-04 12:43:17 | [diff] [blame] | 49 | "../api:array_view", |
ehmaldonado | 2bc62f3 | 2017-07-19 17:40:47 | [diff] [blame] | 50 | "../rtc_base:rtc_base_approved", |
eladalon | 9ae9fd9 | 2017-06-26 18:23:54 | [diff] [blame] | 51 | ] |
nisse | 2d1de82 | 2017-06-01 11:02:35 | [diff] [blame] | 52 | } |
| 53 | |
| 54 | rtc_source_set("rtp_receiver") { |
| 55 | sources = [ |
eladalon | 9ae9fd9 | 2017-06-26 18:23:54 | [diff] [blame] | 56 | "rtcp_demuxer.cc", |
| 57 | "rtcp_demuxer.h", |
nisse | 2d1de82 | 2017-06-01 11:02:35 | [diff] [blame] | 58 | "rtp_demuxer.cc", |
| 59 | "rtp_demuxer.h", |
eladalon | 9ae9fd9 | 2017-06-26 18:23:54 | [diff] [blame] | 60 | "rtp_rtcp_demuxer_helper.cc", |
| 61 | "rtp_rtcp_demuxer_helper.h", |
nisse | 04ef6b0 | 2017-06-21 08:05:22 | [diff] [blame] | 62 | "rtp_stream_receiver_controller.cc", |
| 63 | "rtp_stream_receiver_controller.h", |
nisse | 2d1de82 | 2017-06-01 11:02:35 | [diff] [blame] | 64 | "rtx_receive_stream.cc", |
| 65 | "rtx_receive_stream.h", |
Steve Anton | 6f7363f | 2017-08-17 22:23:51 | [diff] [blame] | 66 | "ssrc_binding_observer.h", |
nisse | 2d1de82 | 2017-06-01 11:02:35 | [diff] [blame] | 67 | ] |
| 68 | deps = [ |
| 69 | ":rtp_interfaces", |
eladalon | 9ae9fd9 | 2017-06-26 18:23:54 | [diff] [blame] | 70 | "..:webrtc_common", |
kwiberg | 23aa43d | 2017-09-04 12:43:17 | [diff] [blame] | 71 | "../api:array_view", |
kwiberg | 5b18967 | 2017-09-05 15:43:13 | [diff] [blame] | 72 | "../api:optional", |
nisse | 2d1de82 | 2017-06-01 11:02:35 | [diff] [blame] | 73 | "../modules/rtp_rtcp", |
ehmaldonado | 2bc62f3 | 2017-07-19 17:40:47 | [diff] [blame] | 74 | "../rtc_base:rtc_base_approved", |
nisse | 2d1de82 | 2017-06-01 11:02:35 | [diff] [blame] | 75 | ] |
| 76 | } |
| 77 | |
| 78 | rtc_source_set("rtp_sender") { |
| 79 | sources = [ |
| 80 | "rtp_transport_controller_send.cc", |
| 81 | "rtp_transport_controller_send.h", |
| 82 | ] |
| 83 | deps = [ |
| 84 | ":rtp_interfaces", |
sprang | 6ab33cf | 2017-08-09 13:42:32 | [diff] [blame] | 85 | "..:webrtc_common", |
nisse | 2d1de82 | 2017-06-01 11:02:35 | [diff] [blame] | 86 | "../modules/congestion_controller", |
ehmaldonado | 2bc62f3 | 2017-07-19 17:40:47 | [diff] [blame] | 87 | "../rtc_base:rtc_base_approved", |
nisse | 2d1de82 | 2017-06-01 11:02:35 | [diff] [blame] | 88 | ] |
| 89 | } |
| 90 | |
kjellander | 2cf29b5 | 2016-09-23 07:38:52 | [diff] [blame] | 91 | rtc_static_library("call") { |
Peter Boström | bf9f73c | 2015-09-25 11:58:30 | [diff] [blame] | 92 | sources = [ |
mflodman | 1b78cc3 | 2015-11-13 05:02:42 | [diff] [blame] | 93 | "bitrate_allocator.cc", |
Peter Boström | bf9f73c | 2015-09-25 11:58:30 | [diff] [blame] | 94 | "call.cc", |
zhihuang | f91805c | 2017-06-15 19:52:32 | [diff] [blame] | 95 | "callfactory.cc", |
| 96 | "callfactory.h", |
brandtr | 02a6431 | 2016-12-19 09:13:46 | [diff] [blame] | 97 | "flexfec_receive_stream_impl.cc", |
| 98 | "flexfec_receive_stream_impl.h", |
Peter Boström | bf9f73c | 2015-09-25 11:58:30 | [diff] [blame] | 99 | ] |
| 100 | |
kjellander | a6c6623 | 2016-10-17 06:56:12 | [diff] [blame] | 101 | if (!build_with_chromium && is_clang) { |
| 102 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | f0532f3 | 2016-09-02 11:10:34 | [diff] [blame] | 103 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
Peter Boström | bf9f73c | 2015-09-25 11:58:30 | [diff] [blame] | 104 | } |
| 105 | |
aleloi | 7713f33 | 2016-11-17 14:28:59 | [diff] [blame] | 106 | public_deps = [ |
ossu | 31212ba | 2016-12-07 12:52:58 | [diff] [blame] | 107 | ":call_interfaces", |
aleloi | 7713f33 | 2016-11-17 14:28:59 | [diff] [blame] | 108 | "../api:call_api", |
Stefan Holmer | 36189cd | 2017-09-01 13:29:28 | [diff] [blame] | 109 | "../api:libjingle_peerconnection_api", |
aleloi | 7713f33 | 2016-11-17 14:28:59 | [diff] [blame] | 110 | ] |
| 111 | |
Peter Boström | bf9f73c | 2015-09-25 11:58:30 | [diff] [blame] | 112 | deps = [ |
ossu | 31212ba | 2016-12-07 12:52:58 | [diff] [blame] | 113 | ":call_interfaces", |
nisse | 2d1de82 | 2017-06-01 11:02:35 | [diff] [blame] | 114 | ":rtp_interfaces", |
| 115 | ":rtp_receiver", |
| 116 | ":rtp_sender", |
Stefan Holmer | 36189cd | 2017-09-01 13:29:28 | [diff] [blame] | 117 | ":video_stream_api", |
Peter Boström | bf9f73c | 2015-09-25 11:58:30 | [diff] [blame] | 118 | "..:webrtc_common", |
kwiberg | 5b18967 | 2017-09-05 15:43:13 | [diff] [blame] | 119 | "../api:optional", |
aleloi | 017ebe5 | 2016-11-28 15:02:13 | [diff] [blame] | 120 | "../api:transport_api", |
katrielc | eaeea5b | 2016-06-03 20:14:28 | [diff] [blame] | 121 | "../audio", |
kjellander | 388c1df | 2017-02-27 23:57:45 | [diff] [blame] | 122 | "../logging:rtc_event_log_api", |
skvlad | e59b6ff | 2016-10-04 01:31:22 | [diff] [blame] | 123 | "../logging:rtc_event_log_impl", |
kjellander | 388c1df | 2017-02-27 23:57:45 | [diff] [blame] | 124 | "../modules/bitrate_controller", |
Stefan Holmer | ead3cf2 | 2016-02-23 12:30:42 | [diff] [blame] | 125 | "../modules/congestion_controller", |
kjellander | 388c1df | 2017-02-27 23:57:45 | [diff] [blame] | 126 | "../modules/pacing", |
Peter Boström | bf9f73c | 2015-09-25 11:58:30 | [diff] [blame] | 127 | "../modules/rtp_rtcp", |
kjellander | 388c1df | 2017-02-27 23:57:45 | [diff] [blame] | 128 | "../modules/utility", |
mbonadei | c205a94 | 2017-08-28 06:40:10 | [diff] [blame] | 129 | "../rtc_base:rtc_base_approved", |
ehmaldonado | 2bc62f3 | 2017-07-19 17:40:47 | [diff] [blame] | 130 | "../rtc_base:rtc_task_queue", |
eladalon | 8c7e2bd | 2017-08-18 09:47:08 | [diff] [blame] | 131 | "../rtc_base:sequenced_task_checker", |
Peter Boström | bf9f73c | 2015-09-25 11:58:30 | [diff] [blame] | 132 | "../system_wrappers", |
katrielc | eaeea5b | 2016-06-03 20:14:28 | [diff] [blame] | 133 | "../video", |
Peter Boström | bf9f73c | 2015-09-25 11:58:30 | [diff] [blame] | 134 | ] |
| 135 | } |
Peter Boström | c9da01c | 2016-06-14 10:52:54 | [diff] [blame] | 136 | |
aleloi | f0c86c0 | 2017-08-22 12:43:23 | [diff] [blame] | 137 | rtc_source_set("video_stream_api") { |
| 138 | sources = [ |
Stefan Holmer | 36189cd | 2017-09-01 13:29:28 | [diff] [blame] | 139 | "video_config.cc", |
| 140 | "video_config.h", |
aleloi | f0c86c0 | 2017-08-22 12:43:23 | [diff] [blame] | 141 | "video_receive_stream.cc", |
| 142 | "video_receive_stream.h", |
| 143 | "video_send_stream.cc", |
| 144 | "video_send_stream.h", |
| 145 | ] |
| 146 | deps = [ |
Stefan Holmer | 36189cd | 2017-09-01 13:29:28 | [diff] [blame] | 147 | ":rtp_interfaces", |
aleloi | f0c86c0 | 2017-08-22 12:43:23 | [diff] [blame] | 148 | "../:webrtc_common", |
Stefan Holmer | 36189cd | 2017-09-01 13:29:28 | [diff] [blame] | 149 | "../api:libjingle_peerconnection_api", |
kwiberg | 5b18967 | 2017-09-05 15:43:13 | [diff] [blame] | 150 | "../api:optional", |
aleloi | f0c86c0 | 2017-08-22 12:43:23 | [diff] [blame] | 151 | "../api:transport_api", |
| 152 | "../common_video:common_video", |
| 153 | "../rtc_base:rtc_base_approved", |
| 154 | ] |
| 155 | } |
| 156 | |
Peter Boström | c9da01c | 2016-06-14 10:52:54 | [diff] [blame] | 157 | if (rtc_include_tests) { |
ehmaldonado | f0532f3 | 2016-09-02 11:10:34 | [diff] [blame] | 158 | rtc_source_set("call_tests") { |
Peter Boström | c9da01c | 2016-06-14 10:52:54 | [diff] [blame] | 159 | testonly = true |
kjellander | 9cdb538 | 2017-04-25 11:04:50 | [diff] [blame] | 160 | |
| 161 | # Skip restricting visibility on mobile platforms since the tests on those |
| 162 | # gets additional generated targets which would require many lines here to |
| 163 | # cover (which would be confusing to read and hard to maintain). |
| 164 | if (!is_android && !is_ios) { |
jianjun.zhu | 59d5575 | 2017-07-11 13:20:45 | [diff] [blame] | 165 | visibility = [ "..:video_engine_tests" ] |
kjellander | 9cdb538 | 2017-04-25 11:04:50 | [diff] [blame] | 166 | } |
Peter Boström | c9da01c | 2016-06-14 10:52:54 | [diff] [blame] | 167 | sources = [ |
| 168 | "bitrate_allocator_unittest.cc", |
| 169 | "bitrate_estimator_tests.cc", |
| 170 | "call_unittest.cc", |
brandtr | 4e97439 | 2016-10-20 11:54:48 | [diff] [blame] | 171 | "flexfec_receive_stream_unittest.cc", |
eladalon | 9ae9fd9 | 2017-06-26 18:23:54 | [diff] [blame] | 172 | "rtcp_demuxer_unittest.cc", |
eladalon | baa253b | 2017-05-31 16:12:25 | [diff] [blame] | 173 | "rtp_demuxer_unittest.cc", |
eladalon | 9ae9fd9 | 2017-06-26 18:23:54 | [diff] [blame] | 174 | "rtp_rtcp_demuxer_helper_unittest.cc", |
nisse | 002b533 | 2017-05-19 13:15:19 | [diff] [blame] | 175 | "rtx_receive_stream_unittest.cc", |
Peter Boström | c9da01c | 2016-06-14 10:52:54 | [diff] [blame] | 176 | ] |
| 177 | deps = [ |
| 178 | ":call", |
eladalon | 5fb3e75 | 2017-07-28 17:05:45 | [diff] [blame] | 179 | ":mock_rtp_interfaces", |
nisse | 2d1de82 | 2017-06-01 11:02:35 | [diff] [blame] | 180 | ":rtp_interfaces", |
| 181 | ":rtp_receiver", |
| 182 | ":rtp_sender", |
eladalon | 9ae9fd9 | 2017-06-26 18:23:54 | [diff] [blame] | 183 | "..:webrtc_common", |
kwiberg | 23aa43d | 2017-09-04 12:43:17 | [diff] [blame] | 184 | "../api:array_view", |
ossu | 30fa632 | 2017-05-23 13:07:11 | [diff] [blame] | 185 | "../api:mock_audio_mixer", |
kjellander | 388c1df | 2017-02-27 23:57:45 | [diff] [blame] | 186 | "../logging:rtc_event_log_api", |
aleloi | 7713f33 | 2016-11-17 14:28:59 | [diff] [blame] | 187 | "../modules/audio_device:mock_audio_device", |
aleloi | d85b51d | 2016-11-17 14:48:48 | [diff] [blame] | 188 | "../modules/audio_mixer", |
kjellander | 388c1df | 2017-02-27 23:57:45 | [diff] [blame] | 189 | "../modules/bitrate_controller", |
zstein | 29a1f8c | 2017-05-08 18:52:38 | [diff] [blame] | 190 | "../modules/congestion_controller:mock_congestion_controller", |
kjellander | 388c1df | 2017-02-27 23:57:45 | [diff] [blame] | 191 | "../modules/pacing", |
mbonadei | 6199138 | 2017-09-04 11:57:11 | [diff] [blame] | 192 | "../modules/pacing:mock_paced_sender", |
kjellander | 388c1df | 2017-02-27 23:57:45 | [diff] [blame] | 193 | "../modules/rtp_rtcp", |
danilchap | cd2f080 | 2017-05-10 15:41:13 | [diff] [blame] | 194 | "../modules/rtp_rtcp:mock_rtp_rtcp", |
mbonadei | 92bdb64 | 2017-08-03 12:57:11 | [diff] [blame] | 195 | "../modules/utility:mock_process_thread", |
ehmaldonado | 2bc62f3 | 2017-07-19 17:40:47 | [diff] [blame] | 196 | "../rtc_base:rtc_base_approved", |
kjellander | 388c1df | 2017-02-27 23:57:45 | [diff] [blame] | 197 | "../system_wrappers", |
kwiberg | af8f6e5 | 2017-04-10 12:15:48 | [diff] [blame] | 198 | "../test:audio_codec_mocks", |
kjellander | 388c1df | 2017-02-27 23:57:45 | [diff] [blame] | 199 | "../test:direct_transport", |
aleloi | d85b51d | 2016-11-17 14:48:48 | [diff] [blame] | 200 | "../test:test_common", |
kjellander | 388c1df | 2017-02-27 23:57:45 | [diff] [blame] | 201 | "../test:test_support", |
| 202 | "../test:video_test_common", |
Peter Boström | c9da01c | 2016-06-14 10:52:54 | [diff] [blame] | 203 | "//testing/gmock", |
| 204 | "//testing/gtest", |
| 205 | ] |
kjellander | a6c6623 | 2016-10-17 06:56:12 | [diff] [blame] | 206 | if (!build_with_chromium && is_clang) { |
| 207 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | f0532f3 | 2016-09-02 11:10:34 | [diff] [blame] | 208 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
Peter Boström | c9da01c | 2016-06-14 10:52:54 | [diff] [blame] | 209 | } |
| 210 | } |
ehmaldonado | 5445b07 | 2017-01-05 15:09:50 | [diff] [blame] | 211 | |
| 212 | rtc_source_set("call_perf_tests") { |
| 213 | testonly = true |
kjellander | 9cdb538 | 2017-04-25 11:04:50 | [diff] [blame] | 214 | |
| 215 | # Skip restricting visibility on mobile platforms since the tests on those |
| 216 | # gets additional generated targets which would require many lines here to |
| 217 | # cover (which would be confusing to read and hard to maintain). |
| 218 | if (!is_android && !is_ios) { |
jianjun.zhu | 59d5575 | 2017-07-11 13:20:45 | [diff] [blame] | 219 | visibility = [ "..:webrtc_perf_tests" ] |
kjellander | 9cdb538 | 2017-04-25 11:04:50 | [diff] [blame] | 220 | } |
ehmaldonado | 5445b07 | 2017-01-05 15:09:50 | [diff] [blame] | 221 | sources = [ |
| 222 | "call_perf_tests.cc", |
| 223 | "rampup_tests.cc", |
| 224 | "rampup_tests.h", |
| 225 | ] |
| 226 | deps = [ |
kjellander | 388c1df | 2017-02-27 23:57:45 | [diff] [blame] | 227 | ":call_interfaces", |
Stefan Holmer | 36189cd | 2017-09-01 13:29:28 | [diff] [blame] | 228 | ":video_stream_api", |
kjellander | 388c1df | 2017-02-27 23:57:45 | [diff] [blame] | 229 | "..:webrtc_common", |
ossu | f26202b | 2017-05-02 13:46:30 | [diff] [blame] | 230 | "../api/audio_codecs:builtin_audio_encoder_factory", |
kjellander | 388c1df | 2017-02-27 23:57:45 | [diff] [blame] | 231 | "../logging:rtc_event_log_api", |
| 232 | "../modules/audio_coding", |
| 233 | "../modules/audio_mixer:audio_mixer_impl", |
| 234 | "../modules/rtp_rtcp", |
ehmaldonado | 2bc62f3 | 2017-07-19 17:40:47 | [diff] [blame] | 235 | "../rtc_base:rtc_base_approved", |
kjellander | 388c1df | 2017-02-27 23:57:45 | [diff] [blame] | 236 | "../system_wrappers", |
| 237 | "../system_wrappers:metrics_default", |
| 238 | "../test:direct_transport", |
perkj | b880884 | 2017-02-28 22:41:05 | [diff] [blame] | 239 | "../test:fake_audio_device", |
jianjun.zhu | 59d5575 | 2017-07-11 13:20:45 | [diff] [blame] | 240 | "../test:field_trial", |
| 241 | "../test:test_common", |
kjellander | 388c1df | 2017-02-27 23:57:45 | [diff] [blame] | 242 | "../test:test_support", |
| 243 | "../test:video_test_common", |
| 244 | "../video", |
| 245 | "../voice_engine", |
ehmaldonado | 5445b07 | 2017-01-05 15:09:50 | [diff] [blame] | 246 | "//testing/gtest", |
ehmaldonado | 5445b07 | 2017-01-05 15:09:50 | [diff] [blame] | 247 | ] |
| 248 | if (!build_with_chromium && is_clang) { |
| 249 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 250 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 251 | } |
| 252 | } |
eladalon | 5fb3e75 | 2017-07-28 17:05:45 | [diff] [blame] | 253 | |
| 254 | # TODO(eladalon): This should be moved, as with the TODO for |rtp_interfaces|. |
| 255 | rtc_source_set("mock_rtp_interfaces") { |
| 256 | testonly = true |
| 257 | |
| 258 | sources = [ |
| 259 | "test/mock_rtp_packet_sink_interface.h", |
| 260 | ] |
| 261 | deps = [ |
| 262 | ":rtp_interfaces", |
| 263 | "../test:test_support", |
| 264 | "//testing/gmock", |
| 265 | ] |
| 266 | } |
Peter Boström | c9da01c | 2016-06-14 10:52:54 | [diff] [blame] | 267 | } |