kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 1 | # Copyright (c) 2016 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 | 9aa3f0a | 2017-01-24 06:58:22 -0800 | [diff] [blame] | 9 | import("../webrtc.gni") |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 10 | |
| 11 | group("p2p") { |
kjellander | 705ecc5 | 2016-09-15 00:53:26 -0700 | [diff] [blame] | 12 | public_deps = [ |
kjellander | 6ceab08 | 2016-10-28 05:44:03 -0700 | [diff] [blame] | 13 | ":libstunprober", |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 14 | ":rtc_p2p", |
| 15 | ] |
| 16 | } |
| 17 | |
Mirko Bonadei | 86d053c | 2019-10-17 21:32:04 +0200 | [diff] [blame] | 18 | rtc_library("rtc_p2p") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 +0000 | [diff] [blame] | 19 | visibility = [ "*" ] |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 20 | sources = [ |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 21 | "base/async_stun_tcp_socket.cc", |
| 22 | "base/async_stun_tcp_socket.h", |
| 23 | "base/basic_async_resolver_factory.cc", |
| 24 | "base/basic_async_resolver_factory.h", |
Jonas Oreland | 09c452e | 2019-11-20 09:01:02 +0100 | [diff] [blame] | 25 | "base/basic_ice_controller.cc", |
| 26 | "base/basic_ice_controller.h", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 27 | "base/basic_packet_socket_factory.cc", |
| 28 | "base/basic_packet_socket_factory.h", |
| 29 | "base/candidate_pair_interface.h", |
Jonas Oreland | e8e7d7b | 2019-05-29 09:30:55 +0200 | [diff] [blame] | 30 | "base/connection.cc", |
| 31 | "base/connection.h", |
| 32 | "base/connection_info.cc", |
| 33 | "base/connection_info.h", |
Qingsi Wang | 25ec888 | 2019-11-15 12:33:05 -0800 | [diff] [blame] | 34 | "base/default_ice_transport_factory.cc", |
| 35 | "base/default_ice_transport_factory.h", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 36 | "base/dtls_transport.cc", |
| 37 | "base/dtls_transport.h", |
Qingsi Wang | 25ec888 | 2019-11-15 12:33:05 -0800 | [diff] [blame] | 38 | "base/dtls_transport_factory.h", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 39 | "base/dtls_transport_internal.cc", |
| 40 | "base/dtls_transport_internal.h", |
Jonas Oreland | 2f74d5f | 2019-11-22 07:53:22 +0100 | [diff] [blame] | 41 | "base/ice_controller_factory_interface.h", |
Jonas Oreland | 09c452e | 2019-11-20 09:01:02 +0100 | [diff] [blame] | 42 | "base/ice_controller_interface.cc", |
| 43 | "base/ice_controller_interface.h", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 44 | "base/ice_credentials_iterator.cc", |
| 45 | "base/ice_credentials_iterator.h", |
| 46 | "base/ice_transport_internal.cc", |
| 47 | "base/ice_transport_internal.h", |
Qingsi Wang | 558b93b | 2018-08-30 10:38:44 -0700 | [diff] [blame] | 48 | "base/mdns_message.cc", |
| 49 | "base/mdns_message.h", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 50 | "base/p2p_constants.cc", |
| 51 | "base/p2p_constants.h", |
| 52 | "base/p2p_transport_channel.cc", |
| 53 | "base/p2p_transport_channel.h", |
Jonas Oreland | 6031716 | 2019-11-22 12:28:53 +0100 | [diff] [blame] | 54 | "base/p2p_transport_channel_ice_field_trials.h", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 55 | "base/packet_transport_internal.cc", |
| 56 | "base/packet_transport_internal.h", |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 57 | "base/port.cc", |
| 58 | "base/port.h", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 59 | "base/port_allocator.cc", |
| 60 | "base/port_allocator.h", |
| 61 | "base/port_interface.cc", |
| 62 | "base/port_interface.h", |
| 63 | "base/pseudo_tcp.cc", |
| 64 | "base/pseudo_tcp.h", |
| 65 | "base/regathering_controller.cc", |
| 66 | "base/regathering_controller.h", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 67 | "base/stun_port.cc", |
| 68 | "base/stun_port.h", |
| 69 | "base/stun_request.cc", |
| 70 | "base/stun_request.h", |
| 71 | "base/tcp_port.cc", |
| 72 | "base/tcp_port.h", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 73 | "base/transport_description.cc", |
| 74 | "base/transport_description.h", |
| 75 | "base/transport_description_factory.cc", |
| 76 | "base/transport_description_factory.h", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 77 | "base/transport_info.h", |
| 78 | "base/turn_port.cc", |
| 79 | "base/turn_port.h", |
| 80 | "base/udp_port.h", |
| 81 | "client/basic_port_allocator.cc", |
| 82 | "client/basic_port_allocator.h", |
| 83 | "client/relay_port_factory_interface.h", |
| 84 | "client/turn_port_factory.cc", |
| 85 | "client/turn_port_factory.h", |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 86 | ] |
| 87 | |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 88 | deps = [ |
kjellander | 8a11663 | 2017-04-21 05:17:08 -0700 | [diff] [blame] | 89 | "../api:libjingle_peerconnection_api", |
Patrik Höglund | 662e31f | 2019-09-05 14:35:04 +0200 | [diff] [blame] | 90 | "../api:packet_socket_factory", |
Mirko Bonadei | fcfeefe | 2019-09-10 10:51:23 +0200 | [diff] [blame] | 91 | "../api:rtc_error", |
Mirko Bonadei | d970807 | 2019-01-25 20:26:48 +0100 | [diff] [blame] | 92 | "../api:scoped_refptr", |
Mirko Bonadei | eaaaf41 | 2019-09-13 14:42:15 +0200 | [diff] [blame] | 93 | "../api/crypto:options", |
Danil Chapovalov | 83bbe91 | 2019-08-07 12:24:53 +0200 | [diff] [blame] | 94 | "../api/rtc_event_log", |
Jonas Olsson | 81125f0 | 2018-10-09 10:52:04 +0200 | [diff] [blame] | 95 | "../api/transport:enums", |
Patrik Höglund | 56d9452 | 2019-11-18 15:53:32 +0100 | [diff] [blame] | 96 | "../api/transport:stun_types", |
Qingsi Wang | 93a8439 | 2018-01-30 17:13:09 -0800 | [diff] [blame] | 97 | "../logging:ice_log", |
Artem Titov | 94b57c0 | 2019-03-21 13:35:10 +0100 | [diff] [blame] | 98 | "../rtc_base", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 99 | "../rtc_base:checks", |
Jonas Oreland | bfcb6c3 | 2019-11-28 09:40:01 +0100 | [diff] [blame] | 100 | "../rtc_base:rtc_numerics", |
Jonas Oreland | 4af7882 | 2019-10-11 08:17:06 +0200 | [diff] [blame] | 101 | "../rtc_base/experiments:field_trial_parser", |
Mirko Bonadei | 317a1f0 | 2019-09-17 17:06:18 +0200 | [diff] [blame] | 102 | "//third_party/abseil-cpp/absl/memory", |
Niels Möller | 1333948 | 2019-03-28 13:30:15 +0100 | [diff] [blame] | 103 | |
| 104 | # Needed by pseudo_tcp, which should move to a separate target. |
Karl Wiberg | 12edf4c | 2018-03-07 14:18:56 +0100 | [diff] [blame] | 105 | "../rtc_base:safe_minmax", |
Qingsi Wang | 0961933 | 2018-09-12 22:51:55 -0700 | [diff] [blame] | 106 | "../rtc_base:weak_ptr", |
Niels Möller | 1333948 | 2019-03-28 13:30:15 +0100 | [diff] [blame] | 107 | "../rtc_base/memory:fifo_buffer", |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame] | 108 | "../rtc_base/network:sent_packet", |
Mirko Bonadei | 3b56ee7 | 2018-10-15 17:15:12 +0200 | [diff] [blame] | 109 | "../rtc_base/system:rtc_export", |
Artem Titov | a76af0c | 2018-07-23 17:38:12 +0200 | [diff] [blame] | 110 | "../rtc_base/third_party/base64", |
Artem Titov | e41c433 | 2018-07-25 15:04:28 +0200 | [diff] [blame] | 111 | "../rtc_base/third_party/sigslot", |
Mirko Bonadei | 17f4878 | 2018-09-28 08:51:10 +0200 | [diff] [blame] | 112 | "../system_wrappers:field_trial", |
| 113 | "../system_wrappers:metrics", |
Steve Anton | e76ca61 | 2019-01-25 12:49:14 -0800 | [diff] [blame] | 114 | "//third_party/abseil-cpp/absl/algorithm:container", |
Niels Möller | 3c7d599 | 2018-10-19 15:29:54 +0200 | [diff] [blame] | 115 | "//third_party/abseil-cpp/absl/strings", |
Danil Chapovalov | 00c7183 | 2018-06-15 15:58:38 +0200 | [diff] [blame] | 116 | "//third_party/abseil-cpp/absl/types:optional", |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 117 | ] |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 118 | } |
| 119 | |
ehmaldonado | da8dcfb | 2017-01-04 07:11:23 -0800 | [diff] [blame] | 120 | if (rtc_include_tests) { |
Mirko Bonadei | 86d053c | 2019-10-17 21:32:04 +0200 | [diff] [blame] | 121 | rtc_library("fake_ice_transport") { |
Piotr (Peter) Slatala | 4de1783 | 2019-01-29 13:35:05 -0800 | [diff] [blame] | 122 | testonly = true |
| 123 | visibility = [ "*" ] |
Mirko Bonadei | ccbe95f | 2020-01-21 12:10:10 +0100 | [diff] [blame] | 124 | sources = [ "base/fake_ice_transport.h" ] |
Piotr (Peter) Slatala | 4de1783 | 2019-01-29 13:35:05 -0800 | [diff] [blame] | 125 | deps = [ |
| 126 | ":rtc_p2p", |
Qingsi Wang | 25ec888 | 2019-11-15 12:33:05 -0800 | [diff] [blame] | 127 | "../api:libjingle_peerconnection_api", |
Artem Titov | 94b57c0 | 2019-03-21 13:35:10 +0100 | [diff] [blame] | 128 | "../rtc_base", |
Piotr (Peter) Slatala | 4de1783 | 2019-01-29 13:35:05 -0800 | [diff] [blame] | 129 | "../rtc_base:rtc_base_approved", |
Piotr (Peter) Slatala | 6fdb3f8 | 2019-01-29 15:54:55 -0800 | [diff] [blame] | 130 | "//third_party/abseil-cpp/absl/algorithm:container", |
Piotr (Peter) Slatala | 4de1783 | 2019-01-29 13:35:05 -0800 | [diff] [blame] | 131 | "//third_party/abseil-cpp/absl/types:optional", |
| 132 | ] |
| 133 | } |
| 134 | |
Mirko Bonadei | 86d053c | 2019-10-17 21:32:04 +0200 | [diff] [blame] | 135 | rtc_library("fake_port_allocator") { |
Qingsi Wang | 8af1f74 | 2019-04-21 22:08:26 -0700 | [diff] [blame] | 136 | testonly = true |
| 137 | visibility = [ "*" ] |
Mirko Bonadei | ccbe95f | 2020-01-21 12:10:10 +0100 | [diff] [blame] | 138 | sources = [ "base/fake_port_allocator.h" ] |
Qingsi Wang | 8af1f74 | 2019-04-21 22:08:26 -0700 | [diff] [blame] | 139 | deps = [ |
| 140 | ":rtc_p2p", |
| 141 | "../rtc_base", |
| 142 | ] |
| 143 | } |
| 144 | |
Mirko Bonadei | 86d053c | 2019-10-17 21:32:04 +0200 | [diff] [blame] | 145 | rtc_library("p2p_test_utils") { |
ehmaldonado | da8dcfb | 2017-01-04 07:11:23 -0800 | [diff] [blame] | 146 | testonly = true |
| 147 | sources = [ |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 148 | "base/fake_dtls_transport.h", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 149 | "base/fake_packet_transport.h", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 150 | "base/mock_async_resolver.h", |
| 151 | "base/mock_ice_transport.h", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 152 | "base/test_stun_server.cc", |
| 153 | "base/test_stun_server.h", |
| 154 | "base/test_turn_customizer.h", |
| 155 | "base/test_turn_server.h", |
deadbeef | 59edb92 | 2017-04-18 15:49:09 -0700 | [diff] [blame] | 156 | ] |
deadbeef | 59edb92 | 2017-04-18 15:49:09 -0700 | [diff] [blame] | 157 | deps = [ |
Piotr (Peter) Slatala | 4de1783 | 2019-01-29 13:35:05 -0800 | [diff] [blame] | 158 | ":fake_ice_transport", |
Qingsi Wang | 8af1f74 | 2019-04-21 22:08:26 -0700 | [diff] [blame] | 159 | ":fake_port_allocator", |
Niels Möller | a134204 | 2018-11-08 16:47:14 +0100 | [diff] [blame] | 160 | ":p2p_server_utils", |
deadbeef | 59edb92 | 2017-04-18 15:49:09 -0700 | [diff] [blame] | 161 | ":rtc_p2p", |
Patrik Höglund | 7aee3d5 | 2017-11-15 13:15:17 +0100 | [diff] [blame] | 162 | "../api:libjingle_peerconnection_api", |
Patrik Höglund | 662e31f | 2019-09-05 14:35:04 +0200 | [diff] [blame] | 163 | "../api:packet_socket_factory", |
Mirko Bonadei | eaaaf41 | 2019-09-13 14:42:15 +0200 | [diff] [blame] | 164 | "../api/crypto:options", |
Patrik Höglund | 56d9452 | 2019-11-18 15:53:32 +0100 | [diff] [blame] | 165 | "../api/transport:stun_types", |
Artem Titov | 94b57c0 | 2019-03-21 13:35:10 +0100 | [diff] [blame] | 166 | "../rtc_base", |
Mirko Bonadei | e3abb81 | 2018-11-23 13:15:08 +0100 | [diff] [blame] | 167 | "../rtc_base:gunit_helpers", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 168 | "../rtc_base:rtc_base_approved", |
| 169 | "../rtc_base:rtc_base_tests_utils", |
Artem Titov | e41c433 | 2018-07-25 15:04:28 +0200 | [diff] [blame] | 170 | "../rtc_base/third_party/sigslot", |
kjellander | 8a11663 | 2017-04-21 05:17:08 -0700 | [diff] [blame] | 171 | "../test:test_support", |
Steve Anton | ae226f6 | 2019-01-29 12:47:38 -0800 | [diff] [blame] | 172 | "//third_party/abseil-cpp/absl/algorithm:container", |
Jonas Olsson | 6a8727b | 2018-12-07 13:11:44 +0100 | [diff] [blame] | 173 | "//third_party/abseil-cpp/absl/types:optional", |
deadbeef | 59edb92 | 2017-04-18 15:49:09 -0700 | [diff] [blame] | 174 | ] |
deadbeef | 59edb92 | 2017-04-18 15:49:09 -0700 | [diff] [blame] | 175 | } |
| 176 | |
Mirko Bonadei | 86d053c | 2019-10-17 21:32:04 +0200 | [diff] [blame] | 177 | rtc_library("rtc_p2p_unittests") { |
deadbeef | 59edb92 | 2017-04-18 15:49:09 -0700 | [diff] [blame] | 178 | testonly = true |
kjellander | e0629c0 | 2017-04-25 04:04:50 -0700 | [diff] [blame] | 179 | |
deadbeef | 59edb92 | 2017-04-18 15:49:09 -0700 | [diff] [blame] | 180 | sources = [ |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 181 | "base/async_stun_tcp_socket_unittest.cc", |
| 182 | "base/basic_async_resolver_factory_unittest.cc", |
| 183 | "base/dtls_transport_unittest.cc", |
| 184 | "base/ice_credentials_iterator_unittest.cc", |
Qingsi Wang | 558b93b | 2018-08-30 10:38:44 -0700 | [diff] [blame] | 185 | "base/mdns_message_unittest.cc", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 186 | "base/p2p_transport_channel_unittest.cc", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 187 | "base/port_allocator_unittest.cc", |
ehmaldonado | da8dcfb | 2017-01-04 07:11:23 -0800 | [diff] [blame] | 188 | "base/port_unittest.cc", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 189 | "base/pseudo_tcp_unittest.cc", |
| 190 | "base/regathering_controller_unittest.cc", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 191 | "base/stun_port_unittest.cc", |
| 192 | "base/stun_request_unittest.cc", |
| 193 | "base/stun_server_unittest.cc", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 194 | "base/tcp_port_unittest.cc", |
| 195 | "base/transport_description_factory_unittest.cc", |
| 196 | "base/turn_port_unittest.cc", |
| 197 | "base/turn_server_unittest.cc", |
| 198 | "client/basic_port_allocator_unittest.cc", |
ehmaldonado | da8dcfb | 2017-01-04 07:11:23 -0800 | [diff] [blame] | 199 | ] |
ehmaldonado | da8dcfb | 2017-01-04 07:11:23 -0800 | [diff] [blame] | 200 | deps = [ |
Piotr (Peter) Slatala | 4de1783 | 2019-01-29 13:35:05 -0800 | [diff] [blame] | 201 | ":fake_ice_transport", |
Qingsi Wang | 8af1f74 | 2019-04-21 22:08:26 -0700 | [diff] [blame] | 202 | ":fake_port_allocator", |
Niels Möller | a134204 | 2018-11-08 16:47:14 +0100 | [diff] [blame] | 203 | ":p2p_server_utils", |
deadbeef | 59edb92 | 2017-04-18 15:49:09 -0700 | [diff] [blame] | 204 | ":p2p_test_utils", |
ehmaldonado | da8dcfb | 2017-01-04 07:11:23 -0800 | [diff] [blame] | 205 | ":rtc_p2p", |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame] | 206 | "../api:libjingle_peerconnection_api", |
Patrik Höglund | 7d00342 | 2019-09-17 12:16:35 +0200 | [diff] [blame] | 207 | "../api:packet_socket_factory", |
Mirko Bonadei | d970807 | 2019-01-25 20:26:48 +0100 | [diff] [blame] | 208 | "../api:scoped_refptr", |
Patrik Höglund | 56d9452 | 2019-11-18 15:53:32 +0100 | [diff] [blame] | 209 | "../api/transport:stun_types", |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame] | 210 | "../api/units:time_delta", |
Artem Titov | 94b57c0 | 2019-03-21 13:35:10 +0100 | [diff] [blame] | 211 | "../rtc_base", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 212 | "../rtc_base:checks", |
Mirko Bonadei | e3abb81 | 2018-11-23 13:15:08 +0100 | [diff] [blame] | 213 | "../rtc_base:gunit_helpers", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 214 | "../rtc_base:rtc_base_approved", |
| 215 | "../rtc_base:rtc_base_tests_utils", |
Mirko Bonadei | e3abb81 | 2018-11-23 13:15:08 +0100 | [diff] [blame] | 216 | "../rtc_base:testclient", |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame] | 217 | "../rtc_base/network:sent_packet", |
Artem Titov | 94b57c0 | 2019-03-21 13:35:10 +0100 | [diff] [blame] | 218 | "../rtc_base/third_party/sigslot", |
Mirko Bonadei | 17f4878 | 2018-09-28 08:51:10 +0200 | [diff] [blame] | 219 | "../system_wrappers:metrics", |
Qingsi Wang | c129c35 | 2019-04-18 10:41:58 -0700 | [diff] [blame] | 220 | "../test:field_trial", |
kjellander | 8a11663 | 2017-04-21 05:17:08 -0700 | [diff] [blame] | 221 | "../test:test_support", |
ehmaldonado | da8dcfb | 2017-01-04 07:11:23 -0800 | [diff] [blame] | 222 | "//testing/gtest", |
Steve Anton | ae226f6 | 2019-01-29 12:47:38 -0800 | [diff] [blame] | 223 | "//third_party/abseil-cpp/absl/algorithm:container", |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 224 | "//third_party/abseil-cpp/absl/memory", |
ehmaldonado | da8dcfb | 2017-01-04 07:11:23 -0800 | [diff] [blame] | 225 | ] |
ehmaldonado | da8dcfb | 2017-01-04 07:11:23 -0800 | [diff] [blame] | 226 | } |
| 227 | } |
| 228 | |
Mirko Bonadei | 86d053c | 2019-10-17 21:32:04 +0200 | [diff] [blame] | 229 | rtc_library("p2p_server_utils") { |
Niels Möller | a134204 | 2018-11-08 16:47:14 +0100 | [diff] [blame] | 230 | testonly = true |
| 231 | sources = [ |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 232 | "base/stun_server.cc", |
| 233 | "base/stun_server.h", |
| 234 | "base/turn_server.cc", |
| 235 | "base/turn_server.h", |
Niels Möller | a134204 | 2018-11-08 16:47:14 +0100 | [diff] [blame] | 236 | ] |
| 237 | deps = [ |
| 238 | ":rtc_p2p", |
Patrik Höglund | 7d00342 | 2019-09-17 12:16:35 +0200 | [diff] [blame] | 239 | "../api:packet_socket_factory", |
Patrik Höglund | 56d9452 | 2019-11-18 15:53:32 +0100 | [diff] [blame] | 240 | "../api/transport:stun_types", |
Artem Titov | 94b57c0 | 2019-03-21 13:35:10 +0100 | [diff] [blame] | 241 | "../rtc_base", |
Niels Möller | a134204 | 2018-11-08 16:47:14 +0100 | [diff] [blame] | 242 | "../rtc_base:checks", |
Niels Möller | 4415315 | 2018-12-17 14:04:05 +0100 | [diff] [blame] | 243 | "../rtc_base:rtc_base_tests_utils", |
Niels Möller | a134204 | 2018-11-08 16:47:14 +0100 | [diff] [blame] | 244 | "../rtc_base/third_party/sigslot", |
Steve Anton | ae226f6 | 2019-01-29 12:47:38 -0800 | [diff] [blame] | 245 | "//third_party/abseil-cpp/absl/algorithm:container", |
Niels Möller | a134204 | 2018-11-08 16:47:14 +0100 | [diff] [blame] | 246 | ] |
| 247 | } |
| 248 | |
Mirko Bonadei | 86d053c | 2019-10-17 21:32:04 +0200 | [diff] [blame] | 249 | rtc_library("libstunprober") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 +0000 | [diff] [blame] | 250 | visibility = [ "*" ] |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 251 | sources = [ |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 252 | "stunprober/stun_prober.cc", |
| 253 | "stunprober/stun_prober.h", |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 254 | ] |
| 255 | |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 256 | deps = [ |
kjellander | 8a11663 | 2017-04-21 05:17:08 -0700 | [diff] [blame] | 257 | ":rtc_p2p", |
Patrik Höglund | 7d00342 | 2019-09-17 12:16:35 +0200 | [diff] [blame] | 258 | "../api:packet_socket_factory", |
Patrik Höglund | 56d9452 | 2019-11-18 15:53:32 +0100 | [diff] [blame] | 259 | "../api/transport:stun_types", |
Artem Titov | 94b57c0 | 2019-03-21 13:35:10 +0100 | [diff] [blame] | 260 | "../rtc_base", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 261 | "../rtc_base:checks", |
Mirko Bonadei | d65d179 | 2018-10-17 16:50:07 +0200 | [diff] [blame] | 262 | "../rtc_base/system:rtc_export", |
kjellander | c76dc95 | 2016-06-03 03:09:32 -0700 | [diff] [blame] | 263 | ] |
| 264 | } |
ehmaldonado | da8dcfb | 2017-01-04 07:11:23 -0800 | [diff] [blame] | 265 | |
| 266 | if (rtc_include_tests) { |
Mirko Bonadei | 86d053c | 2019-10-17 21:32:04 +0200 | [diff] [blame] | 267 | rtc_library("libstunprober_unittests") { |
ehmaldonado | da8dcfb | 2017-01-04 07:11:23 -0800 | [diff] [blame] | 268 | testonly = true |
kjellander | e0629c0 | 2017-04-25 04:04:50 -0700 | [diff] [blame] | 269 | |
Mirko Bonadei | ccbe95f | 2020-01-21 12:10:10 +0100 | [diff] [blame] | 270 | sources = [ "stunprober/stun_prober_unittest.cc" ] |
ehmaldonado | da8dcfb | 2017-01-04 07:11:23 -0800 | [diff] [blame] | 271 | deps = [ |
| 272 | ":libstunprober", |
kjellander | 8a11663 | 2017-04-21 05:17:08 -0700 | [diff] [blame] | 273 | ":p2p_test_utils", |
| 274 | ":rtc_p2p", |
Artem Titov | 94b57c0 | 2019-03-21 13:35:10 +0100 | [diff] [blame] | 275 | "../rtc_base", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 276 | "../rtc_base:checks", |
Mirko Bonadei | e3abb81 | 2018-11-23 13:15:08 +0100 | [diff] [blame] | 277 | "../rtc_base:gunit_helpers", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 278 | "../rtc_base:rtc_base_tests_utils", |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame] | 279 | "../test:test_support", |
ehmaldonado | da8dcfb | 2017-01-04 07:11:23 -0800 | [diff] [blame] | 280 | "//testing/gtest", |
| 281 | ] |
ehmaldonado | da8dcfb | 2017-01-04 07:11:23 -0800 | [diff] [blame] | 282 | } |
| 283 | } |