• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# 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")
10if (is_android) {
11  import("//build/config/android/config.gni")
12  import("//build/config/android/rules.gni")
13}
14
15rtc_library("aligned_malloc") {
16  sources = [
17    "aligned_malloc.cc",
18    "aligned_malloc.h",
19  ]
20  deps = [ "..:checks" ]
21}
22
23rtc_library("fifo_buffer") {
24  visibility = [
25    "../../p2p:rtc_p2p",
26    "..:rtc_base_tests_utils",
27    "..:rtc_base_unittests",
28    ":unittests",
29  ]
30  sources = [
31    "fifo_buffer.cc",
32    "fifo_buffer.h",
33  ]
34  deps = [
35    "..:rtc_base",
36    "../synchronization:mutex",
37  ]
38}
39
40rtc_library("unittests") {
41  testonly = true
42  sources = [
43    "aligned_malloc_unittest.cc",
44    "fifo_buffer_unittest.cc",
45  ]
46  deps = [
47    ":aligned_malloc",
48    ":fifo_buffer",
49    "../../test:test_support",
50  ]
51}
52