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

Side by Side Diff: webrtc/modules/audio_processing/BUILD.gn

Issue 2747123007: Test submission of complete AEC-dump refactoring. (Closed)
Patch Set: Changed interface and build structure after reviewer comments. Created 3 years, 8 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 unified diff | Download patch
OLDNEW
1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. 1 # Copyright (c) 2014 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("//build/config/arm.gni") 9 import("//build/config/arm.gni")
10 import("//third_party/protobuf/proto_library.gni") 10 import("//third_party/protobuf/proto_library.gni")
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 "vad/vad_circular_buffer.h", 222 "vad/vad_circular_buffer.h",
223 "vad/voice_activity_detector.cc", 223 "vad/voice_activity_detector.cc",
224 "vad/voice_activity_detector.h", 224 "vad/voice_activity_detector.h",
225 "vad/voice_gmm_tables.h", 225 "vad/voice_gmm_tables.h",
226 "voice_detection_impl.cc", 226 "voice_detection_impl.cc",
227 "voice_detection_impl.h", 227 "voice_detection_impl.h",
228 ] 228 ]
229 229
230 defines = [] 230 defines = []
231 deps = [ 231 deps = [
232 ":aec_dump_interface",
232 "../..:webrtc_common", 233 "../..:webrtc_common",
233 "../../audio/utility:audio_frame_operations", 234 "../../audio/utility:audio_frame_operations",
234 "../../base:gtest_prod", 235 "../../base:gtest_prod",
235 "../audio_coding:isac", 236 "../audio_coding:isac",
236 ] 237 ]
237 public_deps = [ 238 public_deps = [
238 ":audio_processing_c", 239 ":audio_processing_c",
239 ] 240 ]
240 241
241 if (apm_debug_dump) { 242 if (apm_debug_dump) {
242 defines += [ "WEBRTC_APM_DEBUG_DUMP=1" ] 243 defines += [ "WEBRTC_APM_DEBUG_DUMP=1" ]
243 } else { 244 } else {
244 defines += [ "WEBRTC_APM_DEBUG_DUMP=0" ] 245 defines += [ "WEBRTC_APM_DEBUG_DUMP=0" ]
245 } 246 }
246 247
247 if (aec_untrusted_delay_for_testing) { 248 if (aec_untrusted_delay_for_testing) {
248 defines += [ "WEBRTC_UNTRUSTED_DELAY" ] 249 defines += [ "WEBRTC_UNTRUSTED_DELAY" ]
249 } 250 }
250 251
251 if (rtc_enable_protobuf) {
252 defines += [ "WEBRTC_AUDIOPROC_DEBUG_DUMP" ]
253 deps += [ ":audioproc_debug_proto" ]
254 }
255
256 if (rtc_enable_intelligibility_enhancer) { 252 if (rtc_enable_intelligibility_enhancer) {
257 defines += [ "WEBRTC_INTELLIGIBILITY_ENHANCER=1" ] 253 defines += [ "WEBRTC_INTELLIGIBILITY_ENHANCER=1" ]
258 sources += [ 254 sources += [
259 "intelligibility/intelligibility_enhancer.cc", 255 "intelligibility/intelligibility_enhancer.cc",
260 "intelligibility/intelligibility_enhancer.h", 256 "intelligibility/intelligibility_enhancer.h",
261 "intelligibility/intelligibility_utils.cc", 257 "intelligibility/intelligibility_utils.cc",
262 "intelligibility/intelligibility_utils.h", 258 "intelligibility/intelligibility_utils.h",
263 ] 259 ]
264 } else { 260 } else {
265 defines += [ "WEBRTC_INTELLIGIBILITY_ENHANCER=0" ] 261 defines += [ "WEBRTC_INTELLIGIBILITY_ENHANCER=0" ]
(...skipping 28 matching lines...) Expand all
294 # TODO(jschuh): Bug 1348: fix this warning. 290 # TODO(jschuh): Bug 1348: fix this warning.
295 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 291 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
296 292
297 deps += [ 293 deps += [
298 "../../base:rtc_base_approved", 294 "../../base:rtc_base_approved",
299 "../../common_audio", 295 "../../common_audio",
300 "../../system_wrappers", 296 "../../system_wrappers",
301 ] 297 ]
302 } 298 }
303 299
300 rtc_source_set("aec_dump_interface") {
301 # Includes audio_processing.h. TODO(aleloi): add a dependency for
302 # that when the header is not part of :audio_processing.
303 check_includes = false
304
305 sources = [
306 "include/aec_dump.cc",
307 "include/aec_dump.h",
308 ]
309
310 deps = [
311 # "../../base:rtc_base_approved",
312 ]
313 }
314
304 rtc_source_set("audio_processing_c") { 315 rtc_source_set("audio_processing_c") {
305 visibility = [ ":*" ] # Only targets in this file can depend on this. 316 visibility = [ ":*" ] # Only targets in this file can depend on this.
306 sources = [ 317 sources = [
307 "agc/legacy/analog_agc.c", 318 "agc/legacy/analog_agc.c",
308 "agc/legacy/analog_agc.h", 319 "agc/legacy/analog_agc.h",
309 "agc/legacy/digital_agc.c", 320 "agc/legacy/digital_agc.c",
310 "agc/legacy/digital_agc.h", 321 "agc/legacy/digital_agc.h",
311 "agc/legacy/gain_control.h", 322 "agc/legacy/gain_control.h",
312 ] 323 ]
313 324
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
558 } else { 569 } else {
559 defines += [ "WEBRTC_AUDIOPROC_FLOAT_PROFILE" ] 570 defines += [ "WEBRTC_AUDIOPROC_FLOAT_PROFILE" ]
560 } 571 }
561 572
562 if (rtc_enable_protobuf) { 573 if (rtc_enable_protobuf) {
563 defines += [ "WEBRTC_AUDIOPROC_DEBUG_DUMP" ] 574 defines += [ "WEBRTC_AUDIOPROC_DEBUG_DUMP" ]
564 deps += [ 575 deps += [
565 ":audioproc_debug_proto", 576 ":audioproc_debug_proto",
566 ":audioproc_protobuf_utils", 577 ":audioproc_protobuf_utils",
567 ":audioproc_unittest_proto", 578 ":audioproc_unittest_proto",
579 "../../base:rtc_task_queue",
580 "aec_dump",
581 "aec_dump:aec_dump_impl",
582 "aec_dump:aec_dump_unittests",
568 ] 583 ]
569 sources += [ 584 sources += [
570 "aec3/adaptive_fir_filter_unittest.cc", 585 "aec3/adaptive_fir_filter_unittest.cc",
571 "aec3/aec3_fft_unittest.cc", 586 "aec3/aec3_fft_unittest.cc",
572 "aec3/aec_state_unittest.cc", 587 "aec3/aec_state_unittest.cc",
573 "aec3/block_framer_unittest.cc", 588 "aec3/block_framer_unittest.cc",
574 "aec3/block_processor_metrics_unittest.cc", 589 "aec3/block_processor_metrics_unittest.cc",
575 "aec3/block_processor_unittest.cc", 590 "aec3/block_processor_unittest.cc",
576 "aec3/cascaded_biquad_filter_unittest.cc", 591 "aec3/cascaded_biquad_filter_unittest.cc",
577 "aec3/comfort_noise_generator_unittest.cc", 592 "aec3/comfort_noise_generator_unittest.cc",
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
696 "test/wav_based_simulator.cc", 711 "test/wav_based_simulator.cc",
697 "test/wav_based_simulator.h", 712 "test/wav_based_simulator.h",
698 ] 713 ]
699 714
700 deps = [ 715 deps = [
701 ":audio_processing", 716 ":audio_processing",
702 ":audioproc_debug_proto", 717 ":audioproc_debug_proto",
703 ":audioproc_protobuf_utils", 718 ":audioproc_protobuf_utils",
704 ":audioproc_test_utils", 719 ":audioproc_test_utils",
705 "../../base:rtc_base_approved", 720 "../../base:rtc_base_approved",
721 "../../base:rtc_task_queue",
706 "../../common_audio:common_audio", 722 "../../common_audio:common_audio",
707 "../../system_wrappers", 723 "../../system_wrappers",
708 "../../system_wrappers:system_wrappers_default", 724 "../../system_wrappers:system_wrappers_default",
709 "../../test:test_support", 725 "../../test:test_support",
726 "aec_dump",
727 "aec_dump:aec_dump_impl",
710 "//testing/gtest", 728 "//testing/gtest",
711 "//third_party/gflags:gflags", 729 "//third_party/gflags:gflags",
712 ] 730 ]
713 } # audioproc_f 731 } # audioproc_f
714 } 732 }
715 733
716 rtc_source_set("audioproc_test_utils") { 734 rtc_source_set("audioproc_test_utils") {
717 testonly = true 735 testonly = true
718 sources = [ 736 sources = [
719 "test/audio_buffer_tools.cc", 737 "test/audio_buffer_tools.cc",
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
815 ] 833 ]
816 834
817 deps = [ 835 deps = [
818 ":audioproc_debug_proto", 836 ":audioproc_debug_proto",
819 "../..:webrtc_common", 837 "../..:webrtc_common",
820 "../../base:rtc_base_approved", 838 "../../base:rtc_base_approved",
821 ] 839 ]
822 } 840 }
823 } 841 }
824 } 842 }
OLDNEW
« no previous file with comments | « webrtc/media/engine/webrtcvoiceengine.cc ('k') | webrtc/modules/audio_processing/aec_dump/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698