xref: /aosp_15_r20/external/webrtc/rtc_base/task_utils/BUILD.gn (revision d9f758449e529ab9291ac668be2861e7a55c2422)
1*d9f75844SAndroid Build Coastguard Worker# Copyright (c) 2019 The WebRTC project authors. All Rights Reserved.
2*d9f75844SAndroid Build Coastguard Worker#
3*d9f75844SAndroid Build Coastguard Worker# Use of this source code is governed by a BSD-style license
4*d9f75844SAndroid Build Coastguard Worker# that can be found in the LICENSE file in the root of the source
5*d9f75844SAndroid Build Coastguard Worker# tree. An additional intellectual property rights grant can be found
6*d9f75844SAndroid Build Coastguard Worker# in the file PATENTS.  All contributing project authors may
7*d9f75844SAndroid Build Coastguard Worker# be found in the AUTHORS file in the root of the source tree.
8*d9f75844SAndroid Build Coastguard Worker
9*d9f75844SAndroid Build Coastguard Workerimport("../../webrtc.gni")
10*d9f75844SAndroid Build Coastguard Worker
11*d9f75844SAndroid Build Coastguard Workerrtc_library("repeating_task") {
12*d9f75844SAndroid Build Coastguard Worker  sources = [
13*d9f75844SAndroid Build Coastguard Worker    "repeating_task.cc",
14*d9f75844SAndroid Build Coastguard Worker    "repeating_task.h",
15*d9f75844SAndroid Build Coastguard Worker  ]
16*d9f75844SAndroid Build Coastguard Worker  deps = [
17*d9f75844SAndroid Build Coastguard Worker    "..:logging",
18*d9f75844SAndroid Build Coastguard Worker    "..:timeutils",
19*d9f75844SAndroid Build Coastguard Worker    "../../api:sequence_checker",
20*d9f75844SAndroid Build Coastguard Worker    "../../api/task_queue",
21*d9f75844SAndroid Build Coastguard Worker    "../../api/task_queue:pending_task_safety_flag",
22*d9f75844SAndroid Build Coastguard Worker    "../../api/units:time_delta",
23*d9f75844SAndroid Build Coastguard Worker    "../../api/units:timestamp",
24*d9f75844SAndroid Build Coastguard Worker    "../../system_wrappers:system_wrappers",
25*d9f75844SAndroid Build Coastguard Worker  ]
26*d9f75844SAndroid Build Coastguard Worker  absl_deps = [ "//third_party/abseil-cpp/absl/functional:any_invocable" ]
27*d9f75844SAndroid Build Coastguard Worker}
28*d9f75844SAndroid Build Coastguard Worker
29*d9f75844SAndroid Build Coastguard Workerif (rtc_include_tests) {
30*d9f75844SAndroid Build Coastguard Worker  rtc_library("repeating_task_unittests") {
31*d9f75844SAndroid Build Coastguard Worker    testonly = true
32*d9f75844SAndroid Build Coastguard Worker    sources = [ "repeating_task_unittest.cc" ]
33*d9f75844SAndroid Build Coastguard Worker    deps = [
34*d9f75844SAndroid Build Coastguard Worker      ":repeating_task",
35*d9f75844SAndroid Build Coastguard Worker      "..:rtc_event",
36*d9f75844SAndroid Build Coastguard Worker      "..:rtc_task_queue",
37*d9f75844SAndroid Build Coastguard Worker      "..:task_queue_for_test",
38*d9f75844SAndroid Build Coastguard Worker      "../../api/task_queue",
39*d9f75844SAndroid Build Coastguard Worker      "../../api/units:time_delta",
40*d9f75844SAndroid Build Coastguard Worker      "../../api/units:timestamp",
41*d9f75844SAndroid Build Coastguard Worker      "../../system_wrappers:system_wrappers",
42*d9f75844SAndroid Build Coastguard Worker      "../../test:test_support",
43*d9f75844SAndroid Build Coastguard Worker    ]
44*d9f75844SAndroid Build Coastguard Worker    absl_deps = [ "//third_party/abseil-cpp/absl/functional:any_invocable" ]
45*d9f75844SAndroid Build Coastguard Worker  }
46*d9f75844SAndroid Build Coastguard Worker}
47