xref: /aosp_15_r20/external/webrtc/api/numerics/BUILD.gn (revision d9f758449e529ab9291ac668be2861e7a55c2422)
1# Copyright (c) 2020 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_library("numerics") {
12  visibility = [ "*" ]
13
14  sources = [
15    "samples_stats_counter.cc",
16    "samples_stats_counter.h",
17  ]
18  deps = [
19    "..:array_view",
20    "../../rtc_base:checks",
21    "../../rtc_base:rtc_numerics",
22    "../../rtc_base:timeutils",
23    "../units:timestamp",
24  ]
25  absl_deps = [ "//third_party/abseil-cpp/absl/algorithm:container" ]
26}
27
28if (rtc_include_tests) {
29  rtc_library("numerics_unittests") {
30    visibility = [ "*" ]
31    testonly = true
32
33    sources = [ "samples_stats_counter_unittest.cc" ]
34
35    deps = [
36      ":numerics",
37      "../../test:test_support",
38    ]
39    absl_deps = [ "//third_party/abseil-cpp/absl/algorithm:container" ]
40  }
41}
42