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

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

Issue 2747123007: Test submission of complete AEC-dump refactoring. (Closed)
Patch Set: Most of Karl's comments addressed. Created 3 years, 9 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_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" ]
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698