| OLD | NEW |
| 1 # Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. |
| 2 # | 2 # |
| 3 # Use of this source code is governed by a BSD-style license | 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 | 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 | 5 # tree. An additional intellectual property rights grant can be found |
| 6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
| 7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
| 8 | 8 |
| 9 import("../../../webrtc.gni") | 9 import("../../../webrtc.gni") # This contains def of 'rtc_enable_protobuf' |
| 10 | 10 |
| 11 rtc_source_set("aec_dump") { | 11 rtc_source_set("aec_dump") { |
| 12 sources = [ | 12 sources = [ |
| 13 "aec_dump.cc", | |
| 14 "aec_dump.h", | 13 "aec_dump.h", |
| 15 ] | 14 ] |
| 16 | 15 |
| 16 public = [ |
| 17 "aec_dump.h", |
| 18 ] |
| 19 |
| 17 deps = [ | 20 deps = [ |
| 18 "../../../base:rtc_base_approved", | 21 "../../../base:rtc_base_approved", |
| 19 "../../../modules:module_api", | 22 "../../../modules:module_api", |
| 20 "../../../system_wrappers", | 23 "../../../system_wrappers", |
| 21 ] | 24 ] |
| 25 |
| 26 if (rtc_enable_protobuf) { |
| 27 sources += [ |
| 28 "aec_dump.cc", |
| 29 "capture_stream_info_impl.cc", |
| 30 "write_to_file_task.cc", |
| 31 "write_to_file_task.h", |
| 32 ] |
| 33 deps += [ |
| 34 "../:audioproc_debug_proto", |
| 35 "../../../base:protobuf_utils", |
| 36 "../../../base:rtc_task_queue", |
| 37 ] |
| 38 } else { |
| 39 sources += [ "aec_dump_no_protobuf.cc" ] |
| 40 } |
| 22 } | 41 } |
| 42 |
| 43 if (rtc_enable_protobuf) { |
| 44 rtc_source_set("aec_dump_unittests") { |
| 45 testonly = true |
| 46 defines = [] |
| 47 deps = [ |
| 48 ":aec_dump", |
| 49 "..:audioproc_debug_proto", |
| 50 "../../../base:rtc_task_queue", |
| 51 "../../../modules:module_api", |
| 52 "../../../test:test_support", |
| 53 "//testing/gtest", |
| 54 ] |
| 55 sources = [ |
| 56 "aec_dump_unittest.cc", |
| 57 ] |
| 58 } |
| 59 } |
| OLD | NEW |