2018-03-22 14:11:52 +01:00
|
|
|
# Copyright (c) 2018 The WebRTC project authors. All Rights Reserved.
|
|
|
|
|
#
|
|
|
|
|
# Use of this source code is governed by a BSD-style license
|
|
|
|
|
# that can be found in the LICENSE file in the root of the source
|
|
|
|
|
# tree. An additional intellectual property rights grant can be found
|
|
|
|
|
# in the file PATENTS. All contributing project authors may
|
|
|
|
|
# be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
|
|
|
|
|
import("../../webrtc.gni")
|
|
|
|
|
if (is_android) {
|
|
|
|
|
import("//build/config/android/config.gni")
|
|
|
|
|
import("//build/config/android/rules.gni")
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("aligned_malloc") {
|
2018-03-22 14:11:52 +01:00
|
|
|
sources = [
|
|
|
|
|
"aligned_malloc.cc",
|
|
|
|
|
"aligned_malloc.h",
|
|
|
|
|
]
|
2020-01-21 12:10:10 +01:00
|
|
|
deps = [ "..:checks" ]
|
2018-03-22 14:11:52 +01:00
|
|
|
}
|
|
|
|
|
|
2020-10-05 12:43:53 +00:00
|
|
|
# Test only utility.
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("fifo_buffer") {
|
2021-03-29 10:33:24 +02:00
|
|
|
testonly = true
|
2019-03-28 13:30:15 +01:00
|
|
|
visibility = [
|
2020-10-05 12:43:53 +00:00
|
|
|
":unittests",
|
2019-03-28 13:30:15 +01:00
|
|
|
"..:rtc_base_tests_utils",
|
|
|
|
|
"..:rtc_base_unittests",
|
|
|
|
|
]
|
|
|
|
|
sources = [
|
|
|
|
|
"fifo_buffer.cc",
|
|
|
|
|
"fifo_buffer.h",
|
|
|
|
|
]
|
2020-07-08 17:55:58 +02:00
|
|
|
deps = [
|
|
|
|
|
"..:rtc_base",
|
2021-01-15 10:41:01 +01:00
|
|
|
"..:threading",
|
2020-07-08 17:55:58 +02:00
|
|
|
"../synchronization:mutex",
|
2020-10-05 12:43:53 +00:00
|
|
|
"../task_utils:pending_task_safety_flag",
|
|
|
|
|
"../task_utils:to_queued_task",
|
2020-07-08 17:55:58 +02:00
|
|
|
]
|
2019-03-28 13:30:15 +01:00
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("unittests") {
|
2018-03-22 14:11:52 +01:00
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"aligned_malloc_unittest.cc",
|
2019-03-28 13:30:15 +01:00
|
|
|
"fifo_buffer_unittest.cc",
|
2018-03-22 14:11:52 +01:00
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":aligned_malloc",
|
2019-03-28 13:30:15 +01:00
|
|
|
":fifo_buffer",
|
2018-03-22 14:11:52 +01:00
|
|
|
"../../test:test_support",
|
|
|
|
|
]
|
|
|
|
|
}
|