Karl Wiberg | 2b85792 | 2018-03-23 14:53:54 +0100 | [diff] [blame] | 1 | # 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 | |
| 9 | import("../../webrtc.gni") |
| 10 | if (is_android) { |
| 11 | import("//build/config/android/config.gni") |
| 12 | import("//build/config/android/rules.gni") |
| 13 | } |
| 14 | |
| 15 | rtc_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 Wiberg | 2b85792 | 2018-03-23 14:53:54 +0100 | [diff] [blame] | 24 | ] |
| 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 Jansson | 7a60339 | 2019-03-20 16:50:35 +0100 | [diff] [blame] | 38 | |
Sebastian Jansson | df5e4e0 | 2019-03-29 10:34:45 +0100 | [diff] [blame] | 39 | rtc_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", |
| 50 | ] |
| 51 | } |
| 52 | |
Sebastian Jansson | 7a60339 | 2019-03-20 16:50:35 +0100 | [diff] [blame] | 53 | rtc_source_set("yield_policy") { |
| 54 | sources = [ |
| 55 | "yield_policy.cc", |
| 56 | "yield_policy.h", |
| 57 | ] |
| 58 | deps = [ |
| 59 | "//third_party/abseil-cpp/absl/base:core_headers", |
| 60 | ] |
| 61 | } |
| 62 | |
| 63 | if (rtc_include_tests) { |
| 64 | rtc_source_set("synchronization_unittests") { |
| 65 | testonly = true |
| 66 | sources = [ |
| 67 | "yield_policy_unittest.cc", |
| 68 | ] |
| 69 | deps = [ |
| 70 | ":yield_policy", |
| 71 | "..:rtc_event", |
| 72 | "../../test:test_support", |
| 73 | ] |
| 74 | } |
Sebastian Jansson | b55015e | 2019-04-09 13:44:04 +0200 | [diff] [blame^] | 75 | |
| 76 | rtc_source_set("sequence_checker_unittests") { |
| 77 | testonly = true |
| 78 | |
| 79 | sources = [ |
| 80 | "sequence_checker_unittest.cc", |
| 81 | ] |
| 82 | deps = [ |
| 83 | ":sequence_checker", |
| 84 | "..:checks", |
| 85 | "..:rtc_base_approved", |
| 86 | "..:rtc_base_tests_main", |
| 87 | "..:task_queue_for_test", |
| 88 | "../../api:function_view", |
| 89 | "../../test:test_support", |
| 90 | "//third_party/abseil-cpp/absl/memory", |
| 91 | ] |
| 92 | } |
Sebastian Jansson | 7a60339 | 2019-03-20 16:50:35 +0100 | [diff] [blame] | 93 | } |