You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

95 lines
2.0 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  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. import("../../webrtc.gni")
  9. if (is_android) {
  10. import("//build/config/android/config.gni")
  11. import("//build/config/android/rules.gni")
  12. }
  13. rtc_library("rw_lock_wrapper") {
  14. public = [
  15. "rw_lock_wrapper.h",
  16. ]
  17. sources = [
  18. "rw_lock_wrapper.cc",
  19. ]
  20. deps = [
  21. "..:macromagic",
  22. ]
  23. if (is_win) {
  24. sources += [
  25. "rw_lock_win.cc",
  26. "rw_lock_win.h",
  27. ]
  28. deps += [ "..:logging" ]
  29. } else {
  30. sources += [
  31. "rw_lock_posix.cc",
  32. "rw_lock_posix.h",
  33. ]
  34. }
  35. }
  36. rtc_library("sequence_checker") {
  37. sources = [
  38. "sequence_checker.cc",
  39. "sequence_checker.h",
  40. ]
  41. deps = [
  42. "..:checks",
  43. "..:criticalsection",
  44. "..:macromagic",
  45. "..:platform_thread_types",
  46. "../../api/task_queue",
  47. "../system:rtc_export",
  48. ]
  49. }
  50. rtc_library("yield_policy") {
  51. sources = [
  52. "yield_policy.cc",
  53. "yield_policy.h",
  54. ]
  55. deps = [
  56. "..:checks",
  57. "//third_party/abseil-cpp/absl/base:config",
  58. "//third_party/abseil-cpp/absl/base:core_headers",
  59. ]
  60. }
  61. if (rtc_include_tests) {
  62. rtc_library("synchronization_unittests") {
  63. testonly = true
  64. sources = [
  65. "yield_policy_unittest.cc",
  66. ]
  67. deps = [
  68. ":yield_policy",
  69. "..:rtc_event",
  70. "../../test:test_support",
  71. ]
  72. }
  73. rtc_library("sequence_checker_unittests") {
  74. testonly = true
  75. sources = [
  76. "sequence_checker_unittest.cc",
  77. ]
  78. deps = [
  79. ":sequence_checker",
  80. "..:checks",
  81. "..:rtc_base_approved",
  82. "..:task_queue_for_test",
  83. "../../api:function_view",
  84. "../../test:test_main",
  85. "../../test:test_support",
  86. ]
  87. }
  88. }