blob: beee9b681f3a4242623d3f96f0aa264dc4e5f5ae [file] [log] [blame]
Karl Wiberg2b857922018-03-23 14:53:54 +01001# Copyright (c) 2018 The WebRTC project authors. All Rights Reserved.
2#
3# Use of this source code is governed by a BSD-style license
4# that can be found in the LICENSE file in the root of the source
5# tree. An additional intellectual property rights grant can be found
6# in the file PATENTS. All contributing project authors may
7# be found in the AUTHORS file in the root of the source tree.
8
9import("../../webrtc.gni")
10if (is_android) {
11 import("//build/config/android/config.gni")
12 import("//build/config/android/rules.gni")
13}
14
15rtc_source_set("rw_lock_wrapper") {
16 public = [
17 "rw_lock_wrapper.h",
18 ]
19 sources = [
20 "rw_lock_wrapper.cc",
21 ]
22 deps = [
23 "..:macromagic",
Karl Wiberg2b857922018-03-23 14:53:54 +010024 ]
25 if (is_win) {
26 sources += [
27 "rw_lock_win.cc",
28 "rw_lock_win.h",
29 ]
30 deps += [ "..:logging" ]
31 } else {
32 sources += [
33 "rw_lock_posix.cc",
34 "rw_lock_posix.h",
35 ]
36 }
37}
Sebastian Jansson7a603392019-03-20 16:50:35 +010038
Sebastian Janssondf5e4e02019-03-29 10:34:45 +010039rtc_source_set("sequence_checker") {
40 sources = [
41 "sequence_checker.cc",
42 "sequence_checker.h",
43 ]
44 deps = [
45 "..:checks",
46 "..:criticalsection",
47 "..:macromagic",
48 "..:platform_thread_types",
49 "../../api/task_queue",
Mirko Bonadei35214fc2019-09-23 14:54:28 +020050 "../system:rtc_export",
Sebastian Janssondf5e4e02019-03-29 10:34:45 +010051 ]
52}
53
Sebastian Jansson7a603392019-03-20 16:50:35 +010054rtc_source_set("yield_policy") {
55 sources = [
56 "yield_policy.cc",
57 "yield_policy.h",
58 ]
59 deps = [
Steve Antonfefa77c2019-07-19 07:03:03 -070060 "..:checks",
61 "//third_party/abseil-cpp/absl/base:config",
Sebastian Jansson7a603392019-03-20 16:50:35 +010062 "//third_party/abseil-cpp/absl/base:core_headers",
63 ]
64}
65
66if (rtc_include_tests) {
67 rtc_source_set("synchronization_unittests") {
68 testonly = true
69 sources = [
70 "yield_policy_unittest.cc",
71 ]
72 deps = [
73 ":yield_policy",
74 "..:rtc_event",
75 "../../test:test_support",
76 ]
77 }
Sebastian Janssonb55015e2019-04-09 13:44:04 +020078
79 rtc_source_set("sequence_checker_unittests") {
80 testonly = true
81
82 sources = [
83 "sequence_checker_unittest.cc",
84 ]
85 deps = [
86 ":sequence_checker",
87 "..:checks",
88 "..:rtc_base_approved",
Sebastian Janssonb55015e2019-04-09 13:44:04 +020089 "..:task_queue_for_test",
90 "../../api:function_view",
Niels Möller04a3cc12019-05-21 13:01:58 +020091 "../../test:test_main",
Sebastian Janssonb55015e2019-04-09 13:44:04 +020092 "../../test:test_support",
Sebastian Janssonb55015e2019-04-09 13:44:04 +020093 ]
94 }
Sebastian Jansson7a603392019-03-20 16:50:35 +010095}