aleloi | 20e4a73 | 2017-06-08 08:12:46 -0700 | [diff] [blame] | 1 | # 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 | |
aleloi | 06013e9 | 2017-05-23 08:52:05 -0700 | [diff] [blame] | 9 | import("../../../webrtc.gni") # This contains def of 'rtc_enable_protobuf' |
| 10 | |
| 11 | rtc_source_set("aec_dump") { |
| 12 | sources = [ |
| 13 | "aec_dump_factory.h", |
| 14 | ] |
| 15 | |
| 16 | public_deps = [ |
| 17 | "..:aec_dump_interface", |
| 18 | ] |
| 19 | |
| 20 | deps = [ |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 21 | "../../../rtc_base:rtc_base_approved", |
aleloi | 06013e9 | 2017-05-23 08:52:05 -0700 | [diff] [blame] | 22 | ] |
| 23 | } |
| 24 | |
aleloi | 20e4a73 | 2017-06-08 08:12:46 -0700 | [diff] [blame] | 25 | rtc_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 | |
| 42 | rtc_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", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 52 | "../../../rtc_base:rtc_base_approved", |
aleloi | 20e4a73 | 2017-06-08 08:12:46 -0700 | [diff] [blame] | 53 | "//testing/gtest", |
| 54 | ] |
| 55 | } |
| 56 | |
aleloi | 06013e9 | 2017-05-23 08:52:05 -0700 | [diff] [blame] | 57 | if (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 = [ |
aleloi | 06013e9 | 2017-05-23 08:52:05 -0700 | [diff] [blame] | 76 | "../../../modules:module_api", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame^] | 77 | "../../../rtc_base:checks", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 78 | "../../../rtc_base:protobuf_utils", |
| 79 | "../../../rtc_base:rtc_base_approved", |
| 80 | "../../../rtc_base:rtc_task_queue", |
aleloi | 06013e9 | 2017-05-23 08:52:05 -0700 | [diff] [blame] | 81 | "../../../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", |
aleloi | 06013e9 | 2017-05-23 08:52:05 -0700 | [diff] [blame] | 94 | "../../../modules:module_api", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 95 | "../../../rtc_base:rtc_task_queue", |
aleloi | 06013e9 | 2017-05-23 08:52:05 -0700 | [diff] [blame] | 96 | "../../../test:test_support", |
| 97 | "//testing/gtest", |
| 98 | ] |
| 99 | sources = [ |
| 100 | "aec_dump_unittest.cc", |
| 101 | ] |
| 102 | } |
| 103 | } |
| 104 | |
| 105 | rtc_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 | } |