blob: 694823cdf62ff2f8691aafc9a7c09d303304a10c [file] [log] [blame]
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001# Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
Henrik Kjellander73e21802017-06-20 08:38:58 +02002#
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 Kjellanderc0362762017-06-29 08:03:04 +02009import("//build/config/crypto.gni")
10import("//build/config/ui.gni")
Henrik Kjellander73e21802017-06-20 08:38:58 +020011import("../webrtc.gni")
12
13if (is_android) {
14 import("//build/config/android/config.gni")
15 import("//build/config/android/rules.gni")
16}
17
Niels Moller9d1840c2019-05-21 07:26:37 +000018config("rtc_base_chromium_config") {
19 defines = [ "NO_MAIN_THREAD_WRAPPING" ]
20}
21
Dan Minor9cdd8762018-01-16 10:40:39 -050022if (!rtc_build_ssl) {
Henrik Kjellanderc0362762017-06-29 08:03:04 +020023 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 Prypindd214742018-07-17 13:49:46 +020030rtc_source_set("protobuf_utils") {
Henrik Kjellanderc0362762017-06-29 08:03:04 +020031 sources = [
32 "protobuf_utils.h",
33 ]
34 if (rtc_enable_protobuf) {
Mirko Bonadeid8661a02018-08-13 15:04:25 +020035 public_configs = [ "//third_party/protobuf:protobuf_config" ]
36 deps = [
Henrik Kjellanderc0362762017-06-29 08:03:04 +020037 "//third_party/protobuf:protobuf_lite",
38 ]
39 }
40}
41
Oleh Prypindd214742018-07-17 13:49:46 +020042rtc_source_set("compile_assert_c") {
Henrik Kjellanderc0362762017-06-29 08:03:04 +020043 sources = [
44 "compile_assert_c.h",
45 ]
46}
47
Mirko Bonadeica270912018-10-10 15:51:03 +020048# The subset of rtc_base approved for use outside of libjingle.
Ilya Nikolaevskiy26341992018-11-05 12:55:18 +010049# TODO(bugs.webrtc.org/9838): Create small and focused build targets and remove
Mirko Bonadeica270912018-10-10 15:51:03 +020050# the old concept of rtc_base and rtc_base_approved.
mbonadeibc378472017-09-11 03:43:34 -070051rtc_source_set("rtc_base_approved") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000052 visibility = [ "*" ]
Mirko Bonadeica270912018-10-10 15:51:03 +020053 deps = [
54 ":checks",
55 ":rtc_task_queue",
56 ":safe_compare",
57 ":type_traits",
Mirko Bonadeica270912018-10-10 15:51:03 +020058 "../api:array_view",
Mirko Bonadeid9708072019-01-25 20:26:48 +010059 "../api:scoped_refptr",
Mirko Bonadeica270912018-10-10 15:51:03 +020060 "system:arch",
61 "system:unused",
62 "third_party/base64",
Mirko Bonadeica270912018-10-10 15:51:03 +020063 "//third_party/abseil-cpp/absl/types:optional",
64 ]
Mirko Bonadeia7d8f192019-03-29 13:34:46 +010065 public_deps = [] # no-presubmit-check TODO(webrtc:8603)
Mirko Bonadeica270912018-10-10 15:51:03 +020066
67 sources = [
68 "bind.h",
Steve Anton10542f22019-01-11 09:11:00 -080069 "bit_buffer.cc",
70 "bit_buffer.h",
Mirko Bonadeica270912018-10-10 15:51:03 +020071 "buffer.h",
Steve Anton10542f22019-01-11 09:11:00 -080072 "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 Bonadeica270912018-10-10 15:51:03 +020079 "event_tracer.cc",
80 "event_tracer.h",
Mirko Bonadeica270912018-10-10 15:51:03 +020081 "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 Anton10542f22019-01-11 09:11:00 -080091 "one_time_event.h",
Mirko Bonadeica270912018-10-10 15:51:03 +020092 "race_checker.cc",
93 "race_checker.h",
94 "random.cc",
95 "random.h",
96 "rate_statistics.cc",
97 "rate_statistics.h",
Steve Anton10542f22019-01-11 09:11:00 -080098 "rate_tracker.cc",
99 "rate_tracker.h",
Mirko Bonadeica270912018-10-10 15:51:03 +0200100 "swap_queue.h",
101 "template_util.h",
Steve Anton10542f22019-01-11 09:11:00 -0800102 "timestamp_aligner.cc",
103 "timestamp_aligner.h",
Mirko Bonadeica270912018-10-10 15:51:03 +0200104 "trace_event.h",
105 "zero_memory.cc",
106 "zero_memory.h",
107 ]
108
Mirko Bonadeica270912018-10-10 15:51:03 +0200109 if (is_win) {
110 sources += [
Mirko Bonadeica270912018-10-10 15:51:03 +0200111 "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 Bonadeia7d8f192019-03-29 13:34:46 +0100120 public_deps += [ "//native_client_sdk/src/libraries/nacl_io" ] # no-presubmit-check TODO(webrtc:8603)
Mirko Bonadeica270912018-10-10 15:51:03 +0200121 }
122
123 if (is_android) {
124 libs = [ "log" ]
125 }
126
Mirko Bonadeia7d8f192019-03-29 13:34:46 +0100127 public_deps += [ # no-presubmit-check TODO(webrtc:8603)
Tommi8d2c5a82018-03-19 11:12:48 +0100128 ":atomicops",
129 ":criticalsection",
130 ":logging",
131 ":macromagic",
132 ":platform_thread",
133 ":platform_thread_types",
Tommi8d2c5a82018-03-19 11:12:48 +0100134 ":refcount",
Tommi8d2c5a82018-03-19 11:12:48 +0100135 ":rtc_event",
136 ":safe_conversions",
137 ":stringutils",
138 ":thread_checker",
139 ":timeutils",
mbonadeibc378472017-09-11 03:43:34 -0700140 ]
mbonadeibc378472017-09-11 03:43:34 -0700141}
142
Tommi8d2c5a82018-03-19 11:12:48 +0100143rtc_source_set("macromagic") {
Mirko Bonadei2ad8c432018-08-09 10:54:40 +0200144 # TODO(bugs.webrtc.org/9606): This should not be public.
145 visibility = [ "*" ]
Tommi8d2c5a82018-03-19 11:12:48 +0100146 sources = [
147 "arraysize.h",
Steve Anton10542f22019-01-11 09:11:00 -0800148 "constructor_magic.h",
Tommi8d2c5a82018-03-19 11:12:48 +0100149 "format_macros.h",
150 "stringize_macros.h",
151 "thread_annotations.h",
152 ]
Niels Möllera12c42a2018-07-25 16:05:48 +0200153 deps = [
154 "system:arch",
155 ]
Tommi8d2c5a82018-03-19 11:12:48 +0100156}
157
158rtc_source_set("platform_thread_types") {
159 sources = [
160 "platform_thread_types.cc",
161 "platform_thread_types.h",
162 ]
163}
164
Tommi8d2c5a82018-03-19 11:12:48 +0100165rtc_source_set("refcount") {
Mirko Bonadeica14a3a2018-08-09 09:47:12 +0200166 visibility = [ "*" ]
Tommi8d2c5a82018-03-19 11:12:48 +0100167 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800168 "ref_count.h",
169 "ref_counted_object.h",
170 "ref_counter.h",
Tommi8d2c5a82018-03-19 11:12:48 +0100171 ]
172 deps = [
173 ":atomicops",
174 ":macromagic",
175 ]
176}
177
178rtc_source_set("criticalsection") {
179 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800180 "critical_section.cc",
181 "critical_section.h",
Tommi8d2c5a82018-03-19 11:12:48 +0100182 ]
183 deps = [
184 ":atomicops",
185 ":checks",
186 ":macromagic",
187 ":platform_thread_types",
Niels Möllera12c42a2018-07-25 16:05:48 +0200188 "system:unused",
Tommi8d2c5a82018-03-19 11:12:48 +0100189 ]
190}
191
192rtc_source_set("platform_thread") {
193 visibility = [
194 ":rtc_base_approved",
Tommi8d2c5a82018-03-19 11:12:48 +0100195 ":rtc_task_queue_libevent",
196 ":rtc_task_queue_win",
Robin Raymond22027b92018-11-23 09:07:50 -0500197 ":rtc_task_queue_stdlib",
Sebastian Janssonb55015e2019-04-09 13:44:04 +0200198 "synchronization:sequence_checker",
Tommi8d2c5a82018-03-19 11:12:48 +0100199 ]
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 Chapovalov5a1a6db2019-01-17 19:55:46 +0100212 "//third_party/abseil-cpp/absl/strings",
Tommi8d2c5a82018-03-19 11:12:48 +0100213 ]
214}
215
216rtc_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 Wiberg98417032019-03-24 19:12:40 +0100222 deps = [
223 ":checks",
224 "//base", # Dependency on chromium's waitable_event.
225 ]
Tommi8d2c5a82018-03-19 11:12:48 +0100226 } else {
227 sources = [
228 "event.cc",
229 "event.h",
230 ]
Karl Wiberg98417032019-03-24 19:12:40 +0100231 deps = [
232 ":checks",
233 "synchronization:yield_policy",
234 "system:warn_current_thread_is_deadlocked",
Karl Wibergfc47c862019-04-11 10:31:24 +0200235 "//third_party/abseil-cpp/absl/types:optional",
Karl Wiberg98417032019-03-24 19:12:40 +0100236 ]
Tommi8d2c5a82018-03-19 11:12:48 +0100237 }
Tommi8d2c5a82018-03-19 11:12:48 +0100238}
239
240rtc_source_set("logging") {
Mirko Bonadei2ad8c432018-08-09 10:54:40 +0200241 visibility = [ "*" ]
Patrik Höglund77301932018-10-09 15:09:51 +0200242 libs = []
Tommi8d2c5a82018-03-19 11:12:48 +0100243 deps = [
Yves Gerey988cc082018-10-23 12:03:01 +0200244 ":checks",
Tommi8d2c5a82018-03-19 11:12:48 +0100245 ":criticalsection",
246 ":macromagic",
247 ":platform_thread_types",
248 ":stringutils",
249 ":timeutils",
Sebastian Janssonf4e085a2019-05-20 18:34:07 +0200250 "//third_party/abseil-cpp/absl/meta:type_traits",
Jonas Olssonf2ce37c2018-09-12 15:32:47 +0200251 "//third_party/abseil-cpp/absl/strings",
Tommi8d2c5a82018-03-19 11:12:48 +0100252 ]
253
254 if (build_with_chromium) {
255 # Dependency on chromium's logging (in //base).
Artem Titov94b57c02019-03-21 13:35:10 +0100256 deps += [ "//base" ]
Tommi8d2c5a82018-03-19 11:12:48 +0100257 sources = [
258 "../../webrtc_overrides/rtc_base/logging.cc",
259 "../../webrtc_overrides/rtc_base/logging.h",
260 ]
261 } else {
Mirko Bonadei96ede162018-09-06 13:45:44 +0200262 configs += [
263 "..:no_exit_time_destructors",
264 "..:no_global_constructors",
265 ]
Tommi8d2c5a82018-03-19 11:12:48 +0100266 sources = [
267 "logging.cc",
268 "logging.h",
269 ]
Karl Wibergcefc4652018-05-23 23:20:38 +0200270 deps += [ "system:inline" ]
Tommi8d2c5a82018-03-19 11:12:48 +0100271
Mirko Bonadei99a70a22018-10-09 16:45:14 +0200272 if (is_mac) {
Niels Möller171bd262019-05-28 15:16:47 +0200273 libs += [ "Foundation.framework" ]
Mirko Bonadei99a70a22018-10-09 16:45:14 +0200274 }
275
Tommi8d2c5a82018-03-19 11:12:48 +0100276 # logging.h needs the deprecation header while downstream projects are
277 # removing code that depends on logging implementation details.
278 deps += [ ":deprecation" ]
Patrik Höglund77301932018-10-09 15:09:51 +0200279
280 if (is_android) {
281 libs += [ "log" ]
282 }
Tommi8d2c5a82018-03-19 11:12:48 +0100283 }
284}
285
286rtc_source_set("thread_checker") {
287 sources = [
288 "thread_checker.h",
Tommi8d2c5a82018-03-19 11:12:48 +0100289 ]
290 deps = [
Sebastian Janssonc01367d2019-04-08 15:20:44 +0200291 ":deprecation",
Sebastian Janssondf5e4e02019-03-29 10:34:45 +0100292 "synchronization:sequence_checker",
Tommi8d2c5a82018-03-19 11:12:48 +0100293 ]
294}
295
296rtc_source_set("atomicops") {
297 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800298 "atomic_ops.h",
Tommi8d2c5a82018-03-19 11:12:48 +0100299 ]
300}
301
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100302rtc_source_set("checks") {
Mirko Bonadei2ad8c432018-08-09 10:54:40 +0200303 # TODO(bugs.webrtc.org/9607): This should not be public.
304 visibility = [ "*" ]
Patrik Höglund77301932018-10-09 15:09:51 +0200305 libs = []
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100306 sources = [
307 "checks.cc",
308 "checks.h",
309 ]
310 deps = [
311 ":safe_compare",
Jonas Olssonf8e5c112018-06-14 13:14:22 +0200312 "system:inline",
Sebastian Janssonf4e085a2019-05-20 18:34:07 +0200313 "//third_party/abseil-cpp/absl/meta:type_traits",
Mirko Bonadeid4a37a62019-03-11 10:31:22 +0100314 "//third_party/abseil-cpp/absl/strings",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100315 ]
Patrik Höglund77301932018-10-09 15:09:51 +0200316 if (is_android) {
317 libs += [ "log" ]
318 }
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100319}
320
Patrik Höglund3e113432017-12-15 14:40:10 +0100321rtc_source_set("rate_limiter") {
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100322 sources = [
Patrik Höglund3e113432017-12-15 14:40:10 +0100323 "rate_limiter.cc",
324 "rate_limiter.h",
325 ]
326 deps = [
327 ":rtc_base_approved",
328 "../system_wrappers",
Yves Gerey988cc082018-10-23 12:03:01 +0200329 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100330 ]
331}
332
333rtc_source_set("sanitizer") {
334 sources = [
335 "sanitizer.h",
336 ]
Jiawei Oua6e034a2018-11-24 20:59:41 -0800337 deps = [
338 "//third_party/abseil-cpp/absl/meta:type_traits",
339 ]
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100340}
341
342rtc_source_set("safe_compare") {
343 sources = [
344 "numerics/safe_compare.h",
345 ]
346 deps = [
347 ":type_traits",
348 ]
349}
350
Karl Wiberg12edf4c2018-03-07 14:18:56 +0100351rtc_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
Tommi8d2c5a82018-03-19 11:12:48 +0100362rtc_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
372rtc_source_set("timeutils") {
Mirko Bonadei2ad8c432018-08-09 10:54:40 +0200373 visibility = [ "*" ]
Tommi8d2c5a82018-03-19 11:12:48 +0100374 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800375 "time_utils.cc",
376 "time_utils.h",
Tommi8d2c5a82018-03-19 11:12:48 +0100377 ]
378 deps = [
379 ":checks",
380 ":safe_conversions",
Jonas Olsson366a50c2018-09-06 13:41:30 +0200381 ":stringutils",
Tommi8d2c5a82018-03-19 11:12:48 +0100382 ]
Noah Richards342989d2019-03-18 13:50:20 -0700383 libs = []
384 if (is_win) {
385 libs += [ "winmm.lib" ]
386 }
Tommi8d2c5a82018-03-19 11:12:48 +0100387}
388
Patrik Höglund3e113432017-12-15 14:40:10 +0100389rtc_source_set("stringutils") {
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100390 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800391 "string_encode.cc",
392 "string_encode.h",
Jonas Olsson6b1985d2018-07-05 11:59:48 +0200393 "string_to_number.cc",
394 "string_to_number.h",
Steve Anton10542f22019-01-11 09:11:00 -0800395 "string_utils.cc",
396 "string_utils.h",
Karl Wiberg881f1682018-03-08 15:03:23 +0100397 "strings/string_builder.cc",
Tommifef05002018-02-27 13:51:08 +0100398 "strings/string_builder.h",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100399 ]
400 deps = [
Patrik Höglund3e113432017-12-15 14:40:10 +0100401 ":checks",
Jonas Olsson6b1985d2018-07-05 11:59:48 +0200402 ":macromagic",
Karl Wiberg881f1682018-03-08 15:03:23 +0100403 ":safe_minmax",
404 "../api:array_view",
Artem Titov94b57c02019-03-21 13:35:10 +0100405 "//third_party/abseil-cpp/absl/strings",
Jonas Olsson6b1985d2018-07-05 11:59:48 +0200406 "//third_party/abseil-cpp/absl/types:optional",
Patrik Höglund3e113432017-12-15 14:40:10 +0100407 ]
408}
409
Jonas Olsson74395342018-04-03 12:22:07 +0200410rtc_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öglund3e113432017-12-15 14:40:10 +0100421rtc_source_set("type_traits") {
422 sources = [
423 "type_traits.h",
424 ]
425}
426
427rtc_source_set("deprecation") {
428 sources = [
429 "deprecation.h",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100430 ]
431}
432
perkj650fdae2017-08-25 05:00:11 -0700433rtc_source_set("rtc_task_queue") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000434 visibility = [ "*" ]
nisse75dd6d42017-09-19 08:28:00 -0700435 sources = [
Danil Chapovalov07a4f2b2019-03-05 19:58:28 +0100436 "task_queue.cc",
nisse75dd6d42017-09-19 08:28:00 -0700437 "task_queue.h",
438 ]
perkj650fdae2017-08-25 05:00:11 -0700439 deps = [
Tommi8d2c5a82018-03-19 11:12:48 +0100440 ":macromagic",
Danil Chapovalov959e9b62019-01-14 14:29:18 +0100441 "../api/task_queue",
Mirko Bonadei3d255302018-10-11 10:50:45 +0200442 "system:rtc_export",
Danil Chapovalov3b548dd2019-03-01 14:58:44 +0100443 "task_utils:to_queued_task",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200444 "//third_party/abseil-cpp/absl/memory",
perkj650fdae2017-08-25 05:00:11 -0700445 ]
Danil Chapovalov07a4f2b2019-03-05 19:58:28 +0100446}
447
Tommi8d2c5a82018-03-19 11:12:48 +0100448if (rtc_enable_libevent) {
449 rtc_source_set("rtc_task_queue_libevent") {
Danil Chapovalov07a4f2b2019-03-05 19:58:28 +0100450 visibility = [ "../api/task_queue:default_task_queue_factory" ]
perkj650fdae2017-08-25 05:00:11 -0700451 sources = [
Niels Möller15c9cf72017-10-19 12:38:09 +0200452 "task_queue_libevent.cc",
Danil Chapovaloveb175242019-02-12 10:44:38 +0100453 "task_queue_libevent.h",
perkj650fdae2017-08-25 05:00:11 -0700454 ]
Tommi8d2c5a82018-03-19 11:12:48 +0100455 deps = [
456 ":checks",
457 ":criticalsection",
458 ":logging",
Yves Gerey2e00abc2018-10-05 15:39:24 +0200459 ":macromagic",
Tommi8d2c5a82018-03-19 11:12:48 +0100460 ":platform_thread",
Yves Gerey2e00abc2018-10-05 15:39:24 +0200461 ":platform_thread_types",
Tommi8d2c5a82018-03-19 11:12:48 +0100462 ":safe_conversions",
463 ":timeutils",
Danil Chapovaloveb175242019-02-12 10:44:38 +0100464 "../api/task_queue",
Danil Chapovaloveb175242019-02-12 10:44:38 +0100465 "//third_party/abseil-cpp/absl/strings",
Tommi8d2c5a82018-03-19 11:12:48 +0100466 ]
467 if (rtc_build_libevent) {
468 deps += [ "//base/third_party/libevent" ]
469 }
470 }
471}
472
473if (is_mac || is_ios) {
474 rtc_source_set("rtc_task_queue_gcd") {
Danil Chapovalov07a4f2b2019-03-05 19:58:28 +0100475 visibility = [ "../api/task_queue:default_task_queue_factory" ]
Tommi8d2c5a82018-03-19 11:12:48 +0100476 sources = [
477 "task_queue_gcd.cc",
Danil Chapovalov47cf5ea2019-02-19 20:20:16 +0100478 "task_queue_gcd.h",
Tommi8d2c5a82018-03-19 11:12:48 +0100479 ]
480 deps = [
481 ":checks",
482 ":logging",
Danil Chapovalov47cf5ea2019-02-19 20:20:16 +0100483 "../api/task_queue",
Danil Chapovalov47cf5ea2019-02-19 20:20:16 +0100484 "//third_party/abseil-cpp/absl/strings",
Tommi8d2c5a82018-03-19 11:12:48 +0100485 ]
486 }
487}
488
489if (is_win) {
490 rtc_source_set("rtc_task_queue_win") {
Danil Chapovalov07a4f2b2019-03-05 19:58:28 +0100491 visibility = [ "../api/task_queue:default_task_queue_factory" ]
Tommi8d2c5a82018-03-19 11:12:48 +0100492 sources = [
493 "task_queue_win.cc",
Danil Chapovalov826f2e72019-02-20 18:13:09 +0100494 "task_queue_win.h",
Tommi8d2c5a82018-03-19 11:12:48 +0100495 ]
496 deps = [
497 ":checks",
498 ":criticalsection",
499 ":logging",
500 ":macromagic",
501 ":platform_thread",
Tommi8d2c5a82018-03-19 11:12:48 +0100502 ":rtc_event",
Tommi8d2c5a82018-03-19 11:12:48 +0100503 ":safe_conversions",
504 ":timeutils",
Danil Chapovalov826f2e72019-02-20 18:13:09 +0100505 "../api/task_queue",
Danil Chapovalov826f2e72019-02-20 18:13:09 +0100506 "//third_party/abseil-cpp/absl/strings",
Tommi8d2c5a82018-03-19 11:12:48 +0100507 ]
508 }
509}
510
Robin Raymond22027b92018-11-23 09:07:50 -0500511rtc_source_set("rtc_task_queue_stdlib") {
Robin Raymond22027b92018-11-23 09:07:50 -0500512 sources = [
513 "task_queue_stdlib.cc",
Danil Chapovalovfa52efa2019-02-21 11:13:58 +0100514 "task_queue_stdlib.h",
Robin Raymond22027b92018-11-23 09:07:50 -0500515 ]
516 deps = [
517 ":checks",
518 ":criticalsection",
519 ":logging",
520 ":macromagic",
521 ":platform_thread",
Robin Raymond22027b92018-11-23 09:07:50 -0500522 ":rtc_event",
Robin Raymond22027b92018-11-23 09:07:50 -0500523 ":safe_conversions",
524 ":timeutils",
Danil Chapovalovfa52efa2019-02-21 11:13:58 +0100525 "../api/task_queue",
Danil Chapovalovfa52efa2019-02-21 11:13:58 +0100526 "//third_party/abseil-cpp/absl/strings",
Robin Raymond22027b92018-11-23 09:07:50 -0500527 ]
528}
529
Henrik Kjellanderc0362762017-06-29 08:03:04 +0200530rtc_static_library("weak_ptr") {
531 sources = [
532 "weak_ptr.cc",
533 "weak_ptr.h",
534 ]
535 deps = [
Tommi8d2c5a82018-03-19 11:12:48 +0100536 ":refcount",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100537 "../api:scoped_refptr",
Sebastian Janssonb55015e2019-04-09 13:44:04 +0200538 "synchronization:sequence_checker",
Henrik Kjellanderc0362762017-06-29 08:03:04 +0200539 ]
540}
541
542rtc_static_library("rtc_numerics") {
543 sources = [
544 "numerics/exp_filter.cc",
545 "numerics/exp_filter.h",
Yves Gerey890f62b2019-04-10 17:18:48 +0200546 "numerics/math_utils.h",
Ilya Nikolaevskiy26341992018-11-05 12:55:18 +0100547 "numerics/moving_average.cc",
548 "numerics/moving_average.h",
Ilya Nikolaevskiyb9685752017-11-01 14:01:00 +0100549 "numerics/moving_median_filter.h",
Henrik Kjellanderc0362762017-06-29 08:03:04 +0200550 "numerics/percentile_filter.h",
Yves Gerey890f62b2019-04-10 17:18:48 +0200551 "numerics/running_statistics.h",
Artem Titove4ed6ea2019-01-11 11:02:19 +0100552 "numerics/samples_stats_counter.cc",
553 "numerics/samples_stats_counter.h",
Bjorn Tereliusa194e582017-10-25 13:07:09 +0200554 "numerics/sequence_number_util.h",
Henrik Kjellanderc0362762017-06-29 08:03:04 +0200555 ]
556 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100557 ":checks",
Henrik Kjellanderc0362762017-06-29 08:03:04 +0200558 ":rtc_base_approved",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100559 ":safe_compare",
Artem Titov89eaf162019-04-25 12:23:40 +0200560 "../api:array_view",
Artem Titov6fcdbc12019-09-11 11:45:40 +0200561 "../api/units:timestamp",
Steve Anton2acd1632019-03-25 13:48:30 -0700562 "//third_party/abseil-cpp/absl/algorithm:container",
Danil Chapovalov0a1d1892018-06-21 11:48:25 +0200563 "//third_party/abseil-cpp/absl/types:optional",
Henrik Kjellanderc0362762017-06-29 08:03:04 +0200564 ]
565}
566
Mirko Bonadei65643662019-07-12 13:29:30 +0200567config("rtc_json_suppressions") {
Mirko Bonadei94077762019-06-27 11:24:25 +0200568 if (!is_win || is_clang) {
Mirko Bonadei65643662019-07-12 13:29:30 +0200569 cflags_cc = [
570 # TODO(bugs.webrtc.org/10770): Update jsoncpp API usage and remove
571 # -Wno-deprecated-declarations.
572 "-Wno-deprecated-declarations",
573
Mirko Bonadei1cd6f322019-07-12 21:47:47 +0200574 # TODO(bugs.webrtc.org/10814): Remove -Wno-undef as soon as it get
Mirko Bonadei65643662019-07-12 13:29:30 +0200575 # removed upstream.
576 "-Wno-undef",
577 ]
Mirko Bonadei94077762019-06-27 11:24:25 +0200578 }
579}
580
Henrik Kjellanderc0362762017-06-29 08:03:04 +0200581rtc_source_set("rtc_json") {
Mirko Bonadei65643662019-07-12 13:29:30 +0200582 public_configs = [ ":rtc_json_suppressions" ]
Henrik Kjellanderc0362762017-06-29 08:03:04 +0200583 defines = []
584 sources = [
Sam Zackrissonb45bdb52018-10-02 16:25:59 +0200585 "strings/json.cc",
586 "strings/json.h",
Henrik Kjellanderc0362762017-06-29 08:03:04 +0200587 ]
Jonas Olsson941a07c2018-09-13 10:07:07 +0200588 deps = [
589 ":stringutils",
590 ]
Mirko Bonadeia0e29fc2018-01-26 16:50:02 +0100591 all_dependent_configs = [ "//third_party/jsoncpp:jsoncpp_config" ]
Henrik Kjellanderc0362762017-06-29 08:03:04 +0200592 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 Wiberg28522dc2019-01-22 17:54:34 +0100605rtc_source_set("net_helpers") {
Karl Wiberg0b6d0e62018-12-06 14:50:45 +0100606 # TODO(bugs.webrtc.org/9987): This build target will soon contain
607 # the following files:
608 # sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800609 # "net_helpers.cc",
610 # "net_helpers.h",
Karl Wiberg0b6d0e62018-12-06 14:50:45 +0100611 # ]
612}
613
Karl Wiberg28522dc2019-01-22 17:54:34 +0100614rtc_source_set("async_resolver_interface") {
Karl Wiberg02f4e322019-02-11 00:43:43 +0100615 visibility = [ "*" ]
Karl Wiberg0b6d0e62018-12-06 14:50:45 +0100616 # TODO(bugs.webrtc.org/9987): This build target will soon contain
617 # the following files:
618 # sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800619 # "async_resolver_interface.cc",
620 # "async_resolver_interface.h",
Karl Wiberg0b6d0e62018-12-06 14:50:45 +0100621 # ]
622}
623
Karl Wiberg28522dc2019-01-22 17:54:34 +0100624rtc_source_set("ip_address") {
Karl Wiberg02f4e322019-02-11 00:43:43 +0100625 visibility = [ "*" ]
Karl Wiberg0b6d0e62018-12-06 14:50:45 +0100626 # TODO(bugs.webrtc.org/9987): This build target will soon contain
627 # the following files:
628 # sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800629 # "ip_address.cc",
630 # "ip_address.h",
Karl Wiberg0b6d0e62018-12-06 14:50:45 +0100631 # ]
632}
633
Karl Wiberg28522dc2019-01-22 17:54:34 +0100634rtc_source_set("socket_address") {
Karl Wiberg02f4e322019-02-11 00:43:43 +0100635 visibility = [ "*" ]
Karl Wiberg0b6d0e62018-12-06 14:50:45 +0100636 # TODO(bugs.webrtc.org/9987): This build target will soon contain
637 # the following files:
638 # sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800639 # "socket_address.cc",
640 # "socket_address.h",
Karl Wiberg0b6d0e62018-12-06 14:50:45 +0100641 # ]
642}
643
Karl Wiberg28522dc2019-01-22 17:54:34 +0100644rtc_source_set("null_socket_server") {
Karl Wiberg0b6d0e62018-12-06 14:50:45 +0100645 # TODO(bugs.webrtc.org/9987): This build target will soon contain
646 # the following files:
647 # sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800648 # "null_socket_server.cc",
649 # "null_socket_server.h",
Karl Wiberg0b6d0e62018-12-06 14:50:45 +0100650 # ]
651}
652
Karl Wiberg28522dc2019-01-22 17:54:34 +0100653rtc_source_set("socket_server") {
Karl Wiberg0b6d0e62018-12-06 14:50:45 +0100654 # TODO(bugs.webrtc.org/9987): This build target will soon contain
655 # the following files:
656 # sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800657 # "socket_server.h",
Karl Wiberg0b6d0e62018-12-06 14:50:45 +0100658 # ]
659}
660
661rtc_source_set("threading") {
Karl Wiberg02f4e322019-02-11 00:43:43 +0100662 visibility = [ "*" ]
Karl Wiberg0b6d0e62018-12-06 14:50:45 +0100663 # 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 Anton10542f22019-01-11 09:11:00 -0800670 # "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 Wiberg0b6d0e62018-12-06 14:50:45 +0100680 # "thread.cc",
681 # "thread.h",
682 # ]
683}
684
Karl Wiberg28522dc2019-01-22 17:54:34 +0100685rtc_source_set("socket_factory") {
Karl Wiberg0b6d0e62018-12-06 14:50:45 +0100686 # TODO(bugs.webrtc.org/9987): This build target will soon contain
687 # the following files:
688 # sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800689 # "socket_factory.h",
Karl Wiberg0b6d0e62018-12-06 14:50:45 +0100690 # ]
691}
692
Karl Wiberg28522dc2019-01-22 17:54:34 +0100693rtc_source_set("async_socket") {
Karl Wiberg0b6d0e62018-12-06 14:50:45 +0100694 # TODO(bugs.webrtc.org/9987): This build target will soon contain
695 # the following files:
696 # sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800697 # "async_socket.cc",
698 # "async_socket.h",
Karl Wiberg0b6d0e62018-12-06 14:50:45 +0100699 # ]
700}
701
702rtc_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
711rtc_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
719if (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 Anton10542f22019-01-11 09:11:00 -0800724 # "ifaddrs_android.cc",
725 # "ifaddrs_android.h",
Karl Wiberg0b6d0e62018-12-06 14:50:45 +0100726 # ]
727 }
728}
729
730if (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
mbonadei9c5e5112017-09-05 05:17:02 -0700741rtc_static_library("rtc_base") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000742 visibility = [ "*" ]
Henrik Kjellanderc0362762017-06-29 08:03:04 +0200743 cflags = []
744 cflags_cc = []
745 libs = []
746 defines = []
747 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100748 ":checks",
Patrik Höglund3e113432017-12-15 14:40:10 +0100749 ":stringutils",
Joachim Bauch58daf402017-12-21 22:00:34 +0100750 "../api:array_view",
Mirko Bonadeid9708072019-01-25 20:26:48 +0100751 "../api:scoped_refptr",
Sebastian Janssone07864e2018-10-15 09:28:15 +0200752 "network:sent_packet",
Niels Möller23213d92019-01-22 11:01:24 +0100753 "system:file_wrapper",
Artem Titova76af0c2018-07-23 17:38:12 +0200754 "third_party/base64",
Artem Titove41c4332018-07-25 15:04:28 +0200755 "third_party/sigslot",
Steve Anton2acd1632019-03-25 13:48:30 -0700756 "//third_party/abseil-cpp/absl/algorithm:container",
Karl Wiberg918f50c2018-07-05 11:40:33 +0200757 "//third_party/abseil-cpp/absl/memory",
Niels Möller3c7d5992018-10-19 15:29:54 +0200758 "//third_party/abseil-cpp/absl/strings",
Danil Chapovalov0a1d1892018-06-21 11:48:25 +0200759 "//third_party/abseil-cpp/absl/types:optional",
Henrik Kjellanderc0362762017-06-29 08:03:04 +0200760 ]
761 public_deps = [
762 ":rtc_base_approved",
763 ]
764 public_configs = []
765
Henrik Kjellanderc0362762017-06-29 08:03:04 +0200766 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800767 "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 Kjellanderc0362762017-06-29 08:03:04 +0200780 "crc32.cc",
781 "crc32.h",
Steve Anton10542f22019-01-11 09:11:00 -0800782 "crypt_string.cc",
783 "crypt_string.h",
Sebastian Janssonf9c5cf62018-02-28 16:04:26 +0100784 "data_rate_limiter.cc",
785 "data_rate_limiter.h",
Patrik Höglund76df0df2017-12-19 11:50:21 +0100786 "dscp.h",
Steve Anton10542f22019-01-11 09:11:00 -0800787 "file_rotating_stream.cc",
788 "file_rotating_stream.h",
Henrik Kjellanderc0362762017-06-29 08:03:04 +0200789 "helpers.cc",
790 "helpers.h",
Steve Anton10542f22019-01-11 09:11:00 -0800791 "http_common.cc",
792 "http_common.h",
793 "ip_address.cc",
794 "ip_address.h",
Patrik Höglund76df0df2017-12-19 11:50:21 +0100795 "keep_ref_until_done.h",
Qingsi Wang09619332018-09-12 22:51:55 -0700796 "mdns_responder_interface.h",
Steve Anton10542f22019-01-11 09:11:00 -0800797 "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 Kjellanderc0362762017-06-29 08:03:04 +0200807 "network.cc",
808 "network.h",
Patrik Höglunde2d6a062017-10-05 14:53:33 +0200809 "network_constants.h",
Steve Anton10542f22019-01-11 09:11:00 -0800810 "network_monitor.cc",
811 "network_monitor.h",
812 "network_route.h",
813 "null_socket_server.cc",
814 "null_socket_server.h",
Henrik Kjellanderc0362762017-06-29 08:03:04 +0200815 "openssl.h",
Steve Anton10542f22019-01-11 09:11:00 -0800816 "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 Anton10542f22019-01-11 09:11:00 -0800824 "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 Wang6e641e62018-04-11 20:14:17 -0700841 "socket.cc",
Henrik Kjellanderc0362762017-06-29 08:03:04 +0200842 "socket.h",
Steve Anton10542f22019-01-11 09:11:00 -0800843 "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 Kjellanderc0362762017-06-29 08:03:04 +0200861 "stream.cc",
862 "stream.h",
863 "thread.cc",
864 "thread.h",
Amit Hilbuchdbb49df2019-01-23 14:54:24 -0800865 "unique_id_generator.cc",
866 "unique_id_generator.h",
Henrik Kjellanderc0362762017-06-29 08:03:04 +0200867 ]
868
Henrik Kjellanderc0362762017-06-29 08:03:04 +0200869 if (build_with_chromium) {
Henrik Kjellanderc0362762017-06-29 08:03:04 +0200870 include_dirs = [ "../../boringssl/src/include" ]
Niels Moller9d1840c2019-05-21 07:26:37 +0000871 public_configs += [ ":rtc_base_chromium_config" ]
Henrik Kjellanderc0362762017-06-29 08:03:04 +0200872 } else {
Henrik Kjellanderc0362762017-06-29 08:03:04 +0200873 sources += [
874 "callback.h",
Steve Anton10542f22019-01-11 09:11:00 -0800875 "log_sinks.cc",
876 "log_sinks.h",
877 "numerics/math_utils.h",
878 "rolling_accumulator.h",
879 "ssl_roots.h",
Henrik Kjellanderc0362762017-06-29 08:03:04 +0200880 ]
881
Yves Gerey3dfb6802019-05-13 17:01:32 +0200882 deps += [ ":rtc_numerics" ]
883
Henrik Kjellanderc0362762017-06-29 08:03:04 +0200884 if (is_win) {
Steve Antonf3802842019-01-24 19:07:40 -0800885 sources += [ "win32_socket_init.h" ]
Robin Raymondce1b1402018-11-22 20:10:11 -0500886 if (current_os != "winuwp") {
887 sources += [
Steve Anton10542f22019-01-11 09:11:00 -0800888 "win32_socket_server.cc",
889 "win32_socket_server.h",
Robin Raymondce1b1402018-11-22 20:10:11 -0500890 ]
891 }
Henrik Kjellanderc0362762017-06-29 08:03:04 +0200892 }
893 } # !build_with_chromium
894
895 if (rtc_build_ssl) {
896 deps += [ "//third_party/boringssl" ]
Dan Minor9cdd8762018-01-16 10:40:39 -0500897 } else {
Henrik Kjellanderc0362762017-06-29 08:03:04 +0200898 configs += [ ":external_ssl_library" ]
899 }
900
901 if (is_android) {
902 sources += [
Steve Anton10542f22019-01-11 09:11:00 -0800903 "ifaddrs_android.cc",
904 "ifaddrs_android.h",
Henrik Kjellanderc0362762017-06-29 08:03:04 +0200905 ]
906
907 libs += [
908 "log",
909 "GLESv2",
910 ]
911 }
912
913 if (is_ios || is_mac) {
Steve Anton10542f22019-01-11 09:11:00 -0800914 sources += [ "mac_ifaddrs_converter.cc" ]
Kári Tristan Helgason62b13452018-10-12 12:57:49 +0200915 deps += [ "system:cocoa_threading" ]
Henrik Kjellanderc0362762017-06-29 08:03:04 +0200916 }
917
Henrik Kjellanderc0362762017-06-29 08:03:04 +0200918 if (is_linux) {
919 libs += [
920 "dl",
921 "rt",
922 ]
923 }
924
Oleh Prypinb3f78de2019-07-18 22:25:48 +0200925 if (is_ios) {
926 libs += [
927 "CFNetwork.framework",
928 "Foundation.framework",
929 "Security.framework",
930 "SystemConfiguration.framework",
931 "UIKit.framework",
932 ]
Henrik Kjellanderc0362762017-06-29 08:03:04 +0200933 }
934
935 if (is_win) {
936 sources += [
937 "win32.cc",
938 "win32.h",
Steve Anton10542f22019-01-11 09:11:00 -0800939 "win32_window.cc",
940 "win32_window.h",
Henrik Kjellanderc0362762017-06-29 08:03:04 +0200941 ]
942
943 libs += [
944 "crypt32.lib",
945 "iphlpapi.lib",
946 "secur32.lib",
947 ]
948
Henrik Kjellanderc0362762017-06-29 08:03:04 +0200949 defines += [ "_CRT_NONSTDC_NO_DEPRECATE" ]
950 }
951
Fabrice de Gans-Riberi09a6cd52018-03-30 10:38:06 -0700952 if (is_posix || is_fuchsia) {
Henrik Kjellanderc0362762017-06-29 08:03:04 +0200953 sources += [
954 "ifaddrs_converter.cc",
955 "ifaddrs_converter.h",
Henrik Kjellanderc0362762017-06-29 08:03:04 +0200956 ]
957 }
958
959 if (is_nacl) {
Mirko Bonadeia7d8f192019-03-29 13:34:46 +0100960 public_deps += [ "//native_client_sdk/src/libraries/nacl_io" ] # no-presubmit-check TODO(webrtc:8603)
Henrik Kjellanderc0362762017-06-29 08:03:04 +0200961 defines += [ "timezone=_timezone" ]
962 sources -= [ "ifaddrs_converter.cc" ]
963 }
Henrik Kjellanderc0362762017-06-29 08:03:04 +0200964}
965
966rtc_source_set("gtest_prod") {
967 sources = [
968 "gtest_prod_util.h",
969 ]
970}
971
Mirko Bonadeie3abb812018-11-23 13:15:08 +0100972rtc_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 Anton68586e82018-12-13 17:41:25 -0800984 "//third_party/abseil-cpp/absl/strings",
Mirko Bonadeie3abb812018-11-23 13:15:08 +0100985 ]
986}
987
988rtc_source_set("testclient") {
989 testonly = true
990 sources = [
Steve Anton10542f22019-01-11 09:11:00 -0800991 "test_client.cc",
992 "test_client.h",
Mirko Bonadeie3abb812018-11-23 13:15:08 +0100993 ]
994 deps = [
995 ":criticalsection",
996 ":gunit_helpers",
997 ":macromagic",
998 ":rtc_base",
999 ":rtc_base_tests_utils",
1000 ":timeutils",
Mirko Bonadeie3abb812018-11-23 13:15:08 +01001001 ]
1002}
1003
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001004rtc_source_set("rtc_base_tests_utils") {
1005 testonly = true
1006 sources = [
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001007 "cpu_time.cc",
1008 "cpu_time.h",
Steve Anton10542f22019-01-11 09:11:00 -08001009 "fake_clock.cc",
1010 "fake_clock.h",
Qingsi Wang09619332018-09-12 22:51:55 -07001011 "fake_mdns_responder.h",
Steve Anton10542f22019-01-11 09:11:00 -08001012 "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öllere7547d52018-11-01 09:33:08 +01001017 "memory_stream.cc",
1018 "memory_stream.h",
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001019 "memory_usage.cc",
1020 "memory_usage.h",
Steve Anton10542f22019-01-11 09:11:00 -08001021 "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öller44153152018-12-17 14:04:05 +01001029 "server_socket_adapters.cc",
1030 "server_socket_adapters.h",
Steve Anton10542f22019-01-11 09:11:00 -08001031 "sigslot_tester.h",
Steve Anton10542f22019-01-11 09:11:00 -08001032 "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 Kjellanderc0362762017-06-29 08:03:04 +02001042 ]
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001043 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001044 ":checks",
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001045 ":rtc_base",
Sebastian Jansson5f83cf02018-05-08 14:52:22 +02001046 "../api/units:time_delta",
Sebastian Janssond624c392019-04-17 10:36:03 +02001047 "../api/units:timestamp",
Niels Möller13339482019-03-28 13:30:15 +01001048 "memory:fifo_buffer",
Artem Titove41c4332018-07-25 15:04:28 +02001049 "third_party/sigslot",
Steve Anton2acd1632019-03-25 13:48:30 -07001050 "//third_party/abseil-cpp/absl/algorithm:container",
Karl Wiberg918f50c2018-07-05 11:40:33 +02001051 "//third_party/abseil-cpp/absl/memory",
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001052 ]
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001053}
1054
Danil Chapovalovd26a9162019-03-19 18:08:37 +01001055rtc_source_set("task_queue_for_test") {
Tommida8781f2018-02-19 12:41:43 +01001056 testonly = true
1057
1058 sources = [
1059 "task_queue_for_test.cc",
1060 "task_queue_for_test.h",
1061 ]
1062 deps = [
1063 ":checks",
Danil Chapovalovd26a9162019-03-19 18:08:37 +01001064 ":macromagic",
1065 ":rtc_event",
Tommida8781f2018-02-19 12:41:43 +01001066 ":rtc_task_queue",
Danil Chapovalovd26a9162019-03-19 18:08:37 +01001067 "../api/task_queue:default_task_queue_factory",
Danil Chapovalov1aa75812019-03-05 11:11:35 +01001068 "task_utils:to_queued_task",
Danil Chapovalovd26a9162019-03-19 18:08:37 +01001069 "//third_party/abseil-cpp/absl/strings",
Tommida8781f2018-02-19 12:41:43 +01001070 ]
1071}
1072
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001073if (rtc_include_tests) {
Artem Titove41c4332018-07-25 15:04:28 +02001074 rtc_source_set("sigslot_unittest") {
1075 testonly = true
1076 sources = [
1077 "sigslot_unittest.cc",
1078 ]
1079 deps = [
Mirko Bonadeie3abb812018-11-23 13:15:08 +01001080 ":gunit_helpers",
Artem Titove41c4332018-07-25 15:04:28 +02001081 ":rtc_base",
1082 ":rtc_base_tests_utils",
Yves Gerey3e707812018-11-28 16:47:49 +01001083 "../test:test_support",
Artem Titove41c4332018-07-25 15:04:28 +02001084 "third_party/sigslot",
1085 ]
1086 }
1087
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001088 rtc_source_set("rtc_base_nonparallel_tests") {
1089 testonly = true
1090
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001091 sources = [
1092 "cpu_time_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -08001093 "file_rotating_stream_unittest.cc",
1094 "null_socket_server_unittest.cc",
1095 "physical_socket_server_unittest.cc",
1096 "socket_address_unittest.cc",
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001097 "socket_unittest.cc",
1098 "socket_unittest.h",
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001099 ]
1100 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001101 ":checks",
Mirko Bonadeie3abb812018-11-23 13:15:08 +01001102 ":gunit_helpers",
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001103 ":rtc_base",
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001104 ":rtc_base_tests_utils",
Mirko Bonadeie3abb812018-11-23 13:15:08 +01001105 ":testclient",
Artem Titov94b57c02019-03-21 13:35:10 +01001106 "../system_wrappers",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001107 "../test:fileutils",
Niels Möller04a3cc12019-05-21 13:01:58 +02001108 "../test:test_main",
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001109 "../test:test_support",
Artem Titov94b57c02019-03-21 13:35:10 +01001110 "third_party/sigslot",
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001111 "//testing/gtest",
Karl Wiberg918f50c2018-07-05 11:40:33 +02001112 "//third_party/abseil-cpp/absl/memory",
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001113 ]
1114 if (is_win) {
Steve Anton10542f22019-01-11 09:11:00 -08001115 sources += [ "win32_socket_server_unittest.cc" ]
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001116 }
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001117 }
1118
1119 rtc_source_set("rtc_base_approved_unittests") {
1120 testonly = true
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001121 sources = [
Steve Anton10542f22019-01-11 09:11:00 -08001122 "atomic_ops_unittest.cc",
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001123 "base64_unittest.cc",
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001124 "bind_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -08001125 "bit_buffer_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -08001126 "buffer_queue_unittest.cc",
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001127 "buffer_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -08001128 "byte_buffer_unittest.cc",
1129 "byte_order_unittest.cc",
1130 "copy_on_write_buffer_unittest.cc",
1131 "critical_section_unittest.cc",
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001132 "event_tracer_unittest.cc",
1133 "event_unittest.cc",
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001134 "logging_unittest.cc",
Karl Wiberg65c39222017-11-22 12:25:14 +01001135 "numerics/histogram_percentile_counter_unittest.cc",
1136 "numerics/mod_ops_unittest.cc",
1137 "numerics/moving_max_counter_unittest.cc",
Karl Wiberge40468b2017-11-22 10:42:26 +01001138 "numerics/safe_compare_unittest.cc",
1139 "numerics/safe_minmax_unittest.cc",
Ilya Nikolaevskiy0beed5d2018-05-22 10:54:30 +02001140 "numerics/sample_counter_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -08001141 "one_time_event_unittest.cc",
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001142 "platform_thread_unittest.cc",
1143 "random_unittest.cc",
1144 "rate_limiter_unittest.cc",
1145 "rate_statistics_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -08001146 "rate_tracker_unittest.cc",
1147 "ref_counted_object_unittest.cc",
Alessio Bazzicad31843e2018-04-06 16:18:21 +02001148 "sanitizer_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -08001149 "string_encode_unittest.cc",
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001150 "string_to_number_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -08001151 "string_utils_unittest.cc",
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001152 "stringize_macros_unittest.cc",
Tommifef05002018-02-27 13:51:08 +01001153 "strings/string_builder_unittest.cc",
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001154 "swap_queue_unittest.cc",
1155 "thread_annotations_unittest.cc",
1156 "thread_checker_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -08001157 "time_utils_unittest.cc",
1158 "timestamp_aligner_unittest.cc",
1159 "virtual_socket_unittest.cc",
Joachim Bauch5b32f232018-03-07 20:02:26 +01001160 "zero_memory_unittest.cc",
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001161 ]
henrika3ca48a62018-05-21 13:34:51 +02001162 if (is_win) {
1163 sources += [ "win/windows_version_unittest.cc" ]
1164 }
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001165 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001166 ":checks",
Mirko Bonadeie3abb812018-11-23 13:15:08 +01001167 ":gunit_helpers",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001168 ":rate_limiter",
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001169 ":rtc_base",
1170 ":rtc_base_approved",
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001171 ":rtc_base_tests_utils",
1172 ":rtc_task_queue",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001173 ":safe_compare",
Karl Wiberg12edf4c2018-03-07 14:18:56 +01001174 ":safe_minmax",
Alessio Bazzicad31843e2018-04-06 16:18:21 +02001175 ":sanitizer",
Patrik Höglund3e113432017-12-15 14:40:10 +01001176 ":stringutils",
Mirko Bonadeie3abb812018-11-23 13:15:08 +01001177 ":testclient",
kwiberg529662a2017-09-04 05:43:17 -07001178 "../api:array_view",
Mirko Bonadeid9708072019-01-25 20:26:48 +01001179 "../api:scoped_refptr",
Yves Gerey3e707812018-11-28 16:47:49 +01001180 "../api/units:time_delta",
Artem Titov94b57c02019-03-21 13:35:10 +01001181 "../system_wrappers",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001182 "../test:fileutils",
Niels Möller04a3cc12019-05-21 13:01:58 +02001183 "../test:test_main",
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001184 "../test:test_support",
Karl Wiberg29e7bee2018-03-22 14:11:52 +01001185 "memory:unittests",
Artem Titova76af0c2018-07-23 17:38:12 +02001186 "third_party/base64",
Artem Titov94b57c02019-03-21 13:35:10 +01001187 "third_party/sigslot",
Karl Wiberg918f50c2018-07-05 11:40:33 +02001188 "//third_party/abseil-cpp/absl/memory",
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001189 ]
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001190 }
1191
1192 rtc_source_set("rtc_task_queue_unittests") {
1193 testonly = true
1194
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001195 sources = [
1196 "task_queue_unittest.cc",
1197 ]
1198 deps = [
Mirko Bonadeie3abb812018-11-23 13:15:08 +01001199 ":gunit_helpers",
mbonadei95c8f652017-08-27 23:40:10 -07001200 ":rtc_base_approved",
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001201 ":rtc_base_tests_utils",
1202 ":rtc_task_queue",
Danil Chapovalov07122bc2019-03-26 14:37:01 +01001203 ":task_queue_for_test",
Niels Möller04a3cc12019-05-21 13:01:58 +02001204 "../test:test_main",
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001205 "../test:test_support",
Yves Gerey3e707812018-11-28 16:47:49 +01001206 "//third_party/abseil-cpp/absl/memory",
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001207 ]
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001208 }
1209
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001210 rtc_source_set("weak_ptr_unittests") {
1211 testonly = true
1212
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001213 sources = [
1214 "weak_ptr_unittest.cc",
1215 ]
1216 deps = [
Mirko Bonadeie3abb812018-11-23 13:15:08 +01001217 ":gunit_helpers",
Mirko Bonadeica270912018-10-10 15:51:03 +02001218 ":rtc_base_approved",
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001219 ":rtc_base_tests_utils",
Tommi8d2c5a82018-03-19 11:12:48 +01001220 ":rtc_event",
Danil Chapovalov07122bc2019-03-26 14:37:01 +01001221 ":task_queue_for_test",
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001222 ":weak_ptr",
Niels Möller04a3cc12019-05-21 13:01:58 +02001223 "../test:test_main",
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001224 "../test:test_support",
1225 ]
1226 }
1227
1228 rtc_source_set("rtc_numerics_unittests") {
1229 testonly = true
1230
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001231 sources = [
1232 "numerics/exp_filter_unittest.cc",
Ilya Nikolaevskiy26341992018-11-05 12:55:18 +01001233 "numerics/moving_average_unittest.cc",
Ilya Nikolaevskiyb9685752017-11-01 14:01:00 +01001234 "numerics/moving_median_filter_unittest.cc",
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001235 "numerics/percentile_filter_unittest.cc",
Yves Gerey890f62b2019-04-10 17:18:48 +02001236 "numerics/running_statistics_unittest.cc",
Artem Titove4ed6ea2019-01-11 11:02:19 +01001237 "numerics/samples_stats_counter_unittest.cc",
Bjorn Tereliusa194e582017-10-25 13:07:09 +02001238 "numerics/sequence_number_util_unittest.cc",
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001239 ]
1240 deps = [
1241 ":rtc_base_approved",
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001242 ":rtc_numerics",
Niels Möller04a3cc12019-05-21 13:01:58 +02001243 "../test:test_main",
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001244 "../test:test_support",
Steve Anton2acd1632019-03-25 13:48:30 -07001245 "//third_party/abseil-cpp/absl/algorithm:container",
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001246 ]
1247 }
1248
Sam Zackrissonb45bdb52018-10-02 16:25:59 +02001249 rtc_source_set("rtc_json_unittests") {
1250 testonly = true
1251
1252 sources = [
1253 "strings/json_unittest.cc",
1254 ]
1255 deps = [
Mirko Bonadeie3abb812018-11-23 13:15:08 +01001256 ":gunit_helpers",
Sam Zackrissonb45bdb52018-10-02 16:25:59 +02001257 ":rtc_base_tests_utils",
1258 ":rtc_json",
Niels Möller04a3cc12019-05-21 13:01:58 +02001259 "../test:test_main",
Sam Zackrissonb45bdb52018-10-02 16:25:59 +02001260 "../test:test_support",
1261 ]
1262 }
1263
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001264 rtc_source_set("rtc_base_unittests") {
1265 testonly = true
Benjamin Wrightd6f86e82018-05-08 13:12:25 -07001266 defines = []
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001267
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001268 sources = [
1269 "callback_unittest.cc",
1270 "crc32_unittest.cc",
Sebastian Janssonf9c5cf62018-02-28 16:04:26 +01001271 "data_rate_limiter_unittest.cc",
Sebastian Jansson7d6a2592019-03-22 15:38:16 +01001272 "fake_clock_unittest.cc",
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001273 "helpers_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -08001274 "ip_address_unittest.cc",
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001275 "memory_usage_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -08001276 "message_digest_unittest.cc",
1277 "message_queue_unittest.cc",
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001278 "nat_unittest.cc",
1279 "network_unittest.cc",
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001280 "proxy_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -08001281 "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 Anton10542f22019-01-11 09:11:00 -08001286 "test_client_unittest.cc",
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001287 "thread_unittest.cc",
Amit Hilbuchdbb49df2019-01-23 14:54:24 -08001288 "unique_id_generator_unittest.cc",
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001289 ]
1290 if (is_win) {
1291 sources += [
1292 "win32_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -08001293 "win32_window_unittest.cc",
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001294 ]
1295 }
Fabrice de Gans-Riberi09a6cd52018-03-30 10:38:06 -07001296 if (is_posix || is_fuchsia) {
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001297 sources += [
Steve Anton10542f22019-01-11 09:11:00 -08001298 "openssl_adapter_unittest.cc",
Steve Anton10542f22019-01-11 09:11:00 -08001299 "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 Kjellanderc0362762017-06-29 08:03:04 +02001304 ]
1305 }
1306 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001307 ":checks",
Mirko Bonadeie3abb812018-11-23 13:15:08 +01001308 ":gunit_helpers",
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001309 ":rtc_base_tests_utils",
Patrik Höglund3e113432017-12-15 14:40:10 +01001310 ":stringutils",
Mirko Bonadeie3abb812018-11-23 13:15:08 +01001311 ":testclient",
Joachim Bauch58daf402017-12-21 22:00:34 +01001312 "../api:array_view",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001313 "../test:fileutils",
Niels Möller04a3cc12019-05-21 13:01:58 +02001314 "../test:test_main",
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001315 "../test:test_support",
Niels Möller13339482019-03-28 13:30:15 +01001316 "memory:fifo_buffer",
Sebastian Jansson7a603392019-03-20 16:50:35 +01001317 "synchronization:synchronization_unittests",
Artem Titove41c4332018-07-25 15:04:28 +02001318 "third_party/sigslot",
Steve Anton2acd1632019-03-25 13:48:30 -07001319 "//third_party/abseil-cpp/absl/algorithm:container",
Karl Wiberg918f50c2018-07-05 11:40:33 +02001320 "//third_party/abseil-cpp/absl/memory",
Niels Möller04a3cc12019-05-21 13:01:58 +02001321 "//third_party/abseil-cpp/absl/strings",
Danil Chapovalov0a1d1892018-06-21 11:48:25 +02001322 "//third_party/abseil-cpp/absl/types:optional",
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001323 ]
1324 public_deps = [
1325 ":rtc_base",
1326 ]
Diogo Real1dca9d52017-08-29 12:18:32 -07001327 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 Kjellanderc0362762017-06-29 08:03:04 +02001335 }
1336}
1337
Henrik Kjellander73e21802017-06-20 08:38:58 +02001338if (is_android) {
Mirko Bonadeifbb3b7d2017-11-07 15:36:33 +00001339 rtc_android_library("base_java") {
Sami Kalliomäki51f599b2019-07-03 14:13:08 +02001340 visibility = [ "*" ]
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001341 java_files = [
1342 "java/src/org/webrtc/ContextUtils.java",
Paulina Hensman1ec04f12018-06-21 14:31:38 +02001343 "java/src/org/webrtc/Loggable.java",
Henrik Kjellanderc0362762017-06-29 08:03:04 +02001344 "java/src/org/webrtc/Logging.java",
1345 "java/src/org/webrtc/Size.java",
1346 "java/src/org/webrtc/ThreadUtils.java",
1347 ]
Artem Titarenko69540f42018-12-10 12:30:46 +01001348 deps = [
Peter Wen7bc331f2019-03-06 09:18:57 -05001349 "//third_party/android_deps:com_android_support_support_annotations_java",
Artem Titarenko69540f42018-12-10 12:30:46 +01001350 ]
Henrik Kjellander73e21802017-06-20 08:38:58 +02001351 }
1352}