Allow link-time injection of the DefaultTaskQueueFactory
Bug: webrtc:10191 Change-Id: If6a2fb32bee63328cf2cb86be2aac69bc5bd65dd Reviewed-on: https://webrtc-review.googlesource.com/c/120964 Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Commit-Queue: Danil Chapovalov <danilchap@webrtc.org> Cr-Commit-Position: refs/heads/master@{#26552}
This commit is contained in:

committed by
Commit Bot

parent
93734c342a
commit
87ce874f99
@ -63,20 +63,25 @@ rtc_source_set("default_task_queue_factory") {
|
|||||||
# supported platforms.
|
# supported platforms.
|
||||||
visibility = [ ":global_task_queue_factory" ]
|
visibility = [ ":global_task_queue_factory" ]
|
||||||
sources = [
|
sources = [
|
||||||
"default_task_queue_factory.cc",
|
|
||||||
"default_task_queue_factory.h",
|
"default_task_queue_factory.h",
|
||||||
]
|
]
|
||||||
deps = [
|
deps = [
|
||||||
":task_queue_factory",
|
":task_queue_factory",
|
||||||
"../../rtc_base:checks",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
|
# TODO(bugs.webrtc.org/10284): Include implementation unconditionally when
|
||||||
|
# global task queue factory is removed.
|
||||||
|
if (rtc_link_task_queue_impl) {
|
||||||
|
sources += [ "default_task_queue_factory.cc" ]
|
||||||
|
deps += [ "../../rtc_base:checks" ]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# Linking with global_task_queue_factory adds link-time implementation of the
|
# Linking with global_task_queue_factory adds link-time implementation of the
|
||||||
# rtc::TaskQueue that allows run-time injection of the TaskQueue implementaion.
|
# rtc::TaskQueue that allows run-time injection of the TaskQueue implementaion.
|
||||||
rtc_source_set("global_task_queue_factory") {
|
rtc_source_set("global_task_queue_factory") {
|
||||||
# TODO(danilchap): Remove this target when task queue factory propagated to
|
# TODO(bugs.webrtc.org/10284): Remove this target when task queue factory
|
||||||
# all components that create TaskQueues.
|
# propagated to all components that create TaskQueues.
|
||||||
visibility = [ "*" ]
|
visibility = [ "*" ]
|
||||||
sources = [
|
sources = [
|
||||||
"global_task_queue_factory.cc",
|
"global_task_queue_factory.cc",
|
||||||
|
Reference in New Issue
Block a user