xref: /aosp_15_r20/external/webrtc/rtc_base/containers/BUILD.gn (revision d9f758449e529ab9291ac668be2861e7a55c2422)
1# Copyright (c) 2021 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("flat_containers_internal") {
12  sources = [
13    "flat_tree.cc",
14    "flat_tree.h",
15    "identity.h",
16    "invoke.h",
17    "move_only_int.h",
18  ]
19  deps = [
20    "..:checks",
21    "../system:no_unique_address",
22  ]
23  absl_deps = [ "//third_party/abseil-cpp/absl/algorithm:container" ]
24  visibility = [ ":*" ]
25}
26
27rtc_source_set("flat_set") {
28  sources = [ "flat_set.h" ]
29  deps = [ ":flat_containers_internal" ]
30}
31
32rtc_source_set("flat_map") {
33  sources = [ "flat_map.h" ]
34  deps = [
35    ":flat_containers_internal",
36    "..:checks",
37  ]
38}
39
40rtc_library("unittests") {
41  testonly = true
42  sources = [
43    "flat_map_unittest.cc",
44    "flat_set_unittest.cc",
45    "flat_tree_unittest.cc",
46  ]
47  deps = [
48    ":flat_containers_internal",
49    ":flat_map",
50    ":flat_set",
51    "../../test:test_support",
52    "//testing/gmock:gmock",
53    "//testing/gtest:gtest",
54  ]
55  absl_deps = [ "//third_party/abseil-cpp/absl/algorithm:container" ]
56}
57