| Index: webrtc/modules/audio_processing/aec_dumper/BUILD.gn
|
| diff --git a/webrtc/modules/audio_processing/aec_dumper/BUILD.gn b/webrtc/modules/audio_processing/aec_dumper/BUILD.gn
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..472a9ddd2fc043760d77e37acb2b1449590a8cd3
|
| --- /dev/null
|
| +++ b/webrtc/modules/audio_processing/aec_dumper/BUILD.gn
|
| @@ -0,0 +1,75 @@
|
| +import("//third_party/protobuf/proto_library.gni")
|
| +import("../../../webrtc.gni")
|
| +
|
| +rtc_source_set("aec_dumper") {
|
| + # Includes audio_processing.h TODO(aleloi): add a dependency for
|
| + # that when the header is not part of ..:audio_processing.
|
| + check_includes = false
|
| + sources = [
|
| + "aec_dumper.cc",
|
| + "aec_dumper.h",
|
| + "null_aec_dumper.h",
|
| + ]
|
| +
|
| + # Only targets in this file and audio_processing/ can depend on
|
| + # this.
|
| + visibility = [
|
| + "../:*",
|
| + ":*",
|
| + ]
|
| +
|
| + deps = []
|
| +}
|
| +
|
| +rtc_source_set("aec_dumper_impl") {
|
| + assert_no_deps = [ ":aec_dumper_no_pb" ]
|
| +
|
| + sources = [
|
| + "aec_dumper_impl.cc",
|
| + "capture_stream_info_impl.h",
|
| + ]
|
| + deps = [
|
| + ":aec_dumper",
|
| + "../../../base:rtc_base_approved",
|
| + "../../../base:rtc_task_queue",
|
| + "../../../system_wrappers",
|
| + ]
|
| +
|
| + # Will not compile without proto.
|
| + if (rtc_enable_protobuf) {
|
| + deps += [ "../:audioproc_debug_proto" ]
|
| + }
|
| +}
|
| +
|
| +rtc_source_set("aec_dumper_no_pb") {
|
| + assert_no_deps = [ ":aec_dumper_impl" ]
|
| + sources = [
|
| + "no_pb_aec_dumper.cc",
|
| + ]
|
| + deps = [
|
| + ":aec_dumper",
|
| + ]
|
| +}
|
| +
|
| +rtc_source_set("aec_dumper_unittests") {
|
| + testonly = true
|
| + defines = []
|
| + deps = [
|
| + ":aec_dumper",
|
| + ]
|
| + sources = []
|
| + if (rtc_enable_protobuf) {
|
| + deps += [
|
| + ":aec_dumper_impl",
|
| + "..:audioproc_debug_proto",
|
| + "../../../base:rtc_task_queue",
|
| + "../../../test:test_support",
|
| + "//testing/gtest",
|
| +
|
| + # Might be added later:
|
| + # "..:audioproc_protobuf_utils",
|
| + # "..:audioproc_unittest_proto",
|
| + ]
|
| + sources += [ "aec_dumper_unittest.cc" ]
|
| + }
|
| +}
|
|
|