Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1884)

Unified Diff: webrtc/modules/audio_processing/aec_dump/BUILD.gn

Issue 2865113002: AecDump implementation. (Closed)
Patch Set: Clean up of impl code. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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",
+ ]
+ }
}

Powered by Google App Engine
This is Rietveld 408576698