blob: e5fee3e95f7154c9a2076f7c63a15ae0ebb1cb03 [file] [log] [blame]
aleloi20e4a732017-06-08 08:12:46 -07001# Copyright (c) 2017 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
aleloi06013e92017-05-23 08:52:05 -07009import("../../../webrtc.gni") # This contains def of 'rtc_enable_protobuf'
10
11rtc_source_set("aec_dump") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000012 visibility = [ "*" ]
aleloi06013e92017-05-23 08:52:05 -070013 sources = [
14 "aec_dump_factory.h",
15 ]
16
aleloi06013e92017-05-23 08:52:05 -070017 deps = [
Alex Loiko1aec5942018-05-15 13:13:22 +020018 "../",
ehmaldonadof6a861a2017-07-19 10:40:47 -070019 "../../../rtc_base:rtc_base_approved",
aleloi06013e92017-05-23 08:52:05 -070020 ]
21}
22
aleloi20e4a732017-06-08 08:12:46 -070023rtc_source_set("mock_aec_dump") {
24 testonly = true
25 sources = [
26 "mock_aec_dump.cc",
27 "mock_aec_dump.h",
28 ]
29
30 deps = [
Alex Loiko1aec5942018-05-15 13:13:22 +020031 "../",
aleloi20e4a732017-06-08 08:12:46 -070032 "../../../test:test_support",
aleloi20e4a732017-06-08 08:12:46 -070033 ]
34}
35
36rtc_source_set("mock_aec_dump_unittests") {
37 testonly = true
38
39 sources = [
40 "aec_dump_integration_test.cc",
41 ]
42
43 deps = [
44 ":mock_aec_dump",
Alex Loiko1aec5942018-05-15 13:13:22 +020045 "../",
ehmaldonadof6a861a2017-07-19 10:40:47 -070046 "../../../rtc_base:rtc_base_approved",
aleloi20e4a732017-06-08 08:12:46 -070047 "//testing/gtest",
Karl Wiberg918f50c2018-07-05 11:40:33 +020048 "//third_party/abseil-cpp/absl/memory",
aleloi20e4a732017-06-08 08:12:46 -070049 ]
50}
51
aleloi06013e92017-05-23 08:52:05 -070052if (rtc_enable_protobuf) {
53 rtc_source_set("aec_dump_impl") {
54 sources = [
55 "aec_dump_impl.cc",
56 "aec_dump_impl.h",
57 "capture_stream_info.cc",
58 "capture_stream_info.h",
59 "write_to_file_task.cc",
60 "write_to_file_task.h",
61 ]
62
Mirko Bonadeica913b02018-01-26 15:11:40 +010063 deps = [
aleloi06013e92017-05-23 08:52:05 -070064 ":aec_dump",
Alex Loiko1aec5942018-05-15 13:13:22 +020065 "../",
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +020066 "../../../api/audio:audio_frame_api",
Patrik Höglunda8005cf2017-12-13 16:05:42 +010067 "../../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -070068 "../../../rtc_base:protobuf_utils",
69 "../../../rtc_base:rtc_base_approved",
70 "../../../rtc_base:rtc_task_queue",
Karl Wiberg6a4d4112018-03-23 10:39:34 +010071 "../../../rtc_base/system:file_wrapper",
aleloi06013e92017-05-23 08:52:05 -070072 "../../../system_wrappers",
Karl Wiberg918f50c2018-07-05 11:40:33 +020073 "//third_party/abseil-cpp/absl/memory",
aleloi06013e92017-05-23 08:52:05 -070074 ]
75
76 deps += [ "../:audioproc_debug_proto" ]
77 }
78
79 rtc_source_set("aec_dump_unittests") {
80 testonly = true
81 defines = []
82 deps = [
Mirko Bonadeica913b02018-01-26 15:11:40 +010083 ":aec_dump",
aleloi06013e92017-05-23 08:52:05 -070084 ":aec_dump_impl",
aleloi06013e92017-05-23 08:52:05 -070085 "..:audioproc_debug_proto",
Alex Loiko1aec5942018-05-15 13:13:22 +020086 "../",
ehmaldonadof6a861a2017-07-19 10:40:47 -070087 "../../../rtc_base:rtc_task_queue",
Patrik Höglund7696bef2018-03-15 15:05:39 +010088 "../../../test:fileutils",
aleloi06013e92017-05-23 08:52:05 -070089 "../../../test:test_support",
90 "//testing/gtest",
91 ]
92 sources = [
93 "aec_dump_unittest.cc",
94 ]
95 }
96}
97
98rtc_source_set("null_aec_dump_factory") {
99 assert_no_deps = [ ":aec_dump_impl" ]
100 sources = [
101 "null_aec_dump_factory.cc",
102 ]
103
Mirko Bonadeica913b02018-01-26 15:11:40 +0100104 deps = [
aleloi06013e92017-05-23 08:52:05 -0700105 ":aec_dump",
Alex Loiko1aec5942018-05-15 13:13:22 +0200106 "../",
aleloi06013e92017-05-23 08:52:05 -0700107 ]
108}