Index: webrtc/modules/audio_processing/aec_dump/BUILD.gn |
diff --git a/webrtc/modules/audio_processing/aec_dump/BUILD.gn b/webrtc/modules/audio_processing/aec_dump/BUILD.gn |
index af432675e55089c83e531acfe9282aa931436d01..778d715f17d3ee26c517d4ccfbbf4ca30e678b7f 100644 |
--- a/webrtc/modules/audio_processing/aec_dump/BUILD.gn |
+++ b/webrtc/modules/audio_processing/aec_dump/BUILD.gn |
@@ -6,11 +6,14 @@ |
# in the file PATENTS. All contributing project authors may |
# be found in the AUTHORS file in the root of the source tree. |
-import("../../../webrtc.gni") |
+import("../../../webrtc.gni") # This contains def of 'rtc_enable_protobuf' |
rtc_source_set("aec_dump") { |
sources = [ |
- "aec_dump.cc", |
+ "aec_dump.h", |
+ ] |
+ |
+ public = [ |
"aec_dump.h", |
] |
@@ -19,4 +22,38 @@ rtc_source_set("aec_dump") { |
"../../../modules:module_api", |
"../../../system_wrappers", |
] |
+ |
+ if (rtc_enable_protobuf) { |
+ sources += [ |
+ "aec_dump.cc", |
+ "capture_stream_info_impl.cc", |
+ "write_to_file_task.cc", |
+ "write_to_file_task.h", |
+ ] |
+ deps += [ |
+ "../:audioproc_debug_proto", |
+ "../../../base:protobuf_utils", |
+ "../../../base:rtc_task_queue", |
+ ] |
+ } else { |
+ sources += [ "aec_dump_no_protobuf.cc" ] |
+ } |
+} |
+ |
+if (rtc_enable_protobuf) { |
+ rtc_source_set("aec_dump_unittests") { |
+ testonly = true |
+ defines = [] |
+ deps = [ |
+ ":aec_dump", |
+ "..:audioproc_debug_proto", |
+ "../../../base:rtc_task_queue", |
+ "../../../modules:module_api", |
+ "../../../test:test_support", |
+ "//testing/gtest", |
+ ] |
+ sources = [ |
+ "aec_dump_unittest.cc", |
+ ] |
+ } |
} |