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