blob: 950dd68b176a49485d213e032c6c06db12ff6725 [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") {
12 sources = [
13 "aec_dump_factory.h",
14 ]
15
16 public_deps = [
17 "..:aec_dump_interface",
18 ]
19
20 deps = [
21 "../../../base:rtc_base_approved",
22 ]
23}
24
aleloi20e4a732017-06-08 08:12:46 -070025rtc_source_set("mock_aec_dump") {
26 testonly = true
27 sources = [
28 "mock_aec_dump.cc",
29 "mock_aec_dump.h",
30 ]
31
32 deps = [
33 "..:aec_dump_interface",
34 ]
35 public_deps = [
36 "../..:module_api",
37 "../../../test:test_support",
38 "//testing/gmock",
39 ]
40}
41
42rtc_source_set("mock_aec_dump_unittests") {
43 testonly = true
44
45 sources = [
46 "aec_dump_integration_test.cc",
47 ]
48
49 deps = [
50 ":mock_aec_dump",
51 "..:audio_processing",
52 "../../../base:rtc_base_approved",
53 "//testing/gtest",
54 ]
55}
56
aleloi06013e92017-05-23 08:52:05 -070057if (rtc_enable_protobuf) {
58 rtc_source_set("aec_dump_impl") {
59 sources = [
60 "aec_dump_impl.cc",
61 "aec_dump_impl.h",
62 "capture_stream_info.cc",
63 "capture_stream_info.h",
64 "write_to_file_task.cc",
65 "write_to_file_task.h",
66 ]
67
68 public = []
69
70 public_deps = [
71 ":aec_dump",
72 "..:aec_dump_interface",
73 ]
74
75 deps = [
76 "../../../base:protobuf_utils",
77 "../../../base:rtc_base_approved",
78 "../../../base:rtc_task_queue",
79 "../../../modules:module_api",
80 "../../../system_wrappers",
81 ]
82
83 deps += [ "../:audioproc_debug_proto" ]
84 }
85
86 rtc_source_set("aec_dump_unittests") {
87 testonly = true
88 defines = []
89 deps = [
90 ":aec_dump_impl",
91 "..:aec_dump_interface",
92 "..:audioproc_debug_proto",
93 "../../../base:rtc_task_queue",
94 "../../../modules:module_api",
95 "../../../test:test_support",
96 "//testing/gtest",
97 ]
98 sources = [
99 "aec_dump_unittest.cc",
100 ]
101 }
102}
103
104rtc_source_set("null_aec_dump_factory") {
105 assert_no_deps = [ ":aec_dump_impl" ]
106 sources = [
107 "null_aec_dump_factory.cc",
108 ]
109
110 public_deps = [
111 ":aec_dump",
112 "..:aec_dump_interface",
113 ]
114}