blob: ee35dab5ad8cdb2733ed353871fef0078aef1583 [file] [log] [blame]
Danil Chapovalov959e9b62019-01-14 14:29:18 +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")
10
11rtc_source_set("task_queue") {
12 visibility = [ "*" ]
13 public = [
14 "queued_task.h",
Danil Chapovalov348b08a2019-01-17 13:07:25 +010015 "task_queue_priority.h",
16 ]
17}
18
19# TODO(bugs.webrtc.org/10191): Merge the target into task_queue target above
20# when support for link-time injection is dropped.
21rtc_source_set("task_queue_factory") {
22 visibility = [ "*" ]
23 public = [
24 "task_queue_base.h",
25 "task_queue_factory.h",
26 ]
27 sources = [
28 "task_queue_base.cc",
29 ]
30
31 deps = [
32 ":task_queue",
33 "//third_party/abseil-cpp/absl/base:core_headers",
34 "//third_party/abseil-cpp/absl/strings",
Danil Chapovalov959e9b62019-01-14 14:29:18 +010035 ]
36}
Danil Chapovalovbaaf9112019-01-18 10:09:40 +010037
38rtc_source_set("default_task_queue_factory") {
39 # TODO(bugs.webrtc.org/10191): Make public when implemented for all
40 # supported platforms.
41 visibility = [ ":global_task_queue_factory" ]
42 sources = [
43 "default_task_queue_factory.cc",
44 "default_task_queue_factory.h",
45 ]
46 deps = [
47 ":task_queue_factory",
48 "../../rtc_base:checks",
49 ]
50}
51
52rtc_source_set("global_task_queue_factory") {
53 # TODO(danilchap): Remove this target when task queue factory propagated to
54 # all components that create TaskQueues.
55 visibility = [ "*" ]
56 sources = [
57 "global_task_queue_factory.cc",
58 "global_task_queue_factory.h",
59 ]
60 deps = [
61 ":default_task_queue_factory",
62 ":task_queue_factory",
63 "../../rtc_base:checks",
64 ]
65}