You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
1.3 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  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. import("../../webrtc.gni")
  9. if (is_android) {
  10. import("//build/config/android/config.gni")
  11. import("//build/config/android/rules.gni")
  12. }
  13. rtc_source_set("aligned_array") {
  14. sources = [
  15. "aligned_array.h",
  16. ]
  17. deps = [
  18. ":aligned_malloc",
  19. "..:checks",
  20. ]
  21. }
  22. rtc_library("aligned_malloc") {
  23. sources = [
  24. "aligned_malloc.cc",
  25. "aligned_malloc.h",
  26. ]
  27. deps = [
  28. "..:checks",
  29. ]
  30. }
  31. rtc_library("fifo_buffer") {
  32. visibility = [
  33. "../../p2p:rtc_p2p",
  34. "..:rtc_base_tests_utils",
  35. "..:rtc_base_unittests",
  36. ":unittests",
  37. ]
  38. sources = [
  39. "fifo_buffer.cc",
  40. "fifo_buffer.h",
  41. ]
  42. deps = [
  43. "..:rtc_base",
  44. ]
  45. }
  46. rtc_library("unittests") {
  47. testonly = true
  48. sources = [
  49. "aligned_array_unittest.cc",
  50. "aligned_malloc_unittest.cc",
  51. "fifo_buffer_unittest.cc",
  52. ]
  53. deps = [
  54. ":aligned_array",
  55. ":aligned_malloc",
  56. ":fifo_buffer",
  57. "../../test:test_support",
  58. ]
  59. }