2018-03-23 14:53:54 +01:00
|
|
|
# Copyright (c) 2018 The WebRTC project authors. All Rights Reserved.
|
|
|
|
|
#
|
|
|
|
|
# Use of this source code is governed by a BSD-style license
|
|
|
|
|
# that can be found in the LICENSE file in the root of the source
|
|
|
|
|
# tree. An additional intellectual property rights grant can be found
|
|
|
|
|
# in the file PATENTS. All contributing project authors may
|
|
|
|
|
# be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
|
|
|
|
|
import("../../webrtc.gni")
|
|
|
|
|
if (is_android) {
|
|
|
|
|
import("//build/config/android/config.gni")
|
|
|
|
|
import("//build/config/android/rules.gni")
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("rw_lock_wrapper") {
|
2018-03-23 14:53:54 +01:00
|
|
|
public = [
|
|
|
|
|
"rw_lock_wrapper.h",
|
|
|
|
|
]
|
|
|
|
|
sources = [
|
|
|
|
|
"rw_lock_wrapper.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
"..:macromagic",
|
|
|
|
|
]
|
|
|
|
|
if (is_win) {
|
|
|
|
|
sources += [
|
|
|
|
|
"rw_lock_win.cc",
|
|
|
|
|
"rw_lock_win.h",
|
|
|
|
|
]
|
|
|
|
|
deps += [ "..:logging" ]
|
|
|
|
|
} else {
|
|
|
|
|
sources += [
|
|
|
|
|
"rw_lock_posix.cc",
|
|
|
|
|
"rw_lock_posix.h",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
2019-03-20 16:50:35 +01:00
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("sequence_checker") {
|
2019-03-29 10:34:45 +01:00
|
|
|
sources = [
|
|
|
|
|
"sequence_checker.cc",
|
|
|
|
|
"sequence_checker.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
"..:checks",
|
|
|
|
|
"..:criticalsection",
|
|
|
|
|
"..:macromagic",
|
|
|
|
|
"..:platform_thread_types",
|
|
|
|
|
"../../api/task_queue",
|
2019-09-23 14:54:28 +02:00
|
|
|
"../system:rtc_export",
|
2019-03-29 10:34:45 +01:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("yield_policy") {
|
2019-03-20 16:50:35 +01:00
|
|
|
sources = [
|
|
|
|
|
"yield_policy.cc",
|
|
|
|
|
"yield_policy.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
2019-07-19 07:03:03 -07:00
|
|
|
"..:checks",
|
|
|
|
|
"//third_party/abseil-cpp/absl/base:config",
|
2019-03-20 16:50:35 +01:00
|
|
|
"//third_party/abseil-cpp/absl/base:core_headers",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (rtc_include_tests) {
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("synchronization_unittests") {
|
2019-03-20 16:50:35 +01:00
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"yield_policy_unittest.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":yield_policy",
|
|
|
|
|
"..:rtc_event",
|
|
|
|
|
"../../test:test_support",
|
|
|
|
|
]
|
|
|
|
|
}
|
2019-04-09 13:44:04 +02:00
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("sequence_checker_unittests") {
|
2019-04-09 13:44:04 +02:00
|
|
|
testonly = true
|
|
|
|
|
|
|
|
|
|
sources = [
|
|
|
|
|
"sequence_checker_unittest.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":sequence_checker",
|
|
|
|
|
"..:checks",
|
|
|
|
|
"..:rtc_base_approved",
|
|
|
|
|
"..:task_queue_for_test",
|
|
|
|
|
"../../api:function_view",
|
2019-05-21 13:01:58 +02:00
|
|
|
"../../test:test_main",
|
2019-04-09 13:44:04 +02:00
|
|
|
"../../test:test_support",
|
|
|
|
|
]
|
|
|
|
|
}
|
2019-03-20 16:50:35 +01:00
|
|
|
}
|