blob: 2e44509ae995d68a5c4338c1f2046e5ff370cf34 [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 = [
ehmaldonadof6a861a2017-07-19 10:40:47 -070021 "../../../rtc_base:rtc_base_approved",
aleloi06013e92017-05-23 08:52:05 -070022 ]
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",
ehmaldonadof6a861a2017-07-19 10:40:47 -070052 "../../../rtc_base:rtc_base_approved",
aleloi20e4a732017-06-08 08:12:46 -070053 "//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 = [
aleloi06013e92017-05-23 08:52:05 -070076 "../../../modules:module_api",
Patrik Höglunda8005cf2017-12-13 16:05:42 +010077 "../../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -070078 "../../../rtc_base:protobuf_utils",
79 "../../../rtc_base:rtc_base_approved",
80 "../../../rtc_base:rtc_task_queue",
aleloi06013e92017-05-23 08:52:05 -070081 "../../../system_wrappers",
82 ]
83
84 deps += [ "../:audioproc_debug_proto" ]
85 }
86
87 rtc_source_set("aec_dump_unittests") {
88 testonly = true
89 defines = []
90 deps = [
91 ":aec_dump_impl",
92 "..:aec_dump_interface",
93 "..:audioproc_debug_proto",
aleloi06013e92017-05-23 08:52:05 -070094 "../../../modules:module_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -070095 "../../../rtc_base:rtc_task_queue",
aleloi06013e92017-05-23 08:52:05 -070096 "../../../test:test_support",
97 "//testing/gtest",
98 ]
99 sources = [
100 "aec_dump_unittest.cc",
101 ]
102 }
103}
104
105rtc_source_set("null_aec_dump_factory") {
106 assert_no_deps = [ ":aec_dump_impl" ]
107 sources = [
108 "null_aec_dump_factory.cc",
109 ]
110
111 public_deps = [
112 ":aec_dump",
113 "..:aec_dump_interface",
114 ]
115}