Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1 | # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |
Henrik Kjellander | 73e2180 | 2017-06-20 08:38:58 +0200 | [diff] [blame] | 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 | |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 9 | import("//build/config/crypto.gni") |
| 10 | import("//build/config/ui.gni") |
Henrik Kjellander | 73e2180 | 2017-06-20 08:38:58 +0200 | [diff] [blame] | 11 | import("../webrtc.gni") |
| 12 | |
| 13 | if (is_android) { |
| 14 | import("//build/config/android/config.gni") |
| 15 | import("//build/config/android/rules.gni") |
| 16 | } |
| 17 | |
Niels Moller | 9d1840c | 2019-05-21 07:26:37 +0000 | [diff] [blame] | 18 | config("rtc_base_chromium_config") { |
| 19 | defines = [ "NO_MAIN_THREAD_WRAPPING" ] |
| 20 | } |
| 21 | |
Dan Minor | 9cdd876 | 2018-01-16 10:40:39 -0500 | [diff] [blame] | 22 | if (!rtc_build_ssl) { |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 23 | config("external_ssl_library") { |
| 24 | assert(rtc_ssl_root != "", |
| 25 | "You must specify rtc_ssl_root when rtc_build_ssl==0.") |
| 26 | include_dirs = [ rtc_ssl_root ] |
| 27 | } |
| 28 | } |
| 29 | |
Oleh Prypin | dd21474 | 2018-07-17 13:49:46 +0200 | [diff] [blame] | 30 | rtc_source_set("protobuf_utils") { |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 31 | sources = [ |
| 32 | "protobuf_utils.h", |
| 33 | ] |
| 34 | if (rtc_enable_protobuf) { |
Mirko Bonadei | d8661a0 | 2018-08-13 15:04:25 +0200 | [diff] [blame] | 35 | public_configs = [ "//third_party/protobuf:protobuf_config" ] |
| 36 | deps = [ |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 37 | "//third_party/protobuf:protobuf_lite", |
| 38 | ] |
| 39 | } |
| 40 | } |
| 41 | |
Oleh Prypin | dd21474 | 2018-07-17 13:49:46 +0200 | [diff] [blame] | 42 | rtc_source_set("compile_assert_c") { |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 43 | sources = [ |
| 44 | "compile_assert_c.h", |
| 45 | ] |
| 46 | } |
| 47 | |
Mirko Bonadei | ca27091 | 2018-10-10 15:51:03 +0200 | [diff] [blame] | 48 | # The subset of rtc_base approved for use outside of libjingle. |
Ilya Nikolaevskiy | 2634199 | 2018-11-05 12:55:18 +0100 | [diff] [blame] | 49 | # TODO(bugs.webrtc.org/9838): Create small and focused build targets and remove |
Mirko Bonadei | ca27091 | 2018-10-10 15:51:03 +0200 | [diff] [blame] | 50 | # the old concept of rtc_base and rtc_base_approved. |
mbonadei | bc37847 | 2017-09-11 03:43:34 -0700 | [diff] [blame] | 51 | rtc_source_set("rtc_base_approved") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 +0000 | [diff] [blame] | 52 | visibility = [ "*" ] |
Mirko Bonadei | ca27091 | 2018-10-10 15:51:03 +0200 | [diff] [blame] | 53 | deps = [ |
| 54 | ":checks", |
| 55 | ":rtc_task_queue", |
| 56 | ":safe_compare", |
| 57 | ":type_traits", |
Mirko Bonadei | ca27091 | 2018-10-10 15:51:03 +0200 | [diff] [blame] | 58 | "../api:array_view", |
Mirko Bonadei | d970807 | 2019-01-25 20:26:48 +0100 | [diff] [blame] | 59 | "../api:scoped_refptr", |
Mirko Bonadei | ca27091 | 2018-10-10 15:51:03 +0200 | [diff] [blame] | 60 | "system:arch", |
| 61 | "system:unused", |
| 62 | "third_party/base64", |
Mirko Bonadei | ca27091 | 2018-10-10 15:51:03 +0200 | [diff] [blame] | 63 | "//third_party/abseil-cpp/absl/types:optional", |
| 64 | ] |
Mirko Bonadei | a7d8f19 | 2019-03-29 13:34:46 +0100 | [diff] [blame] | 65 | public_deps = [] # no-presubmit-check TODO(webrtc:8603) |
Mirko Bonadei | ca27091 | 2018-10-10 15:51:03 +0200 | [diff] [blame] | 66 | |
| 67 | sources = [ |
| 68 | "bind.h", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 69 | "bit_buffer.cc", |
| 70 | "bit_buffer.h", |
Mirko Bonadei | ca27091 | 2018-10-10 15:51:03 +0200 | [diff] [blame] | 71 | "buffer.h", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 72 | "buffer_queue.cc", |
| 73 | "buffer_queue.h", |
| 74 | "byte_buffer.cc", |
| 75 | "byte_buffer.h", |
| 76 | "byte_order.h", |
| 77 | "copy_on_write_buffer.cc", |
| 78 | "copy_on_write_buffer.h", |
Mirko Bonadei | ca27091 | 2018-10-10 15:51:03 +0200 | [diff] [blame] | 79 | "event_tracer.cc", |
| 80 | "event_tracer.h", |
Mirko Bonadei | ca27091 | 2018-10-10 15:51:03 +0200 | [diff] [blame] | 81 | "ignore_wundef.h", |
| 82 | "location.cc", |
| 83 | "location.h", |
| 84 | "message_buffer_reader.h", |
| 85 | "numerics/histogram_percentile_counter.cc", |
| 86 | "numerics/histogram_percentile_counter.h", |
| 87 | "numerics/mod_ops.h", |
| 88 | "numerics/moving_max_counter.h", |
| 89 | "numerics/sample_counter.cc", |
| 90 | "numerics/sample_counter.h", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 91 | "one_time_event.h", |
Mirko Bonadei | ca27091 | 2018-10-10 15:51:03 +0200 | [diff] [blame] | 92 | "race_checker.cc", |
| 93 | "race_checker.h", |
| 94 | "random.cc", |
| 95 | "random.h", |
| 96 | "rate_statistics.cc", |
| 97 | "rate_statistics.h", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 98 | "rate_tracker.cc", |
| 99 | "rate_tracker.h", |
Mirko Bonadei | ca27091 | 2018-10-10 15:51:03 +0200 | [diff] [blame] | 100 | "swap_queue.h", |
| 101 | "template_util.h", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 102 | "timestamp_aligner.cc", |
| 103 | "timestamp_aligner.h", |
Mirko Bonadei | ca27091 | 2018-10-10 15:51:03 +0200 | [diff] [blame] | 104 | "trace_event.h", |
| 105 | "zero_memory.cc", |
| 106 | "zero_memory.h", |
| 107 | ] |
| 108 | |
Mirko Bonadei | ca27091 | 2018-10-10 15:51:03 +0200 | [diff] [blame] | 109 | if (is_win) { |
| 110 | sources += [ |
Mirko Bonadei | ca27091 | 2018-10-10 15:51:03 +0200 | [diff] [blame] | 111 | "win/windows_version.cc", |
| 112 | "win/windows_version.h", |
| 113 | ] |
| 114 | data_deps = [ |
| 115 | "//build/win:runtime_libs", |
| 116 | ] |
| 117 | } |
| 118 | |
| 119 | if (is_nacl) { |
Mirko Bonadei | a7d8f19 | 2019-03-29 13:34:46 +0100 | [diff] [blame] | 120 | public_deps += [ "//native_client_sdk/src/libraries/nacl_io" ] # no-presubmit-check TODO(webrtc:8603) |
Mirko Bonadei | ca27091 | 2018-10-10 15:51:03 +0200 | [diff] [blame] | 121 | } |
| 122 | |
| 123 | if (is_android) { |
| 124 | libs = [ "log" ] |
| 125 | } |
| 126 | |
Mirko Bonadei | a7d8f19 | 2019-03-29 13:34:46 +0100 | [diff] [blame] | 127 | public_deps += [ # no-presubmit-check TODO(webrtc:8603) |
Tommi | 8d2c5a8 | 2018-03-19 11:12:48 +0100 | [diff] [blame] | 128 | ":atomicops", |
| 129 | ":criticalsection", |
| 130 | ":logging", |
| 131 | ":macromagic", |
| 132 | ":platform_thread", |
| 133 | ":platform_thread_types", |
Tommi | 8d2c5a8 | 2018-03-19 11:12:48 +0100 | [diff] [blame] | 134 | ":refcount", |
Tommi | 8d2c5a8 | 2018-03-19 11:12:48 +0100 | [diff] [blame] | 135 | ":rtc_event", |
| 136 | ":safe_conversions", |
| 137 | ":stringutils", |
| 138 | ":thread_checker", |
| 139 | ":timeutils", |
mbonadei | bc37847 | 2017-09-11 03:43:34 -0700 | [diff] [blame] | 140 | ] |
mbonadei | bc37847 | 2017-09-11 03:43:34 -0700 | [diff] [blame] | 141 | } |
| 142 | |
Tommi | 8d2c5a8 | 2018-03-19 11:12:48 +0100 | [diff] [blame] | 143 | rtc_source_set("macromagic") { |
Mirko Bonadei | 2ad8c43 | 2018-08-09 10:54:40 +0200 | [diff] [blame] | 144 | # TODO(bugs.webrtc.org/9606): This should not be public. |
| 145 | visibility = [ "*" ] |
Tommi | 8d2c5a8 | 2018-03-19 11:12:48 +0100 | [diff] [blame] | 146 | sources = [ |
| 147 | "arraysize.h", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 148 | "constructor_magic.h", |
Tommi | 8d2c5a8 | 2018-03-19 11:12:48 +0100 | [diff] [blame] | 149 | "format_macros.h", |
| 150 | "stringize_macros.h", |
| 151 | "thread_annotations.h", |
| 152 | ] |
Niels Möller | a12c42a | 2018-07-25 16:05:48 +0200 | [diff] [blame] | 153 | deps = [ |
| 154 | "system:arch", |
| 155 | ] |
Tommi | 8d2c5a8 | 2018-03-19 11:12:48 +0100 | [diff] [blame] | 156 | } |
| 157 | |
| 158 | rtc_source_set("platform_thread_types") { |
| 159 | sources = [ |
| 160 | "platform_thread_types.cc", |
| 161 | "platform_thread_types.h", |
| 162 | ] |
| 163 | } |
| 164 | |
Tommi | 8d2c5a8 | 2018-03-19 11:12:48 +0100 | [diff] [blame] | 165 | rtc_source_set("refcount") { |
Mirko Bonadei | ca14a3a | 2018-08-09 09:47:12 +0200 | [diff] [blame] | 166 | visibility = [ "*" ] |
Tommi | 8d2c5a8 | 2018-03-19 11:12:48 +0100 | [diff] [blame] | 167 | sources = [ |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 168 | "ref_count.h", |
| 169 | "ref_counted_object.h", |
| 170 | "ref_counter.h", |
Tommi | 8d2c5a8 | 2018-03-19 11:12:48 +0100 | [diff] [blame] | 171 | ] |
| 172 | deps = [ |
| 173 | ":atomicops", |
| 174 | ":macromagic", |
| 175 | ] |
| 176 | } |
| 177 | |
| 178 | rtc_source_set("criticalsection") { |
| 179 | sources = [ |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 180 | "critical_section.cc", |
| 181 | "critical_section.h", |
Tommi | 8d2c5a8 | 2018-03-19 11:12:48 +0100 | [diff] [blame] | 182 | ] |
| 183 | deps = [ |
| 184 | ":atomicops", |
| 185 | ":checks", |
| 186 | ":macromagic", |
| 187 | ":platform_thread_types", |
Niels Möller | a12c42a | 2018-07-25 16:05:48 +0200 | [diff] [blame] | 188 | "system:unused", |
Tommi | 8d2c5a8 | 2018-03-19 11:12:48 +0100 | [diff] [blame] | 189 | ] |
| 190 | } |
| 191 | |
| 192 | rtc_source_set("platform_thread") { |
| 193 | visibility = [ |
| 194 | ":rtc_base_approved", |
Tommi | 8d2c5a8 | 2018-03-19 11:12:48 +0100 | [diff] [blame] | 195 | ":rtc_task_queue_libevent", |
| 196 | ":rtc_task_queue_win", |
Robin Raymond | 22027b9 | 2018-11-23 09:07:50 -0500 | [diff] [blame] | 197 | ":rtc_task_queue_stdlib", |
Sebastian Jansson | b55015e | 2019-04-09 13:44:04 +0200 | [diff] [blame] | 198 | "synchronization:sequence_checker", |
Tommi | 8d2c5a8 | 2018-03-19 11:12:48 +0100 | [diff] [blame] | 199 | ] |
| 200 | sources = [ |
| 201 | "platform_thread.cc", |
| 202 | "platform_thread.h", |
| 203 | ] |
| 204 | deps = [ |
| 205 | ":atomicops", |
| 206 | ":checks", |
| 207 | ":macromagic", |
| 208 | ":platform_thread_types", |
| 209 | ":rtc_event", |
| 210 | ":thread_checker", |
| 211 | ":timeutils", |
Danil Chapovalov | 5a1a6db | 2019-01-17 19:55:46 +0100 | [diff] [blame] | 212 | "//third_party/abseil-cpp/absl/strings", |
Tommi | 8d2c5a8 | 2018-03-19 11:12:48 +0100 | [diff] [blame] | 213 | ] |
| 214 | } |
| 215 | |
| 216 | rtc_source_set("rtc_event") { |
| 217 | if (build_with_chromium) { |
| 218 | sources = [ |
| 219 | "../../webrtc_overrides/rtc_base/event.cc", |
| 220 | "../../webrtc_overrides/rtc_base/event.h", |
| 221 | ] |
Karl Wiberg | 9841703 | 2019-03-24 19:12:40 +0100 | [diff] [blame] | 222 | deps = [ |
| 223 | ":checks", |
| 224 | "//base", # Dependency on chromium's waitable_event. |
| 225 | ] |
Tommi | 8d2c5a8 | 2018-03-19 11:12:48 +0100 | [diff] [blame] | 226 | } else { |
| 227 | sources = [ |
| 228 | "event.cc", |
| 229 | "event.h", |
| 230 | ] |
Karl Wiberg | 9841703 | 2019-03-24 19:12:40 +0100 | [diff] [blame] | 231 | deps = [ |
| 232 | ":checks", |
| 233 | "synchronization:yield_policy", |
| 234 | "system:warn_current_thread_is_deadlocked", |
Karl Wiberg | fc47c86 | 2019-04-11 10:31:24 +0200 | [diff] [blame] | 235 | "//third_party/abseil-cpp/absl/types:optional", |
Karl Wiberg | 9841703 | 2019-03-24 19:12:40 +0100 | [diff] [blame] | 236 | ] |
Tommi | 8d2c5a8 | 2018-03-19 11:12:48 +0100 | [diff] [blame] | 237 | } |
Tommi | 8d2c5a8 | 2018-03-19 11:12:48 +0100 | [diff] [blame] | 238 | } |
| 239 | |
| 240 | rtc_source_set("logging") { |
Mirko Bonadei | 2ad8c43 | 2018-08-09 10:54:40 +0200 | [diff] [blame] | 241 | visibility = [ "*" ] |
Patrik Höglund | 7730193 | 2018-10-09 15:09:51 +0200 | [diff] [blame] | 242 | libs = [] |
Tommi | 8d2c5a8 | 2018-03-19 11:12:48 +0100 | [diff] [blame] | 243 | deps = [ |
Yves Gerey | 988cc08 | 2018-10-23 12:03:01 +0200 | [diff] [blame] | 244 | ":checks", |
Tommi | 8d2c5a8 | 2018-03-19 11:12:48 +0100 | [diff] [blame] | 245 | ":criticalsection", |
| 246 | ":macromagic", |
| 247 | ":platform_thread_types", |
| 248 | ":stringutils", |
| 249 | ":timeutils", |
Sebastian Jansson | f4e085a | 2019-05-20 18:34:07 +0200 | [diff] [blame] | 250 | "//third_party/abseil-cpp/absl/meta:type_traits", |
Jonas Olsson | f2ce37c | 2018-09-12 15:32:47 +0200 | [diff] [blame] | 251 | "//third_party/abseil-cpp/absl/strings", |
Tommi | 8d2c5a8 | 2018-03-19 11:12:48 +0100 | [diff] [blame] | 252 | ] |
| 253 | |
| 254 | if (build_with_chromium) { |
| 255 | # Dependency on chromium's logging (in //base). |
Artem Titov | 94b57c0 | 2019-03-21 13:35:10 +0100 | [diff] [blame] | 256 | deps += [ "//base" ] |
Tommi | 8d2c5a8 | 2018-03-19 11:12:48 +0100 | [diff] [blame] | 257 | sources = [ |
| 258 | "../../webrtc_overrides/rtc_base/logging.cc", |
| 259 | "../../webrtc_overrides/rtc_base/logging.h", |
| 260 | ] |
| 261 | } else { |
Mirko Bonadei | 96ede16 | 2018-09-06 13:45:44 +0200 | [diff] [blame] | 262 | configs += [ |
| 263 | "..:no_exit_time_destructors", |
| 264 | "..:no_global_constructors", |
| 265 | ] |
Tommi | 8d2c5a8 | 2018-03-19 11:12:48 +0100 | [diff] [blame] | 266 | sources = [ |
| 267 | "logging.cc", |
| 268 | "logging.h", |
| 269 | ] |
Karl Wiberg | cefc465 | 2018-05-23 23:20:38 +0200 | [diff] [blame] | 270 | deps += [ "system:inline" ] |
Tommi | 8d2c5a8 | 2018-03-19 11:12:48 +0100 | [diff] [blame] | 271 | |
Mirko Bonadei | 99a70a2 | 2018-10-09 16:45:14 +0200 | [diff] [blame] | 272 | if (is_mac) { |
Niels Möller | 171bd26 | 2019-05-28 15:16:47 +0200 | [diff] [blame] | 273 | libs += [ "Foundation.framework" ] |
Mirko Bonadei | 99a70a2 | 2018-10-09 16:45:14 +0200 | [diff] [blame] | 274 | } |
| 275 | |
Tommi | 8d2c5a8 | 2018-03-19 11:12:48 +0100 | [diff] [blame] | 276 | # logging.h needs the deprecation header while downstream projects are |
| 277 | # removing code that depends on logging implementation details. |
| 278 | deps += [ ":deprecation" ] |
Patrik Höglund | 7730193 | 2018-10-09 15:09:51 +0200 | [diff] [blame] | 279 | |
| 280 | if (is_android) { |
| 281 | libs += [ "log" ] |
| 282 | } |
Tommi | 8d2c5a8 | 2018-03-19 11:12:48 +0100 | [diff] [blame] | 283 | } |
| 284 | } |
| 285 | |
| 286 | rtc_source_set("thread_checker") { |
| 287 | sources = [ |
| 288 | "thread_checker.h", |
Tommi | 8d2c5a8 | 2018-03-19 11:12:48 +0100 | [diff] [blame] | 289 | ] |
| 290 | deps = [ |
Sebastian Jansson | c01367d | 2019-04-08 15:20:44 +0200 | [diff] [blame] | 291 | ":deprecation", |
Sebastian Jansson | df5e4e0 | 2019-03-29 10:34:45 +0100 | [diff] [blame] | 292 | "synchronization:sequence_checker", |
Tommi | 8d2c5a8 | 2018-03-19 11:12:48 +0100 | [diff] [blame] | 293 | ] |
| 294 | } |
| 295 | |
| 296 | rtc_source_set("atomicops") { |
| 297 | sources = [ |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 298 | "atomic_ops.h", |
Tommi | 8d2c5a8 | 2018-03-19 11:12:48 +0100 | [diff] [blame] | 299 | ] |
| 300 | } |
| 301 | |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 302 | rtc_source_set("checks") { |
Mirko Bonadei | 2ad8c43 | 2018-08-09 10:54:40 +0200 | [diff] [blame] | 303 | # TODO(bugs.webrtc.org/9607): This should not be public. |
| 304 | visibility = [ "*" ] |
Patrik Höglund | 7730193 | 2018-10-09 15:09:51 +0200 | [diff] [blame] | 305 | libs = [] |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 306 | sources = [ |
| 307 | "checks.cc", |
| 308 | "checks.h", |
| 309 | ] |
| 310 | deps = [ |
| 311 | ":safe_compare", |
Jonas Olsson | f8e5c11 | 2018-06-14 13:14:22 +0200 | [diff] [blame] | 312 | "system:inline", |
Sebastian Jansson | f4e085a | 2019-05-20 18:34:07 +0200 | [diff] [blame] | 313 | "//third_party/abseil-cpp/absl/meta:type_traits", |
Mirko Bonadei | d4a37a6 | 2019-03-11 10:31:22 +0100 | [diff] [blame] | 314 | "//third_party/abseil-cpp/absl/strings", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 315 | ] |
Patrik Höglund | 7730193 | 2018-10-09 15:09:51 +0200 | [diff] [blame] | 316 | if (is_android) { |
| 317 | libs += [ "log" ] |
| 318 | } |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 319 | } |
| 320 | |
Patrik Höglund | 3e11343 | 2017-12-15 14:40:10 +0100 | [diff] [blame] | 321 | rtc_source_set("rate_limiter") { |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 322 | sources = [ |
Patrik Höglund | 3e11343 | 2017-12-15 14:40:10 +0100 | [diff] [blame] | 323 | "rate_limiter.cc", |
| 324 | "rate_limiter.h", |
| 325 | ] |
| 326 | deps = [ |
| 327 | ":rtc_base_approved", |
| 328 | "../system_wrappers", |
Yves Gerey | 988cc08 | 2018-10-23 12:03:01 +0200 | [diff] [blame] | 329 | "//third_party/abseil-cpp/absl/types:optional", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 330 | ] |
| 331 | } |
| 332 | |
| 333 | rtc_source_set("sanitizer") { |
| 334 | sources = [ |
| 335 | "sanitizer.h", |
| 336 | ] |
Jiawei Ou | a6e034a | 2018-11-24 20:59:41 -0800 | [diff] [blame] | 337 | deps = [ |
| 338 | "//third_party/abseil-cpp/absl/meta:type_traits", |
| 339 | ] |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 340 | } |
| 341 | |
| 342 | rtc_source_set("safe_compare") { |
| 343 | sources = [ |
| 344 | "numerics/safe_compare.h", |
| 345 | ] |
| 346 | deps = [ |
| 347 | ":type_traits", |
| 348 | ] |
| 349 | } |
| 350 | |
Karl Wiberg | 12edf4c | 2018-03-07 14:18:56 +0100 | [diff] [blame] | 351 | rtc_source_set("safe_minmax") { |
| 352 | sources = [ |
| 353 | "numerics/safe_minmax.h", |
| 354 | ] |
| 355 | deps = [ |
| 356 | ":checks", |
| 357 | ":safe_compare", |
| 358 | ":type_traits", |
| 359 | ] |
| 360 | } |
| 361 | |
Tommi | 8d2c5a8 | 2018-03-19 11:12:48 +0100 | [diff] [blame] | 362 | rtc_source_set("safe_conversions") { |
| 363 | sources = [ |
| 364 | "numerics/safe_conversions.h", |
| 365 | "numerics/safe_conversions_impl.h", |
| 366 | ] |
| 367 | deps = [ |
| 368 | ":checks", |
| 369 | ] |
| 370 | } |
| 371 | |
| 372 | rtc_source_set("timeutils") { |
Mirko Bonadei | 2ad8c43 | 2018-08-09 10:54:40 +0200 | [diff] [blame] | 373 | visibility = [ "*" ] |
Tommi | 8d2c5a8 | 2018-03-19 11:12:48 +0100 | [diff] [blame] | 374 | sources = [ |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 375 | "time_utils.cc", |
| 376 | "time_utils.h", |
Tommi | 8d2c5a8 | 2018-03-19 11:12:48 +0100 | [diff] [blame] | 377 | ] |
| 378 | deps = [ |
| 379 | ":checks", |
| 380 | ":safe_conversions", |
Jonas Olsson | 366a50c | 2018-09-06 13:41:30 +0200 | [diff] [blame] | 381 | ":stringutils", |
Tommi | 8d2c5a8 | 2018-03-19 11:12:48 +0100 | [diff] [blame] | 382 | ] |
Noah Richards | 342989d | 2019-03-18 13:50:20 -0700 | [diff] [blame] | 383 | libs = [] |
| 384 | if (is_win) { |
| 385 | libs += [ "winmm.lib" ] |
| 386 | } |
Tommi | 8d2c5a8 | 2018-03-19 11:12:48 +0100 | [diff] [blame] | 387 | } |
| 388 | |
Patrik Höglund | 3e11343 | 2017-12-15 14:40:10 +0100 | [diff] [blame] | 389 | rtc_source_set("stringutils") { |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 390 | sources = [ |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 391 | "string_encode.cc", |
| 392 | "string_encode.h", |
Jonas Olsson | 6b1985d | 2018-07-05 11:59:48 +0200 | [diff] [blame] | 393 | "string_to_number.cc", |
| 394 | "string_to_number.h", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 395 | "string_utils.cc", |
| 396 | "string_utils.h", |
Karl Wiberg | 881f168 | 2018-03-08 15:03:23 +0100 | [diff] [blame] | 397 | "strings/string_builder.cc", |
Tommi | fef0500 | 2018-02-27 13:51:08 +0100 | [diff] [blame] | 398 | "strings/string_builder.h", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 399 | ] |
| 400 | deps = [ |
Patrik Höglund | 3e11343 | 2017-12-15 14:40:10 +0100 | [diff] [blame] | 401 | ":checks", |
Jonas Olsson | 6b1985d | 2018-07-05 11:59:48 +0200 | [diff] [blame] | 402 | ":macromagic", |
Karl Wiberg | 881f168 | 2018-03-08 15:03:23 +0100 | [diff] [blame] | 403 | ":safe_minmax", |
| 404 | "../api:array_view", |
Artem Titov | 94b57c0 | 2019-03-21 13:35:10 +0100 | [diff] [blame] | 405 | "//third_party/abseil-cpp/absl/strings", |
Jonas Olsson | 6b1985d | 2018-07-05 11:59:48 +0200 | [diff] [blame] | 406 | "//third_party/abseil-cpp/absl/types:optional", |
Patrik Höglund | 3e11343 | 2017-12-15 14:40:10 +0100 | [diff] [blame] | 407 | ] |
| 408 | } |
| 409 | |
Jonas Olsson | 7439534 | 2018-04-03 12:22:07 +0200 | [diff] [blame] | 410 | rtc_source_set("audio_format_to_string") { |
| 411 | sources = [ |
| 412 | "strings/audio_format_to_string.cc", |
| 413 | "strings/audio_format_to_string.h", |
| 414 | ] |
| 415 | deps = [ |
| 416 | ":stringutils", |
| 417 | "../api/audio_codecs:audio_codecs_api", |
| 418 | ] |
| 419 | } |
| 420 | |
Patrik Höglund | 3e11343 | 2017-12-15 14:40:10 +0100 | [diff] [blame] | 421 | rtc_source_set("type_traits") { |
| 422 | sources = [ |
| 423 | "type_traits.h", |
| 424 | ] |
| 425 | } |
| 426 | |
| 427 | rtc_source_set("deprecation") { |
| 428 | sources = [ |
| 429 | "deprecation.h", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 430 | ] |
| 431 | } |
| 432 | |
perkj | 650fdae | 2017-08-25 05:00:11 -0700 | [diff] [blame] | 433 | rtc_source_set("rtc_task_queue") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 +0000 | [diff] [blame] | 434 | visibility = [ "*" ] |
nisse | 75dd6d4 | 2017-09-19 08:28:00 -0700 | [diff] [blame] | 435 | sources = [ |
Danil Chapovalov | 07a4f2b | 2019-03-05 19:58:28 +0100 | [diff] [blame] | 436 | "task_queue.cc", |
nisse | 75dd6d4 | 2017-09-19 08:28:00 -0700 | [diff] [blame] | 437 | "task_queue.h", |
| 438 | ] |
perkj | 650fdae | 2017-08-25 05:00:11 -0700 | [diff] [blame] | 439 | deps = [ |
Tommi | 8d2c5a8 | 2018-03-19 11:12:48 +0100 | [diff] [blame] | 440 | ":macromagic", |
Danil Chapovalov | 959e9b6 | 2019-01-14 14:29:18 +0100 | [diff] [blame] | 441 | "../api/task_queue", |
Mirko Bonadei | 3d25530 | 2018-10-11 10:50:45 +0200 | [diff] [blame] | 442 | "system:rtc_export", |
Danil Chapovalov | 3b548dd | 2019-03-01 14:58:44 +0100 | [diff] [blame] | 443 | "task_utils:to_queued_task", |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 444 | "//third_party/abseil-cpp/absl/memory", |
perkj | 650fdae | 2017-08-25 05:00:11 -0700 | [diff] [blame] | 445 | ] |
Danil Chapovalov | 07a4f2b | 2019-03-05 19:58:28 +0100 | [diff] [blame] | 446 | } |
| 447 | |
Tommi | 8d2c5a8 | 2018-03-19 11:12:48 +0100 | [diff] [blame] | 448 | if (rtc_enable_libevent) { |
| 449 | rtc_source_set("rtc_task_queue_libevent") { |
Danil Chapovalov | 07a4f2b | 2019-03-05 19:58:28 +0100 | [diff] [blame] | 450 | visibility = [ "../api/task_queue:default_task_queue_factory" ] |
perkj | 650fdae | 2017-08-25 05:00:11 -0700 | [diff] [blame] | 451 | sources = [ |
Niels Möller | 15c9cf7 | 2017-10-19 12:38:09 +0200 | [diff] [blame] | 452 | "task_queue_libevent.cc", |
Danil Chapovalov | eb17524 | 2019-02-12 10:44:38 +0100 | [diff] [blame] | 453 | "task_queue_libevent.h", |
perkj | 650fdae | 2017-08-25 05:00:11 -0700 | [diff] [blame] | 454 | ] |
Tommi | 8d2c5a8 | 2018-03-19 11:12:48 +0100 | [diff] [blame] | 455 | deps = [ |
| 456 | ":checks", |
| 457 | ":criticalsection", |
| 458 | ":logging", |
Yves Gerey | 2e00abc | 2018-10-05 15:39:24 +0200 | [diff] [blame] | 459 | ":macromagic", |
Tommi | 8d2c5a8 | 2018-03-19 11:12:48 +0100 | [diff] [blame] | 460 | ":platform_thread", |
Yves Gerey | 2e00abc | 2018-10-05 15:39:24 +0200 | [diff] [blame] | 461 | ":platform_thread_types", |
Tommi | 8d2c5a8 | 2018-03-19 11:12:48 +0100 | [diff] [blame] | 462 | ":safe_conversions", |
| 463 | ":timeutils", |
Danil Chapovalov | eb17524 | 2019-02-12 10:44:38 +0100 | [diff] [blame] | 464 | "../api/task_queue", |
Danil Chapovalov | eb17524 | 2019-02-12 10:44:38 +0100 | [diff] [blame] | 465 | "//third_party/abseil-cpp/absl/strings", |
Tommi | 8d2c5a8 | 2018-03-19 11:12:48 +0100 | [diff] [blame] | 466 | ] |
| 467 | if (rtc_build_libevent) { |
| 468 | deps += [ "//base/third_party/libevent" ] |
| 469 | } |
| 470 | } |
| 471 | } |
| 472 | |
| 473 | if (is_mac || is_ios) { |
| 474 | rtc_source_set("rtc_task_queue_gcd") { |
Danil Chapovalov | 07a4f2b | 2019-03-05 19:58:28 +0100 | [diff] [blame] | 475 | visibility = [ "../api/task_queue:default_task_queue_factory" ] |
Tommi | 8d2c5a8 | 2018-03-19 11:12:48 +0100 | [diff] [blame] | 476 | sources = [ |
| 477 | "task_queue_gcd.cc", |
Danil Chapovalov | 47cf5ea | 2019-02-19 20:20:16 +0100 | [diff] [blame] | 478 | "task_queue_gcd.h", |
Tommi | 8d2c5a8 | 2018-03-19 11:12:48 +0100 | [diff] [blame] | 479 | ] |
| 480 | deps = [ |
| 481 | ":checks", |
| 482 | ":logging", |
Danil Chapovalov | 47cf5ea | 2019-02-19 20:20:16 +0100 | [diff] [blame] | 483 | "../api/task_queue", |
Danil Chapovalov | 47cf5ea | 2019-02-19 20:20:16 +0100 | [diff] [blame] | 484 | "//third_party/abseil-cpp/absl/strings", |
Tommi | 8d2c5a8 | 2018-03-19 11:12:48 +0100 | [diff] [blame] | 485 | ] |
| 486 | } |
| 487 | } |
| 488 | |
| 489 | if (is_win) { |
| 490 | rtc_source_set("rtc_task_queue_win") { |
Danil Chapovalov | 07a4f2b | 2019-03-05 19:58:28 +0100 | [diff] [blame] | 491 | visibility = [ "../api/task_queue:default_task_queue_factory" ] |
Tommi | 8d2c5a8 | 2018-03-19 11:12:48 +0100 | [diff] [blame] | 492 | sources = [ |
| 493 | "task_queue_win.cc", |
Danil Chapovalov | 826f2e7 | 2019-02-20 18:13:09 +0100 | [diff] [blame] | 494 | "task_queue_win.h", |
Tommi | 8d2c5a8 | 2018-03-19 11:12:48 +0100 | [diff] [blame] | 495 | ] |
| 496 | deps = [ |
| 497 | ":checks", |
| 498 | ":criticalsection", |
| 499 | ":logging", |
| 500 | ":macromagic", |
| 501 | ":platform_thread", |
Tommi | 8d2c5a8 | 2018-03-19 11:12:48 +0100 | [diff] [blame] | 502 | ":rtc_event", |
Tommi | 8d2c5a8 | 2018-03-19 11:12:48 +0100 | [diff] [blame] | 503 | ":safe_conversions", |
| 504 | ":timeutils", |
Danil Chapovalov | 826f2e7 | 2019-02-20 18:13:09 +0100 | [diff] [blame] | 505 | "../api/task_queue", |
Danil Chapovalov | 826f2e7 | 2019-02-20 18:13:09 +0100 | [diff] [blame] | 506 | "//third_party/abseil-cpp/absl/strings", |
Tommi | 8d2c5a8 | 2018-03-19 11:12:48 +0100 | [diff] [blame] | 507 | ] |
| 508 | } |
| 509 | } |
| 510 | |
Robin Raymond | 22027b9 | 2018-11-23 09:07:50 -0500 | [diff] [blame] | 511 | rtc_source_set("rtc_task_queue_stdlib") { |
Robin Raymond | 22027b9 | 2018-11-23 09:07:50 -0500 | [diff] [blame] | 512 | sources = [ |
| 513 | "task_queue_stdlib.cc", |
Danil Chapovalov | fa52efa | 2019-02-21 11:13:58 +0100 | [diff] [blame] | 514 | "task_queue_stdlib.h", |
Robin Raymond | 22027b9 | 2018-11-23 09:07:50 -0500 | [diff] [blame] | 515 | ] |
| 516 | deps = [ |
| 517 | ":checks", |
| 518 | ":criticalsection", |
| 519 | ":logging", |
| 520 | ":macromagic", |
| 521 | ":platform_thread", |
Robin Raymond | 22027b9 | 2018-11-23 09:07:50 -0500 | [diff] [blame] | 522 | ":rtc_event", |
Robin Raymond | 22027b9 | 2018-11-23 09:07:50 -0500 | [diff] [blame] | 523 | ":safe_conversions", |
| 524 | ":timeutils", |
Danil Chapovalov | fa52efa | 2019-02-21 11:13:58 +0100 | [diff] [blame] | 525 | "../api/task_queue", |
Danil Chapovalov | fa52efa | 2019-02-21 11:13:58 +0100 | [diff] [blame] | 526 | "//third_party/abseil-cpp/absl/strings", |
Robin Raymond | 22027b9 | 2018-11-23 09:07:50 -0500 | [diff] [blame] | 527 | ] |
| 528 | } |
| 529 | |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 530 | rtc_static_library("weak_ptr") { |
| 531 | sources = [ |
| 532 | "weak_ptr.cc", |
| 533 | "weak_ptr.h", |
| 534 | ] |
| 535 | deps = [ |
Tommi | 8d2c5a8 | 2018-03-19 11:12:48 +0100 | [diff] [blame] | 536 | ":refcount", |
Mirko Bonadei | d970807 | 2019-01-25 20:26:48 +0100 | [diff] [blame] | 537 | "../api:scoped_refptr", |
Sebastian Jansson | b55015e | 2019-04-09 13:44:04 +0200 | [diff] [blame] | 538 | "synchronization:sequence_checker", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 539 | ] |
| 540 | } |
| 541 | |
| 542 | rtc_static_library("rtc_numerics") { |
| 543 | sources = [ |
| 544 | "numerics/exp_filter.cc", |
| 545 | "numerics/exp_filter.h", |
Yves Gerey | 890f62b | 2019-04-10 17:18:48 +0200 | [diff] [blame] | 546 | "numerics/math_utils.h", |
Ilya Nikolaevskiy | 2634199 | 2018-11-05 12:55:18 +0100 | [diff] [blame] | 547 | "numerics/moving_average.cc", |
| 548 | "numerics/moving_average.h", |
Ilya Nikolaevskiy | b968575 | 2017-11-01 14:01:00 +0100 | [diff] [blame] | 549 | "numerics/moving_median_filter.h", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 550 | "numerics/percentile_filter.h", |
Yves Gerey | 890f62b | 2019-04-10 17:18:48 +0200 | [diff] [blame] | 551 | "numerics/running_statistics.h", |
Artem Titov | e4ed6ea | 2019-01-11 11:02:19 +0100 | [diff] [blame] | 552 | "numerics/samples_stats_counter.cc", |
| 553 | "numerics/samples_stats_counter.h", |
Bjorn Terelius | a194e58 | 2017-10-25 13:07:09 +0200 | [diff] [blame] | 554 | "numerics/sequence_number_util.h", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 555 | ] |
| 556 | deps = [ |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 557 | ":checks", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 558 | ":rtc_base_approved", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 559 | ":safe_compare", |
Artem Titov | 89eaf16 | 2019-04-25 12:23:40 +0200 | [diff] [blame] | 560 | "../api:array_view", |
Artem Titov | 6fcdbc1 | 2019-09-11 11:45:40 +0200 | [diff] [blame] | 561 | "../api/units:timestamp", |
Steve Anton | 2acd163 | 2019-03-25 13:48:30 -0700 | [diff] [blame] | 562 | "//third_party/abseil-cpp/absl/algorithm:container", |
Danil Chapovalov | 0a1d189 | 2018-06-21 11:48:25 +0200 | [diff] [blame] | 563 | "//third_party/abseil-cpp/absl/types:optional", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 564 | ] |
| 565 | } |
| 566 | |
Mirko Bonadei | 6564366 | 2019-07-12 13:29:30 +0200 | [diff] [blame] | 567 | config("rtc_json_suppressions") { |
Mirko Bonadei | 9407776 | 2019-06-27 11:24:25 +0200 | [diff] [blame] | 568 | if (!is_win || is_clang) { |
Mirko Bonadei | 6564366 | 2019-07-12 13:29:30 +0200 | [diff] [blame] | 569 | cflags_cc = [ |
| 570 | # TODO(bugs.webrtc.org/10770): Update jsoncpp API usage and remove |
| 571 | # -Wno-deprecated-declarations. |
| 572 | "-Wno-deprecated-declarations", |
| 573 | |
Mirko Bonadei | 1cd6f32 | 2019-07-12 21:47:47 +0200 | [diff] [blame] | 574 | # TODO(bugs.webrtc.org/10814): Remove -Wno-undef as soon as it get |
Mirko Bonadei | 6564366 | 2019-07-12 13:29:30 +0200 | [diff] [blame] | 575 | # removed upstream. |
| 576 | "-Wno-undef", |
| 577 | ] |
Mirko Bonadei | 9407776 | 2019-06-27 11:24:25 +0200 | [diff] [blame] | 578 | } |
| 579 | } |
| 580 | |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 581 | rtc_source_set("rtc_json") { |
Mirko Bonadei | 6564366 | 2019-07-12 13:29:30 +0200 | [diff] [blame] | 582 | public_configs = [ ":rtc_json_suppressions" ] |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 583 | defines = [] |
| 584 | sources = [ |
Sam Zackrisson | b45bdb5 | 2018-10-02 16:25:59 +0200 | [diff] [blame] | 585 | "strings/json.cc", |
| 586 | "strings/json.h", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 587 | ] |
Jonas Olsson | 941a07c | 2018-09-13 10:07:07 +0200 | [diff] [blame] | 588 | deps = [ |
| 589 | ":stringutils", |
| 590 | ] |
Mirko Bonadei | a0e29fc | 2018-01-26 16:50:02 +0100 | [diff] [blame] | 591 | all_dependent_configs = [ "//third_party/jsoncpp:jsoncpp_config" ] |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 592 | if (rtc_build_json) { |
| 593 | public_deps = [ |
| 594 | "//third_party/jsoncpp", |
| 595 | ] |
| 596 | } else { |
| 597 | include_dirs = [ "$rtc_jsoncpp_root" ] |
| 598 | |
| 599 | # When defined changes the include path for json.h to where it is |
| 600 | # expected to be when building json outside of the standalone build. |
| 601 | defines += [ "WEBRTC_EXTERNAL_JSON" ] |
| 602 | } |
| 603 | } |
| 604 | |
Karl Wiberg | 28522dc | 2019-01-22 17:54:34 +0100 | [diff] [blame] | 605 | rtc_source_set("net_helpers") { |
Karl Wiberg | 0b6d0e6 | 2018-12-06 14:50:45 +0100 | [diff] [blame] | 606 | # TODO(bugs.webrtc.org/9987): This build target will soon contain |
| 607 | # the following files: |
| 608 | # sources = [ |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 609 | # "net_helpers.cc", |
| 610 | # "net_helpers.h", |
Karl Wiberg | 0b6d0e6 | 2018-12-06 14:50:45 +0100 | [diff] [blame] | 611 | # ] |
| 612 | } |
| 613 | |
Karl Wiberg | 28522dc | 2019-01-22 17:54:34 +0100 | [diff] [blame] | 614 | rtc_source_set("async_resolver_interface") { |
Karl Wiberg | 02f4e32 | 2019-02-11 00:43:43 +0100 | [diff] [blame] | 615 | visibility = [ "*" ] |
Karl Wiberg | 0b6d0e6 | 2018-12-06 14:50:45 +0100 | [diff] [blame] | 616 | # TODO(bugs.webrtc.org/9987): This build target will soon contain |
| 617 | # the following files: |
| 618 | # sources = [ |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 619 | # "async_resolver_interface.cc", |
| 620 | # "async_resolver_interface.h", |
Karl Wiberg | 0b6d0e6 | 2018-12-06 14:50:45 +0100 | [diff] [blame] | 621 | # ] |
| 622 | } |
| 623 | |
Karl Wiberg | 28522dc | 2019-01-22 17:54:34 +0100 | [diff] [blame] | 624 | rtc_source_set("ip_address") { |
Karl Wiberg | 02f4e32 | 2019-02-11 00:43:43 +0100 | [diff] [blame] | 625 | visibility = [ "*" ] |
Karl Wiberg | 0b6d0e6 | 2018-12-06 14:50:45 +0100 | [diff] [blame] | 626 | # TODO(bugs.webrtc.org/9987): This build target will soon contain |
| 627 | # the following files: |
| 628 | # sources = [ |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 629 | # "ip_address.cc", |
| 630 | # "ip_address.h", |
Karl Wiberg | 0b6d0e6 | 2018-12-06 14:50:45 +0100 | [diff] [blame] | 631 | # ] |
| 632 | } |
| 633 | |
Karl Wiberg | 28522dc | 2019-01-22 17:54:34 +0100 | [diff] [blame] | 634 | rtc_source_set("socket_address") { |
Karl Wiberg | 02f4e32 | 2019-02-11 00:43:43 +0100 | [diff] [blame] | 635 | visibility = [ "*" ] |
Karl Wiberg | 0b6d0e6 | 2018-12-06 14:50:45 +0100 | [diff] [blame] | 636 | # TODO(bugs.webrtc.org/9987): This build target will soon contain |
| 637 | # the following files: |
| 638 | # sources = [ |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 639 | # "socket_address.cc", |
| 640 | # "socket_address.h", |
Karl Wiberg | 0b6d0e6 | 2018-12-06 14:50:45 +0100 | [diff] [blame] | 641 | # ] |
| 642 | } |
| 643 | |
Karl Wiberg | 28522dc | 2019-01-22 17:54:34 +0100 | [diff] [blame] | 644 | rtc_source_set("null_socket_server") { |
Karl Wiberg | 0b6d0e6 | 2018-12-06 14:50:45 +0100 | [diff] [blame] | 645 | # TODO(bugs.webrtc.org/9987): This build target will soon contain |
| 646 | # the following files: |
| 647 | # sources = [ |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 648 | # "null_socket_server.cc", |
| 649 | # "null_socket_server.h", |
Karl Wiberg | 0b6d0e6 | 2018-12-06 14:50:45 +0100 | [diff] [blame] | 650 | # ] |
| 651 | } |
| 652 | |
Karl Wiberg | 28522dc | 2019-01-22 17:54:34 +0100 | [diff] [blame] | 653 | rtc_source_set("socket_server") { |
Karl Wiberg | 0b6d0e6 | 2018-12-06 14:50:45 +0100 | [diff] [blame] | 654 | # TODO(bugs.webrtc.org/9987): This build target will soon contain |
| 655 | # the following files: |
| 656 | # sources = [ |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 657 | # "socket_server.h", |
Karl Wiberg | 0b6d0e6 | 2018-12-06 14:50:45 +0100 | [diff] [blame] | 658 | # ] |
| 659 | } |
| 660 | |
| 661 | rtc_source_set("threading") { |
Karl Wiberg | 02f4e32 | 2019-02-11 00:43:43 +0100 | [diff] [blame] | 662 | visibility = [ "*" ] |
Karl Wiberg | 0b6d0e6 | 2018-12-06 14:50:45 +0100 | [diff] [blame] | 663 | # TODO(bugs.webrtc.org/9987): This build target will soon contain |
| 664 | # the following files: |
| 665 | # sources = [ |
| 666 | # "asyncresolver.cc", |
| 667 | # "asyncresolver.h", |
| 668 | # "defaultsocketserver.cc", |
| 669 | # "defaultsocketserver.h", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 670 | # "message_handler.cc", |
| 671 | # "message_handler.h", |
| 672 | # "message_queue.cc", |
| 673 | # "message_queue.h", |
| 674 | # "network_monitor.cc", |
| 675 | # "network_monitor.h", |
| 676 | # "physical_socket_server.cc", |
| 677 | # "physical_socket_server.h", |
| 678 | # "signal_thread.cc", |
| 679 | # "signal_thread.h", |
Karl Wiberg | 0b6d0e6 | 2018-12-06 14:50:45 +0100 | [diff] [blame] | 680 | # "thread.cc", |
| 681 | # "thread.h", |
| 682 | # ] |
| 683 | } |
| 684 | |
Karl Wiberg | 28522dc | 2019-01-22 17:54:34 +0100 | [diff] [blame] | 685 | rtc_source_set("socket_factory") { |
Karl Wiberg | 0b6d0e6 | 2018-12-06 14:50:45 +0100 | [diff] [blame] | 686 | # TODO(bugs.webrtc.org/9987): This build target will soon contain |
| 687 | # the following files: |
| 688 | # sources = [ |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 689 | # "socket_factory.h", |
Karl Wiberg | 0b6d0e6 | 2018-12-06 14:50:45 +0100 | [diff] [blame] | 690 | # ] |
| 691 | } |
| 692 | |
Karl Wiberg | 28522dc | 2019-01-22 17:54:34 +0100 | [diff] [blame] | 693 | rtc_source_set("async_socket") { |
Karl Wiberg | 0b6d0e6 | 2018-12-06 14:50:45 +0100 | [diff] [blame] | 694 | # TODO(bugs.webrtc.org/9987): This build target will soon contain |
| 695 | # the following files: |
| 696 | # sources = [ |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 697 | # "async_socket.cc", |
| 698 | # "async_socket.h", |
Karl Wiberg | 0b6d0e6 | 2018-12-06 14:50:45 +0100 | [diff] [blame] | 699 | # ] |
| 700 | } |
| 701 | |
| 702 | rtc_source_set("socket") { |
| 703 | # TODO(bugs.webrtc.org/9987): This build target will soon contain |
| 704 | # the following files: |
| 705 | # sources = [ |
| 706 | # "socket.cc", |
| 707 | # "socket.h", |
| 708 | # ] |
| 709 | } |
| 710 | |
| 711 | rtc_source_set("network_constants") { |
| 712 | # TODO(bugs.webrtc.org/9987): This build target will soon contain |
| 713 | # the following files: |
| 714 | # sources = [ |
| 715 | # "network_constants.h", |
| 716 | # ] |
| 717 | } |
| 718 | |
| 719 | if (is_android) { |
| 720 | rtc_source_set("ifaddrs_android") { |
| 721 | # TODO(bugs.webrtc.org/9987): This build target will soon contain |
| 722 | # the following files: |
| 723 | # sources = [ |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 724 | # "ifaddrs_android.cc", |
| 725 | # "ifaddrs_android.h", |
Karl Wiberg | 0b6d0e6 | 2018-12-06 14:50:45 +0100 | [diff] [blame] | 726 | # ] |
| 727 | } |
| 728 | } |
| 729 | |
| 730 | if (is_win) { |
| 731 | rtc_source_set("win32") { |
| 732 | # TODO(bugs.webrtc.org/9987): This build target will soon contain |
| 733 | # the following files: |
| 734 | # sources = [ |
| 735 | # "win32.cc", |
| 736 | # "win32.h", |
| 737 | # ] |
| 738 | } |
| 739 | } |
| 740 | |
mbonadei | 9c5e511 | 2017-09-05 05:17:02 -0700 | [diff] [blame] | 741 | rtc_static_library("rtc_base") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 +0000 | [diff] [blame] | 742 | visibility = [ "*" ] |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 743 | cflags = [] |
| 744 | cflags_cc = [] |
| 745 | libs = [] |
| 746 | defines = [] |
| 747 | deps = [ |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 748 | ":checks", |
Patrik Höglund | 3e11343 | 2017-12-15 14:40:10 +0100 | [diff] [blame] | 749 | ":stringutils", |
Joachim Bauch | 58daf40 | 2017-12-21 22:00:34 +0100 | [diff] [blame] | 750 | "../api:array_view", |
Mirko Bonadei | d970807 | 2019-01-25 20:26:48 +0100 | [diff] [blame] | 751 | "../api:scoped_refptr", |
Sebastian Jansson | e07864e | 2018-10-15 09:28:15 +0200 | [diff] [blame] | 752 | "network:sent_packet", |
Niels Möller | 23213d9 | 2019-01-22 11:01:24 +0100 | [diff] [blame] | 753 | "system:file_wrapper", |
Artem Titov | a76af0c | 2018-07-23 17:38:12 +0200 | [diff] [blame] | 754 | "third_party/base64", |
Artem Titov | e41c433 | 2018-07-25 15:04:28 +0200 | [diff] [blame] | 755 | "third_party/sigslot", |
Steve Anton | 2acd163 | 2019-03-25 13:48:30 -0700 | [diff] [blame] | 756 | "//third_party/abseil-cpp/absl/algorithm:container", |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 757 | "//third_party/abseil-cpp/absl/memory", |
Niels Möller | 3c7d599 | 2018-10-19 15:29:54 +0200 | [diff] [blame] | 758 | "//third_party/abseil-cpp/absl/strings", |
Danil Chapovalov | 0a1d189 | 2018-06-21 11:48:25 +0200 | [diff] [blame] | 759 | "//third_party/abseil-cpp/absl/types:optional", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 760 | ] |
| 761 | public_deps = [ |
| 762 | ":rtc_base_approved", |
| 763 | ] |
| 764 | public_configs = [] |
| 765 | |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 766 | sources = [ |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 767 | "async_invoker.cc", |
| 768 | "async_invoker.h", |
| 769 | "async_invoker_inl.h", |
| 770 | "async_packet_socket.cc", |
| 771 | "async_packet_socket.h", |
| 772 | "async_resolver_interface.cc", |
| 773 | "async_resolver_interface.h", |
| 774 | "async_socket.cc", |
| 775 | "async_socket.h", |
| 776 | "async_tcp_socket.cc", |
| 777 | "async_tcp_socket.h", |
| 778 | "async_udp_socket.cc", |
| 779 | "async_udp_socket.h", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 780 | "crc32.cc", |
| 781 | "crc32.h", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 782 | "crypt_string.cc", |
| 783 | "crypt_string.h", |
Sebastian Jansson | f9c5cf6 | 2018-02-28 16:04:26 +0100 | [diff] [blame] | 784 | "data_rate_limiter.cc", |
| 785 | "data_rate_limiter.h", |
Patrik Höglund | 76df0df | 2017-12-19 11:50:21 +0100 | [diff] [blame] | 786 | "dscp.h", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 787 | "file_rotating_stream.cc", |
| 788 | "file_rotating_stream.h", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 789 | "helpers.cc", |
| 790 | "helpers.h", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 791 | "http_common.cc", |
| 792 | "http_common.h", |
| 793 | "ip_address.cc", |
| 794 | "ip_address.h", |
Patrik Höglund | 76df0df | 2017-12-19 11:50:21 +0100 | [diff] [blame] | 795 | "keep_ref_until_done.h", |
Qingsi Wang | 0961933 | 2018-09-12 22:51:55 -0700 | [diff] [blame] | 796 | "mdns_responder_interface.h", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 797 | "message_digest.cc", |
| 798 | "message_digest.h", |
| 799 | "message_handler.cc", |
| 800 | "message_handler.h", |
| 801 | "message_queue.cc", |
| 802 | "message_queue.h", |
| 803 | "net_helper.cc", |
| 804 | "net_helper.h", |
| 805 | "net_helpers.cc", |
| 806 | "net_helpers.h", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 807 | "network.cc", |
| 808 | "network.h", |
Patrik Höglund | e2d6a06 | 2017-10-05 14:53:33 +0200 | [diff] [blame] | 809 | "network_constants.h", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 810 | "network_monitor.cc", |
| 811 | "network_monitor.h", |
| 812 | "network_route.h", |
| 813 | "null_socket_server.cc", |
| 814 | "null_socket_server.h", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 815 | "openssl.h", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 816 | "openssl_adapter.cc", |
| 817 | "openssl_adapter.h", |
| 818 | "openssl_certificate.cc", |
| 819 | "openssl_certificate.h", |
| 820 | "openssl_digest.cc", |
| 821 | "openssl_digest.h", |
| 822 | "openssl_identity.cc", |
| 823 | "openssl_identity.h", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 824 | "openssl_session_cache.cc", |
| 825 | "openssl_session_cache.h", |
| 826 | "openssl_stream_adapter.cc", |
| 827 | "openssl_stream_adapter.h", |
| 828 | "openssl_utility.cc", |
| 829 | "openssl_utility.h", |
| 830 | "physical_socket_server.cc", |
| 831 | "physical_socket_server.h", |
| 832 | "proxy_info.cc", |
| 833 | "proxy_info.h", |
| 834 | "rtc_certificate.cc", |
| 835 | "rtc_certificate.h", |
| 836 | "rtc_certificate_generator.cc", |
| 837 | "rtc_certificate_generator.h", |
| 838 | "signal_thread.cc", |
| 839 | "signal_thread.h", |
| 840 | "sigslot_repeater.h", |
Qingsi Wang | 6e641e6 | 2018-04-11 20:14:17 -0700 | [diff] [blame] | 841 | "socket.cc", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 842 | "socket.h", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 843 | "socket_adapters.cc", |
| 844 | "socket_adapters.h", |
| 845 | "socket_address.cc", |
| 846 | "socket_address.h", |
| 847 | "socket_address_pair.cc", |
| 848 | "socket_address_pair.h", |
| 849 | "socket_factory.h", |
| 850 | "socket_server.h", |
| 851 | "ssl_adapter.cc", |
| 852 | "ssl_adapter.h", |
| 853 | "ssl_certificate.cc", |
| 854 | "ssl_certificate.h", |
| 855 | "ssl_fingerprint.cc", |
| 856 | "ssl_fingerprint.h", |
| 857 | "ssl_identity.cc", |
| 858 | "ssl_identity.h", |
| 859 | "ssl_stream_adapter.cc", |
| 860 | "ssl_stream_adapter.h", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 861 | "stream.cc", |
| 862 | "stream.h", |
| 863 | "thread.cc", |
| 864 | "thread.h", |
Amit Hilbuch | dbb49df | 2019-01-23 14:54:24 -0800 | [diff] [blame] | 865 | "unique_id_generator.cc", |
| 866 | "unique_id_generator.h", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 867 | ] |
| 868 | |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 869 | if (build_with_chromium) { |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 870 | include_dirs = [ "../../boringssl/src/include" ] |
Niels Moller | 9d1840c | 2019-05-21 07:26:37 +0000 | [diff] [blame] | 871 | public_configs += [ ":rtc_base_chromium_config" ] |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 872 | } else { |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 873 | sources += [ |
| 874 | "callback.h", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 875 | "log_sinks.cc", |
| 876 | "log_sinks.h", |
| 877 | "numerics/math_utils.h", |
| 878 | "rolling_accumulator.h", |
| 879 | "ssl_roots.h", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 880 | ] |
| 881 | |
Yves Gerey | 3dfb680 | 2019-05-13 17:01:32 +0200 | [diff] [blame] | 882 | deps += [ ":rtc_numerics" ] |
| 883 | |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 884 | if (is_win) { |
Steve Anton | f380284 | 2019-01-24 19:07:40 -0800 | [diff] [blame] | 885 | sources += [ "win32_socket_init.h" ] |
Robin Raymond | ce1b140 | 2018-11-22 20:10:11 -0500 | [diff] [blame] | 886 | if (current_os != "winuwp") { |
| 887 | sources += [ |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 888 | "win32_socket_server.cc", |
| 889 | "win32_socket_server.h", |
Robin Raymond | ce1b140 | 2018-11-22 20:10:11 -0500 | [diff] [blame] | 890 | ] |
| 891 | } |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 892 | } |
| 893 | } # !build_with_chromium |
| 894 | |
| 895 | if (rtc_build_ssl) { |
| 896 | deps += [ "//third_party/boringssl" ] |
Dan Minor | 9cdd876 | 2018-01-16 10:40:39 -0500 | [diff] [blame] | 897 | } else { |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 898 | configs += [ ":external_ssl_library" ] |
| 899 | } |
| 900 | |
| 901 | if (is_android) { |
| 902 | sources += [ |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 903 | "ifaddrs_android.cc", |
| 904 | "ifaddrs_android.h", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 905 | ] |
| 906 | |
| 907 | libs += [ |
| 908 | "log", |
| 909 | "GLESv2", |
| 910 | ] |
| 911 | } |
| 912 | |
| 913 | if (is_ios || is_mac) { |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 914 | sources += [ "mac_ifaddrs_converter.cc" ] |
Kári Tristan Helgason | 62b1345 | 2018-10-12 12:57:49 +0200 | [diff] [blame] | 915 | deps += [ "system:cocoa_threading" ] |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 916 | } |
| 917 | |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 918 | if (is_linux) { |
| 919 | libs += [ |
| 920 | "dl", |
| 921 | "rt", |
| 922 | ] |
| 923 | } |
| 924 | |
Oleh Prypin | b3f78de | 2019-07-18 22:25:48 +0200 | [diff] [blame] | 925 | if (is_ios) { |
| 926 | libs += [ |
| 927 | "CFNetwork.framework", |
| 928 | "Foundation.framework", |
| 929 | "Security.framework", |
| 930 | "SystemConfiguration.framework", |
| 931 | "UIKit.framework", |
| 932 | ] |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 933 | } |
| 934 | |
| 935 | if (is_win) { |
| 936 | sources += [ |
| 937 | "win32.cc", |
| 938 | "win32.h", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 939 | "win32_window.cc", |
| 940 | "win32_window.h", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 941 | ] |
| 942 | |
| 943 | libs += [ |
| 944 | "crypt32.lib", |
| 945 | "iphlpapi.lib", |
| 946 | "secur32.lib", |
| 947 | ] |
| 948 | |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 949 | defines += [ "_CRT_NONSTDC_NO_DEPRECATE" ] |
| 950 | } |
| 951 | |
Fabrice de Gans-Riberi | 09a6cd5 | 2018-03-30 10:38:06 -0700 | [diff] [blame] | 952 | if (is_posix || is_fuchsia) { |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 953 | sources += [ |
| 954 | "ifaddrs_converter.cc", |
| 955 | "ifaddrs_converter.h", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 956 | ] |
| 957 | } |
| 958 | |
| 959 | if (is_nacl) { |
Mirko Bonadei | a7d8f19 | 2019-03-29 13:34:46 +0100 | [diff] [blame] | 960 | public_deps += [ "//native_client_sdk/src/libraries/nacl_io" ] # no-presubmit-check TODO(webrtc:8603) |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 961 | defines += [ "timezone=_timezone" ] |
| 962 | sources -= [ "ifaddrs_converter.cc" ] |
| 963 | } |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 964 | } |
| 965 | |
| 966 | rtc_source_set("gtest_prod") { |
| 967 | sources = [ |
| 968 | "gtest_prod_util.h", |
| 969 | ] |
| 970 | } |
| 971 | |
Mirko Bonadei | e3abb81 | 2018-11-23 13:15:08 +0100 | [diff] [blame] | 972 | rtc_source_set("gunit_helpers") { |
| 973 | testonly = true |
| 974 | sources = [ |
| 975 | "gunit.cc", |
| 976 | "gunit.h", |
| 977 | ] |
| 978 | deps = [ |
| 979 | ":logging", |
| 980 | ":rtc_base", |
| 981 | ":rtc_base_tests_utils", |
| 982 | ":stringutils", |
| 983 | "../test:test_support", |
Steve Anton | 68586e8 | 2018-12-13 17:41:25 -0800 | [diff] [blame] | 984 | "//third_party/abseil-cpp/absl/strings", |
Mirko Bonadei | e3abb81 | 2018-11-23 13:15:08 +0100 | [diff] [blame] | 985 | ] |
| 986 | } |
| 987 | |
| 988 | rtc_source_set("testclient") { |
| 989 | testonly = true |
| 990 | sources = [ |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 991 | "test_client.cc", |
| 992 | "test_client.h", |
Mirko Bonadei | e3abb81 | 2018-11-23 13:15:08 +0100 | [diff] [blame] | 993 | ] |
| 994 | deps = [ |
| 995 | ":criticalsection", |
| 996 | ":gunit_helpers", |
| 997 | ":macromagic", |
| 998 | ":rtc_base", |
| 999 | ":rtc_base_tests_utils", |
| 1000 | ":timeutils", |
Mirko Bonadei | e3abb81 | 2018-11-23 13:15:08 +0100 | [diff] [blame] | 1001 | ] |
| 1002 | } |
| 1003 | |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1004 | rtc_source_set("rtc_base_tests_utils") { |
| 1005 | testonly = true |
| 1006 | sources = [ |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1007 | "cpu_time.cc", |
| 1008 | "cpu_time.h", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 1009 | "fake_clock.cc", |
| 1010 | "fake_clock.h", |
Qingsi Wang | 0961933 | 2018-09-12 22:51:55 -0700 | [diff] [blame] | 1011 | "fake_mdns_responder.h", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 1012 | "fake_network.h", |
| 1013 | "fake_ssl_identity.cc", |
| 1014 | "fake_ssl_identity.h", |
| 1015 | "firewall_socket_server.cc", |
| 1016 | "firewall_socket_server.h", |
Niels Möller | e7547d5 | 2018-11-01 09:33:08 +0100 | [diff] [blame] | 1017 | "memory_stream.cc", |
| 1018 | "memory_stream.h", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1019 | "memory_usage.cc", |
| 1020 | "memory_usage.h", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 1021 | "nat_server.cc", |
| 1022 | "nat_server.h", |
| 1023 | "nat_socket_factory.cc", |
| 1024 | "nat_socket_factory.h", |
| 1025 | "nat_types.cc", |
| 1026 | "nat_types.h", |
| 1027 | "proxy_server.cc", |
| 1028 | "proxy_server.h", |
Niels Möller | 4415315 | 2018-12-17 14:04:05 +0100 | [diff] [blame] | 1029 | "server_socket_adapters.cc", |
| 1030 | "server_socket_adapters.h", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 1031 | "sigslot_tester.h", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 1032 | "socket_stream.cc", |
| 1033 | "socket_stream.h", |
| 1034 | "test_base64.h", |
| 1035 | "test_certificate_verifier.h", |
| 1036 | "test_echo_server.cc", |
| 1037 | "test_echo_server.h", |
| 1038 | "test_utils.cc", |
| 1039 | "test_utils.h", |
| 1040 | "virtual_socket_server.cc", |
| 1041 | "virtual_socket_server.h", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1042 | ] |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1043 | deps = [ |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 1044 | ":checks", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1045 | ":rtc_base", |
Sebastian Jansson | 5f83cf0 | 2018-05-08 14:52:22 +0200 | [diff] [blame] | 1046 | "../api/units:time_delta", |
Sebastian Jansson | d624c39 | 2019-04-17 10:36:03 +0200 | [diff] [blame] | 1047 | "../api/units:timestamp", |
Niels Möller | 1333948 | 2019-03-28 13:30:15 +0100 | [diff] [blame] | 1048 | "memory:fifo_buffer", |
Artem Titov | e41c433 | 2018-07-25 15:04:28 +0200 | [diff] [blame] | 1049 | "third_party/sigslot", |
Steve Anton | 2acd163 | 2019-03-25 13:48:30 -0700 | [diff] [blame] | 1050 | "//third_party/abseil-cpp/absl/algorithm:container", |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 1051 | "//third_party/abseil-cpp/absl/memory", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1052 | ] |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1053 | } |
| 1054 | |
Danil Chapovalov | d26a916 | 2019-03-19 18:08:37 +0100 | [diff] [blame] | 1055 | rtc_source_set("task_queue_for_test") { |
Tommi | da8781f | 2018-02-19 12:41:43 +0100 | [diff] [blame] | 1056 | testonly = true |
| 1057 | |
| 1058 | sources = [ |
| 1059 | "task_queue_for_test.cc", |
| 1060 | "task_queue_for_test.h", |
| 1061 | ] |
| 1062 | deps = [ |
| 1063 | ":checks", |
Danil Chapovalov | d26a916 | 2019-03-19 18:08:37 +0100 | [diff] [blame] | 1064 | ":macromagic", |
| 1065 | ":rtc_event", |
Tommi | da8781f | 2018-02-19 12:41:43 +0100 | [diff] [blame] | 1066 | ":rtc_task_queue", |
Danil Chapovalov | d26a916 | 2019-03-19 18:08:37 +0100 | [diff] [blame] | 1067 | "../api/task_queue:default_task_queue_factory", |
Danil Chapovalov | 1aa7581 | 2019-03-05 11:11:35 +0100 | [diff] [blame] | 1068 | "task_utils:to_queued_task", |
Danil Chapovalov | d26a916 | 2019-03-19 18:08:37 +0100 | [diff] [blame] | 1069 | "//third_party/abseil-cpp/absl/strings", |
Tommi | da8781f | 2018-02-19 12:41:43 +0100 | [diff] [blame] | 1070 | ] |
| 1071 | } |
| 1072 | |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1073 | if (rtc_include_tests) { |
Artem Titov | e41c433 | 2018-07-25 15:04:28 +0200 | [diff] [blame] | 1074 | rtc_source_set("sigslot_unittest") { |
| 1075 | testonly = true |
| 1076 | sources = [ |
| 1077 | "sigslot_unittest.cc", |
| 1078 | ] |
| 1079 | deps = [ |
Mirko Bonadei | e3abb81 | 2018-11-23 13:15:08 +0100 | [diff] [blame] | 1080 | ":gunit_helpers", |
Artem Titov | e41c433 | 2018-07-25 15:04:28 +0200 | [diff] [blame] | 1081 | ":rtc_base", |
| 1082 | ":rtc_base_tests_utils", |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame] | 1083 | "../test:test_support", |
Artem Titov | e41c433 | 2018-07-25 15:04:28 +0200 | [diff] [blame] | 1084 | "third_party/sigslot", |
| 1085 | ] |
| 1086 | } |
| 1087 | |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1088 | rtc_source_set("rtc_base_nonparallel_tests") { |
| 1089 | testonly = true |
| 1090 | |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1091 | sources = [ |
| 1092 | "cpu_time_unittest.cc", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 1093 | "file_rotating_stream_unittest.cc", |
| 1094 | "null_socket_server_unittest.cc", |
| 1095 | "physical_socket_server_unittest.cc", |
| 1096 | "socket_address_unittest.cc", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1097 | "socket_unittest.cc", |
| 1098 | "socket_unittest.h", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1099 | ] |
| 1100 | deps = [ |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 1101 | ":checks", |
Mirko Bonadei | e3abb81 | 2018-11-23 13:15:08 +0100 | [diff] [blame] | 1102 | ":gunit_helpers", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1103 | ":rtc_base", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1104 | ":rtc_base_tests_utils", |
Mirko Bonadei | e3abb81 | 2018-11-23 13:15:08 +0100 | [diff] [blame] | 1105 | ":testclient", |
Artem Titov | 94b57c0 | 2019-03-21 13:35:10 +0100 | [diff] [blame] | 1106 | "../system_wrappers", |
Patrik Höglund | 7696bef | 2018-03-15 15:05:39 +0100 | [diff] [blame] | 1107 | "../test:fileutils", |
Niels Möller | 04a3cc1 | 2019-05-21 13:01:58 +0200 | [diff] [blame] | 1108 | "../test:test_main", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1109 | "../test:test_support", |
Artem Titov | 94b57c0 | 2019-03-21 13:35:10 +0100 | [diff] [blame] | 1110 | "third_party/sigslot", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1111 | "//testing/gtest", |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 1112 | "//third_party/abseil-cpp/absl/memory", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1113 | ] |
| 1114 | if (is_win) { |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 1115 | sources += [ "win32_socket_server_unittest.cc" ] |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1116 | } |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1117 | } |
| 1118 | |
| 1119 | rtc_source_set("rtc_base_approved_unittests") { |
| 1120 | testonly = true |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1121 | sources = [ |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 1122 | "atomic_ops_unittest.cc", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1123 | "base64_unittest.cc", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1124 | "bind_unittest.cc", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 1125 | "bit_buffer_unittest.cc", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 1126 | "buffer_queue_unittest.cc", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1127 | "buffer_unittest.cc", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 1128 | "byte_buffer_unittest.cc", |
| 1129 | "byte_order_unittest.cc", |
| 1130 | "copy_on_write_buffer_unittest.cc", |
| 1131 | "critical_section_unittest.cc", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1132 | "event_tracer_unittest.cc", |
| 1133 | "event_unittest.cc", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1134 | "logging_unittest.cc", |
Karl Wiberg | 65c3922 | 2017-11-22 12:25:14 +0100 | [diff] [blame] | 1135 | "numerics/histogram_percentile_counter_unittest.cc", |
| 1136 | "numerics/mod_ops_unittest.cc", |
| 1137 | "numerics/moving_max_counter_unittest.cc", |
Karl Wiberg | e40468b | 2017-11-22 10:42:26 +0100 | [diff] [blame] | 1138 | "numerics/safe_compare_unittest.cc", |
| 1139 | "numerics/safe_minmax_unittest.cc", |
Ilya Nikolaevskiy | 0beed5d | 2018-05-22 10:54:30 +0200 | [diff] [blame] | 1140 | "numerics/sample_counter_unittest.cc", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 1141 | "one_time_event_unittest.cc", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1142 | "platform_thread_unittest.cc", |
| 1143 | "random_unittest.cc", |
| 1144 | "rate_limiter_unittest.cc", |
| 1145 | "rate_statistics_unittest.cc", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 1146 | "rate_tracker_unittest.cc", |
| 1147 | "ref_counted_object_unittest.cc", |
Alessio Bazzica | d31843e | 2018-04-06 16:18:21 +0200 | [diff] [blame] | 1148 | "sanitizer_unittest.cc", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 1149 | "string_encode_unittest.cc", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1150 | "string_to_number_unittest.cc", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 1151 | "string_utils_unittest.cc", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1152 | "stringize_macros_unittest.cc", |
Tommi | fef0500 | 2018-02-27 13:51:08 +0100 | [diff] [blame] | 1153 | "strings/string_builder_unittest.cc", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1154 | "swap_queue_unittest.cc", |
| 1155 | "thread_annotations_unittest.cc", |
| 1156 | "thread_checker_unittest.cc", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 1157 | "time_utils_unittest.cc", |
| 1158 | "timestamp_aligner_unittest.cc", |
| 1159 | "virtual_socket_unittest.cc", |
Joachim Bauch | 5b32f23 | 2018-03-07 20:02:26 +0100 | [diff] [blame] | 1160 | "zero_memory_unittest.cc", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1161 | ] |
henrika | 3ca48a6 | 2018-05-21 13:34:51 +0200 | [diff] [blame] | 1162 | if (is_win) { |
| 1163 | sources += [ "win/windows_version_unittest.cc" ] |
| 1164 | } |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1165 | deps = [ |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 1166 | ":checks", |
Mirko Bonadei | e3abb81 | 2018-11-23 13:15:08 +0100 | [diff] [blame] | 1167 | ":gunit_helpers", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 1168 | ":rate_limiter", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1169 | ":rtc_base", |
| 1170 | ":rtc_base_approved", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1171 | ":rtc_base_tests_utils", |
| 1172 | ":rtc_task_queue", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 1173 | ":safe_compare", |
Karl Wiberg | 12edf4c | 2018-03-07 14:18:56 +0100 | [diff] [blame] | 1174 | ":safe_minmax", |
Alessio Bazzica | d31843e | 2018-04-06 16:18:21 +0200 | [diff] [blame] | 1175 | ":sanitizer", |
Patrik Höglund | 3e11343 | 2017-12-15 14:40:10 +0100 | [diff] [blame] | 1176 | ":stringutils", |
Mirko Bonadei | e3abb81 | 2018-11-23 13:15:08 +0100 | [diff] [blame] | 1177 | ":testclient", |
kwiberg | 529662a | 2017-09-04 05:43:17 -0700 | [diff] [blame] | 1178 | "../api:array_view", |
Mirko Bonadei | d970807 | 2019-01-25 20:26:48 +0100 | [diff] [blame] | 1179 | "../api:scoped_refptr", |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame] | 1180 | "../api/units:time_delta", |
Artem Titov | 94b57c0 | 2019-03-21 13:35:10 +0100 | [diff] [blame] | 1181 | "../system_wrappers", |
Patrik Höglund | 7696bef | 2018-03-15 15:05:39 +0100 | [diff] [blame] | 1182 | "../test:fileutils", |
Niels Möller | 04a3cc1 | 2019-05-21 13:01:58 +0200 | [diff] [blame] | 1183 | "../test:test_main", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1184 | "../test:test_support", |
Karl Wiberg | 29e7bee | 2018-03-22 14:11:52 +0100 | [diff] [blame] | 1185 | "memory:unittests", |
Artem Titov | a76af0c | 2018-07-23 17:38:12 +0200 | [diff] [blame] | 1186 | "third_party/base64", |
Artem Titov | 94b57c0 | 2019-03-21 13:35:10 +0100 | [diff] [blame] | 1187 | "third_party/sigslot", |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 1188 | "//third_party/abseil-cpp/absl/memory", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1189 | ] |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1190 | } |
| 1191 | |
| 1192 | rtc_source_set("rtc_task_queue_unittests") { |
| 1193 | testonly = true |
| 1194 | |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1195 | sources = [ |
| 1196 | "task_queue_unittest.cc", |
| 1197 | ] |
| 1198 | deps = [ |
Mirko Bonadei | e3abb81 | 2018-11-23 13:15:08 +0100 | [diff] [blame] | 1199 | ":gunit_helpers", |
mbonadei | 95c8f65 | 2017-08-27 23:40:10 -0700 | [diff] [blame] | 1200 | ":rtc_base_approved", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1201 | ":rtc_base_tests_utils", |
| 1202 | ":rtc_task_queue", |
Danil Chapovalov | 07122bc | 2019-03-26 14:37:01 +0100 | [diff] [blame] | 1203 | ":task_queue_for_test", |
Niels Möller | 04a3cc1 | 2019-05-21 13:01:58 +0200 | [diff] [blame] | 1204 | "../test:test_main", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1205 | "../test:test_support", |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame] | 1206 | "//third_party/abseil-cpp/absl/memory", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1207 | ] |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1208 | } |
| 1209 | |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1210 | rtc_source_set("weak_ptr_unittests") { |
| 1211 | testonly = true |
| 1212 | |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1213 | sources = [ |
| 1214 | "weak_ptr_unittest.cc", |
| 1215 | ] |
| 1216 | deps = [ |
Mirko Bonadei | e3abb81 | 2018-11-23 13:15:08 +0100 | [diff] [blame] | 1217 | ":gunit_helpers", |
Mirko Bonadei | ca27091 | 2018-10-10 15:51:03 +0200 | [diff] [blame] | 1218 | ":rtc_base_approved", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1219 | ":rtc_base_tests_utils", |
Tommi | 8d2c5a8 | 2018-03-19 11:12:48 +0100 | [diff] [blame] | 1220 | ":rtc_event", |
Danil Chapovalov | 07122bc | 2019-03-26 14:37:01 +0100 | [diff] [blame] | 1221 | ":task_queue_for_test", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1222 | ":weak_ptr", |
Niels Möller | 04a3cc1 | 2019-05-21 13:01:58 +0200 | [diff] [blame] | 1223 | "../test:test_main", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1224 | "../test:test_support", |
| 1225 | ] |
| 1226 | } |
| 1227 | |
| 1228 | rtc_source_set("rtc_numerics_unittests") { |
| 1229 | testonly = true |
| 1230 | |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1231 | sources = [ |
| 1232 | "numerics/exp_filter_unittest.cc", |
Ilya Nikolaevskiy | 2634199 | 2018-11-05 12:55:18 +0100 | [diff] [blame] | 1233 | "numerics/moving_average_unittest.cc", |
Ilya Nikolaevskiy | b968575 | 2017-11-01 14:01:00 +0100 | [diff] [blame] | 1234 | "numerics/moving_median_filter_unittest.cc", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1235 | "numerics/percentile_filter_unittest.cc", |
Yves Gerey | 890f62b | 2019-04-10 17:18:48 +0200 | [diff] [blame] | 1236 | "numerics/running_statistics_unittest.cc", |
Artem Titov | e4ed6ea | 2019-01-11 11:02:19 +0100 | [diff] [blame] | 1237 | "numerics/samples_stats_counter_unittest.cc", |
Bjorn Terelius | a194e58 | 2017-10-25 13:07:09 +0200 | [diff] [blame] | 1238 | "numerics/sequence_number_util_unittest.cc", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1239 | ] |
| 1240 | deps = [ |
| 1241 | ":rtc_base_approved", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1242 | ":rtc_numerics", |
Niels Möller | 04a3cc1 | 2019-05-21 13:01:58 +0200 | [diff] [blame] | 1243 | "../test:test_main", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1244 | "../test:test_support", |
Steve Anton | 2acd163 | 2019-03-25 13:48:30 -0700 | [diff] [blame] | 1245 | "//third_party/abseil-cpp/absl/algorithm:container", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1246 | ] |
| 1247 | } |
| 1248 | |
Sam Zackrisson | b45bdb5 | 2018-10-02 16:25:59 +0200 | [diff] [blame] | 1249 | rtc_source_set("rtc_json_unittests") { |
| 1250 | testonly = true |
| 1251 | |
| 1252 | sources = [ |
| 1253 | "strings/json_unittest.cc", |
| 1254 | ] |
| 1255 | deps = [ |
Mirko Bonadei | e3abb81 | 2018-11-23 13:15:08 +0100 | [diff] [blame] | 1256 | ":gunit_helpers", |
Sam Zackrisson | b45bdb5 | 2018-10-02 16:25:59 +0200 | [diff] [blame] | 1257 | ":rtc_base_tests_utils", |
| 1258 | ":rtc_json", |
Niels Möller | 04a3cc1 | 2019-05-21 13:01:58 +0200 | [diff] [blame] | 1259 | "../test:test_main", |
Sam Zackrisson | b45bdb5 | 2018-10-02 16:25:59 +0200 | [diff] [blame] | 1260 | "../test:test_support", |
| 1261 | ] |
| 1262 | } |
| 1263 | |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1264 | rtc_source_set("rtc_base_unittests") { |
| 1265 | testonly = true |
Benjamin Wright | d6f86e8 | 2018-05-08 13:12:25 -0700 | [diff] [blame] | 1266 | defines = [] |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1267 | |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1268 | sources = [ |
| 1269 | "callback_unittest.cc", |
| 1270 | "crc32_unittest.cc", |
Sebastian Jansson | f9c5cf6 | 2018-02-28 16:04:26 +0100 | [diff] [blame] | 1271 | "data_rate_limiter_unittest.cc", |
Sebastian Jansson | 7d6a259 | 2019-03-22 15:38:16 +0100 | [diff] [blame] | 1272 | "fake_clock_unittest.cc", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1273 | "helpers_unittest.cc", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 1274 | "ip_address_unittest.cc", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1275 | "memory_usage_unittest.cc", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 1276 | "message_digest_unittest.cc", |
| 1277 | "message_queue_unittest.cc", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1278 | "nat_unittest.cc", |
| 1279 | "network_unittest.cc", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1280 | "proxy_unittest.cc", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 1281 | "rolling_accumulator_unittest.cc", |
| 1282 | "rtc_certificate_generator_unittest.cc", |
| 1283 | "rtc_certificate_unittest.cc", |
| 1284 | "signal_thread_unittest.cc", |
| 1285 | "sigslot_tester_unittest.cc", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 1286 | "test_client_unittest.cc", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1287 | "thread_unittest.cc", |
Amit Hilbuch | dbb49df | 2019-01-23 14:54:24 -0800 | [diff] [blame] | 1288 | "unique_id_generator_unittest.cc", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1289 | ] |
| 1290 | if (is_win) { |
| 1291 | sources += [ |
| 1292 | "win32_unittest.cc", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 1293 | "win32_window_unittest.cc", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1294 | ] |
| 1295 | } |
Fabrice de Gans-Riberi | 09a6cd5 | 2018-03-30 10:38:06 -0700 | [diff] [blame] | 1296 | if (is_posix || is_fuchsia) { |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1297 | sources += [ |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 1298 | "openssl_adapter_unittest.cc", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 1299 | "openssl_session_cache_unittest.cc", |
| 1300 | "openssl_utility_unittest.cc", |
| 1301 | "ssl_adapter_unittest.cc", |
| 1302 | "ssl_identity_unittest.cc", |
| 1303 | "ssl_stream_adapter_unittest.cc", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1304 | ] |
| 1305 | } |
| 1306 | deps = [ |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 1307 | ":checks", |
Mirko Bonadei | e3abb81 | 2018-11-23 13:15:08 +0100 | [diff] [blame] | 1308 | ":gunit_helpers", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1309 | ":rtc_base_tests_utils", |
Patrik Höglund | 3e11343 | 2017-12-15 14:40:10 +0100 | [diff] [blame] | 1310 | ":stringutils", |
Mirko Bonadei | e3abb81 | 2018-11-23 13:15:08 +0100 | [diff] [blame] | 1311 | ":testclient", |
Joachim Bauch | 58daf40 | 2017-12-21 22:00:34 +0100 | [diff] [blame] | 1312 | "../api:array_view", |
Patrik Höglund | 7696bef | 2018-03-15 15:05:39 +0100 | [diff] [blame] | 1313 | "../test:fileutils", |
Niels Möller | 04a3cc1 | 2019-05-21 13:01:58 +0200 | [diff] [blame] | 1314 | "../test:test_main", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1315 | "../test:test_support", |
Niels Möller | 1333948 | 2019-03-28 13:30:15 +0100 | [diff] [blame] | 1316 | "memory:fifo_buffer", |
Sebastian Jansson | 7a60339 | 2019-03-20 16:50:35 +0100 | [diff] [blame] | 1317 | "synchronization:synchronization_unittests", |
Artem Titov | e41c433 | 2018-07-25 15:04:28 +0200 | [diff] [blame] | 1318 | "third_party/sigslot", |
Steve Anton | 2acd163 | 2019-03-25 13:48:30 -0700 | [diff] [blame] | 1319 | "//third_party/abseil-cpp/absl/algorithm:container", |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 1320 | "//third_party/abseil-cpp/absl/memory", |
Niels Möller | 04a3cc1 | 2019-05-21 13:01:58 +0200 | [diff] [blame] | 1321 | "//third_party/abseil-cpp/absl/strings", |
Danil Chapovalov | 0a1d189 | 2018-06-21 11:48:25 +0200 | [diff] [blame] | 1322 | "//third_party/abseil-cpp/absl/types:optional", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1323 | ] |
| 1324 | public_deps = [ |
| 1325 | ":rtc_base", |
| 1326 | ] |
Diogo Real | 1dca9d5 | 2017-08-29 12:18:32 -0700 | [diff] [blame] | 1327 | if (build_with_chromium) { |
| 1328 | include_dirs = [ "../../boringssl/src/include" ] |
| 1329 | } |
| 1330 | if (rtc_build_ssl) { |
| 1331 | deps += [ "//third_party/boringssl" ] |
| 1332 | } else { |
| 1333 | configs += [ ":external_ssl_library" ] |
| 1334 | } |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1335 | } |
| 1336 | } |
| 1337 | |
Henrik Kjellander | 73e2180 | 2017-06-20 08:38:58 +0200 | [diff] [blame] | 1338 | if (is_android) { |
Mirko Bonadei | fbb3b7d | 2017-11-07 15:36:33 +0000 | [diff] [blame] | 1339 | rtc_android_library("base_java") { |
Sami Kalliomäki | 51f599b | 2019-07-03 14:13:08 +0200 | [diff] [blame] | 1340 | visibility = [ "*" ] |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1341 | java_files = [ |
| 1342 | "java/src/org/webrtc/ContextUtils.java", |
Paulina Hensman | 1ec04f1 | 2018-06-21 14:31:38 +0200 | [diff] [blame] | 1343 | "java/src/org/webrtc/Loggable.java", |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 1344 | "java/src/org/webrtc/Logging.java", |
| 1345 | "java/src/org/webrtc/Size.java", |
| 1346 | "java/src/org/webrtc/ThreadUtils.java", |
| 1347 | ] |
Artem Titarenko | 69540f4 | 2018-12-10 12:30:46 +0100 | [diff] [blame] | 1348 | deps = [ |
Peter Wen | 7bc331f | 2019-03-06 09:18:57 -0500 | [diff] [blame] | 1349 | "//third_party/android_deps:com_android_support_support_annotations_java", |
Artem Titarenko | 69540f4 | 2018-12-10 12:30:46 +0100 | [diff] [blame] | 1350 | ] |
Henrik Kjellander | 73e2180 | 2017-06-20 08:38:58 +0200 | [diff] [blame] | 1351 | } |
| 1352 | } |