OLD | NEW |
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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 "voice_detection_impl.cc", | 231 "voice_detection_impl.cc", |
232 "voice_detection_impl.h", | 232 "voice_detection_impl.h", |
233 ] | 233 ] |
234 | 234 |
235 defines = [] | 235 defines = [] |
236 deps = [ | 236 deps = [ |
237 ":aec_dump_interface", | 237 ":aec_dump_interface", |
238 "..:module_api", | 238 "..:module_api", |
239 "../..:webrtc_common", | 239 "../..:webrtc_common", |
240 "../../audio/utility:audio_frame_operations", | 240 "../../audio/utility:audio_frame_operations", |
241 "../../rtc_base:gtest_prod", | 241 "../../base:gtest_prod", |
242 "../../rtc_base:protobuf_utils", | 242 "../../base:protobuf_utils", |
243 "../audio_coding:isac", | 243 "../audio_coding:isac", |
244 ] | 244 ] |
245 public_deps = [ | 245 public_deps = [ |
246 ":audio_processing_c", | 246 ":audio_processing_c", |
247 ] | 247 ] |
248 | 248 |
249 if (apm_debug_dump) { | 249 if (apm_debug_dump) { |
250 defines += [ "WEBRTC_APM_DEBUG_DUMP=1" ] | 250 defines += [ "WEBRTC_APM_DEBUG_DUMP=1" ] |
251 } else { | 251 } else { |
252 defines += [ "WEBRTC_APM_DEBUG_DUMP=0" ] | 252 defines += [ "WEBRTC_APM_DEBUG_DUMP=0" ] |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 ] | 296 ] |
297 } | 297 } |
298 } else { | 298 } else { |
299 sources += [ "aecm/aecm_core_c.cc" ] | 299 sources += [ "aecm/aecm_core_c.cc" ] |
300 } | 300 } |
301 | 301 |
302 # TODO(jschuh): Bug 1348: fix this warning. | 302 # TODO(jschuh): Bug 1348: fix this warning. |
303 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 303 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
304 | 304 |
305 deps += [ | 305 deps += [ |
| 306 "../../base:rtc_base_approved", |
306 "../../common_audio", | 307 "../../common_audio", |
307 "../../rtc_base:rtc_base_approved", | |
308 "../../system_wrappers", | 308 "../../system_wrappers", |
309 ] | 309 ] |
310 } | 310 } |
311 | 311 |
312 rtc_source_set("aec_dump_interface") { | 312 rtc_source_set("aec_dump_interface") { |
313 sources = [ | 313 sources = [ |
314 "include/aec_dump.cc", | 314 "include/aec_dump.cc", |
315 "include/aec_dump.h", | 315 "include/aec_dump.h", |
316 ] | 316 ] |
317 | 317 |
318 deps = [ | 318 deps = [ |
319 "../../rtc_base:rtc_base_approved", | 319 "../../base:rtc_base_approved", |
320 ] | 320 ] |
321 } | 321 } |
322 | 322 |
323 rtc_source_set("audio_processing_c") { | 323 rtc_source_set("audio_processing_c") { |
324 visibility = [ ":*" ] # Only targets in this file can depend on this. | 324 visibility = [ ":*" ] # Only targets in this file can depend on this. |
325 sources = [ | 325 sources = [ |
326 "agc/legacy/analog_agc.c", | 326 "agc/legacy/analog_agc.c", |
327 "agc/legacy/analog_agc.h", | 327 "agc/legacy/analog_agc.h", |
328 "agc/legacy/digital_agc.c", | 328 "agc/legacy/digital_agc.c", |
329 "agc/legacy/digital_agc.h", | 329 "agc/legacy/digital_agc.h", |
(...skipping 19 matching lines...) Expand all Loading... |
349 "ns/noise_suppression.c", | 349 "ns/noise_suppression.c", |
350 "ns/noise_suppression.h", | 350 "ns/noise_suppression.h", |
351 "ns/ns_core.c", | 351 "ns/ns_core.c", |
352 "ns/ns_core.h", | 352 "ns/ns_core.h", |
353 "ns/windows_private.h", | 353 "ns/windows_private.h", |
354 ] | 354 ] |
355 } | 355 } |
356 | 356 |
357 deps = [ | 357 deps = [ |
358 "../..:webrtc_common", | 358 "../..:webrtc_common", |
| 359 "../../base:rtc_base_approved", |
359 "../../common_audio", | 360 "../../common_audio", |
360 "../../rtc_base:rtc_base_approved", | |
361 "../../system_wrappers", | 361 "../../system_wrappers", |
362 ] | 362 ] |
363 | 363 |
364 if (rtc_build_with_neon) { | 364 if (rtc_build_with_neon) { |
365 deps += [ ":audio_processing_neon_c" ] | 365 deps += [ ":audio_processing_neon_c" ] |
366 } | 366 } |
367 } | 367 } |
368 | 368 |
369 if (rtc_enable_protobuf) { | 369 if (rtc_enable_protobuf) { |
370 proto_library("audioproc_debug_proto") { | 370 proto_library("audioproc_debug_proto") { |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
463 | 463 |
464 # Disable LTO on NEON targets due to compiler bug. | 464 # Disable LTO on NEON targets due to compiler bug. |
465 # TODO(fdegans): Enable this. See crbug.com/408997. | 465 # TODO(fdegans): Enable this. See crbug.com/408997. |
466 if (rtc_use_lto) { | 466 if (rtc_use_lto) { |
467 cflags -= [ | 467 cflags -= [ |
468 "-flto", | 468 "-flto", |
469 "-ffat-lto-objects", | 469 "-ffat-lto-objects", |
470 ] | 470 ] |
471 } | 471 } |
472 deps = [ | 472 deps = [ |
473 "../../rtc_base:rtc_base_approved", | 473 "../../base:rtc_base_approved", |
474 ] | 474 ] |
475 } | 475 } |
476 } | 476 } |
477 | 477 |
478 if (rtc_include_tests) { | 478 if (rtc_include_tests) { |
479 group("audio_processing_tests") { | 479 group("audio_processing_tests") { |
480 testonly = true | 480 testonly = true |
481 public_deps = [ | 481 public_deps = [ |
482 ":audioproc_test_utils", | 482 ":audioproc_test_utils", |
483 ":click_annotate", | 483 ":click_annotate", |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
543 "vad/vad_audio_proc_unittest.cc", | 543 "vad/vad_audio_proc_unittest.cc", |
544 "vad/vad_circular_buffer_unittest.cc", | 544 "vad/vad_circular_buffer_unittest.cc", |
545 "vad/voice_activity_detector_unittest.cc", | 545 "vad/voice_activity_detector_unittest.cc", |
546 ] | 546 ] |
547 | 547 |
548 deps = [ | 548 deps = [ |
549 ":audio_processing", | 549 ":audio_processing", |
550 ":audioproc_test_utils", | 550 ":audioproc_test_utils", |
551 "..:module_api", | 551 "..:module_api", |
552 "../..:webrtc_common", | 552 "../..:webrtc_common", |
| 553 "../../base:gtest_prod", |
| 554 "../../base:protobuf_utils", |
| 555 "../../base:rtc_base", |
| 556 "../../base:rtc_base_approved", |
553 "../../common_audio:common_audio", | 557 "../../common_audio:common_audio", |
554 "../../rtc_base:gtest_prod", | |
555 "../../rtc_base:protobuf_utils", | |
556 "../../rtc_base:rtc_base", | |
557 "../../rtc_base:rtc_base_approved", | |
558 "../../system_wrappers:system_wrappers", | 558 "../../system_wrappers:system_wrappers", |
559 "../../test:test_support", | 559 "../../test:test_support", |
560 "../audio_coding:neteq_tools", | 560 "../audio_coding:neteq_tools", |
561 "aec_dump:mock_aec_dump_unittests", | 561 "aec_dump:mock_aec_dump_unittests", |
562 "test/conversational_speech:unittest", | 562 "test/conversational_speech:unittest", |
563 "//testing/gmock", | 563 "//testing/gmock", |
564 "//testing/gtest", | 564 "//testing/gtest", |
565 ] | 565 ] |
566 | 566 |
567 defines = [] | 567 defines = [] |
(...skipping 19 matching lines...) Expand all Loading... |
587 } else { | 587 } else { |
588 defines += [ "WEBRTC_AUDIOPROC_FLOAT_PROFILE" ] | 588 defines += [ "WEBRTC_AUDIOPROC_FLOAT_PROFILE" ] |
589 } | 589 } |
590 | 590 |
591 if (rtc_enable_protobuf) { | 591 if (rtc_enable_protobuf) { |
592 defines += [ "WEBRTC_AUDIOPROC_DEBUG_DUMP" ] | 592 defines += [ "WEBRTC_AUDIOPROC_DEBUG_DUMP" ] |
593 deps += [ | 593 deps += [ |
594 ":audioproc_debug_proto", | 594 ":audioproc_debug_proto", |
595 ":audioproc_protobuf_utils", | 595 ":audioproc_protobuf_utils", |
596 ":audioproc_unittest_proto", | 596 ":audioproc_unittest_proto", |
597 "../../rtc_base:rtc_task_queue", | 597 "../../base:rtc_task_queue", |
598 "aec_dump", | 598 "aec_dump", |
599 "aec_dump:aec_dump_unittests", | 599 "aec_dump:aec_dump_unittests", |
600 ] | 600 ] |
601 sources += [ | 601 sources += [ |
602 "aec3/adaptive_fir_filter_unittest.cc", | 602 "aec3/adaptive_fir_filter_unittest.cc", |
603 "aec3/aec3_fft_unittest.cc", | 603 "aec3/aec3_fft_unittest.cc", |
604 "aec3/aec_state_unittest.cc", | 604 "aec3/aec_state_unittest.cc", |
605 "aec3/block_framer_unittest.cc", | 605 "aec3/block_framer_unittest.cc", |
606 "aec3/block_processor_metrics_unittest.cc", | 606 "aec3/block_processor_metrics_unittest.cc", |
607 "aec3/block_processor_unittest.cc", | 607 "aec3/block_processor_unittest.cc", |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
689 visibility = [ "//webrtc:webrtc_perf_tests" ] | 689 visibility = [ "//webrtc:webrtc_perf_tests" ] |
690 } | 690 } |
691 sources = [ | 691 sources = [ |
692 "audio_processing_performance_unittest.cc", | 692 "audio_processing_performance_unittest.cc", |
693 "level_controller/level_controller_complexity_unittest.cc", | 693 "level_controller/level_controller_complexity_unittest.cc", |
694 "residual_echo_detector_complexity_unittest.cc", | 694 "residual_echo_detector_complexity_unittest.cc", |
695 ] | 695 ] |
696 deps = [ | 696 deps = [ |
697 ":audio_processing", | 697 ":audio_processing", |
698 ":audioproc_test_utils", | 698 ":audioproc_test_utils", |
699 "../../rtc_base:protobuf_utils", | 699 "../../base:protobuf_utils", |
700 "//testing/gtest", | 700 "//testing/gtest", |
701 ] | 701 ] |
702 | 702 |
703 if (rtc_enable_intelligibility_enhancer) { | 703 if (rtc_enable_intelligibility_enhancer) { |
704 defines = [ "WEBRTC_INTELLIGIBILITY_ENHANCER=1" ] | 704 defines = [ "WEBRTC_INTELLIGIBILITY_ENHANCER=1" ] |
705 } else { | 705 } else { |
706 defines = [ "WEBRTC_INTELLIGIBILITY_ENHANCER=0" ] | 706 defines = [ "WEBRTC_INTELLIGIBILITY_ENHANCER=0" ] |
707 } | 707 } |
708 } | 708 } |
709 | 709 |
710 if (rtc_enable_protobuf) { | 710 if (rtc_enable_protobuf) { |
711 rtc_executable("unpack_aecdump") { | 711 rtc_executable("unpack_aecdump") { |
712 testonly = true | 712 testonly = true |
713 sources = [ | 713 sources = [ |
714 "test/unpack.cc", | 714 "test/unpack.cc", |
715 ] | 715 ] |
716 | 716 |
717 deps = [ | 717 deps = [ |
718 ":audio_processing", | 718 ":audio_processing", |
719 ":audioproc_debug_proto", | 719 ":audioproc_debug_proto", |
720 ":audioproc_protobuf_utils", | 720 ":audioproc_protobuf_utils", |
721 ":audioproc_test_utils", | 721 ":audioproc_test_utils", |
722 "../..:webrtc_common", | 722 "../..:webrtc_common", |
| 723 "../../base:protobuf_utils", |
| 724 "../../base:rtc_base_approved", |
723 "../../common_audio", | 725 "../../common_audio", |
724 "../../rtc_base:protobuf_utils", | |
725 "../../rtc_base:rtc_base_approved", | |
726 "../../system_wrappers:system_wrappers_default", | 726 "../../system_wrappers:system_wrappers_default", |
727 "//third_party/gflags:gflags", | 727 "//third_party/gflags:gflags", |
728 ] | 728 ] |
729 } # unpack_aecdump | 729 } # unpack_aecdump |
730 | 730 |
731 rtc_executable("audioproc_f") { | 731 rtc_executable("audioproc_f") { |
732 testonly = true | 732 testonly = true |
733 sources = [ | 733 sources = [ |
734 "test/aec_dump_based_simulator.cc", | 734 "test/aec_dump_based_simulator.cc", |
735 "test/aec_dump_based_simulator.h", | 735 "test/aec_dump_based_simulator.h", |
736 "test/audio_processing_simulator.cc", | 736 "test/audio_processing_simulator.cc", |
737 "test/audio_processing_simulator.h", | 737 "test/audio_processing_simulator.h", |
738 "test/audioproc_float.cc", | 738 "test/audioproc_float.cc", |
739 "test/wav_based_simulator.cc", | 739 "test/wav_based_simulator.cc", |
740 "test/wav_based_simulator.h", | 740 "test/wav_based_simulator.h", |
741 ] | 741 ] |
742 | 742 |
743 deps = [ | 743 deps = [ |
744 ":audio_processing", | 744 ":audio_processing", |
745 ":audioproc_debug_proto", | 745 ":audioproc_debug_proto", |
746 ":audioproc_protobuf_utils", | 746 ":audioproc_protobuf_utils", |
747 ":audioproc_test_utils", | 747 ":audioproc_test_utils", |
| 748 "../../base:protobuf_utils", |
| 749 "../../base:rtc_base_approved", |
| 750 "../../base:rtc_task_queue", |
748 "../../common_audio:common_audio", | 751 "../../common_audio:common_audio", |
749 "../../rtc_base:protobuf_utils", | |
750 "../../rtc_base:rtc_base_approved", | |
751 "../../rtc_base:rtc_task_queue", | |
752 "../../system_wrappers", | 752 "../../system_wrappers", |
753 "../../system_wrappers:system_wrappers_default", | 753 "../../system_wrappers:system_wrappers_default", |
754 "../../test:test_support", | 754 "../../test:test_support", |
755 "aec_dump", | 755 "aec_dump", |
756 "aec_dump:aec_dump_impl", | 756 "aec_dump:aec_dump_impl", |
757 "//testing/gtest", | 757 "//testing/gtest", |
758 "//third_party/gflags:gflags", | 758 "//third_party/gflags:gflags", |
759 ] | 759 ] |
760 } # audioproc_f | 760 } # audioproc_f |
761 } | 761 } |
762 | 762 |
763 rtc_source_set("audioproc_test_utils") { | 763 rtc_source_set("audioproc_test_utils") { |
764 testonly = true | 764 testonly = true |
765 sources = [ | 765 sources = [ |
766 "test/audio_buffer_tools.cc", | 766 "test/audio_buffer_tools.cc", |
767 "test/audio_buffer_tools.h", | 767 "test/audio_buffer_tools.h", |
768 "test/performance_timer.cc", | 768 "test/performance_timer.cc", |
769 "test/performance_timer.h", | 769 "test/performance_timer.h", |
770 "test/simulator_buffers.cc", | 770 "test/simulator_buffers.cc", |
771 "test/simulator_buffers.h", | 771 "test/simulator_buffers.h", |
772 "test/test_utils.cc", | 772 "test/test_utils.cc", |
773 "test/test_utils.h", | 773 "test/test_utils.h", |
774 ] | 774 ] |
775 | 775 |
776 deps = [ | 776 deps = [ |
777 ":audio_processing", | 777 ":audio_processing", |
778 "..:module_api", | 778 "..:module_api", |
| 779 "../../base:rtc_base_approved", |
779 "../../common_audio", | 780 "../../common_audio", |
780 "../../rtc_base:rtc_base_approved", | |
781 "../../system_wrappers:system_wrappers", | 781 "../../system_wrappers:system_wrappers", |
782 ] | 782 ] |
783 } | 783 } |
784 | 784 |
785 rtc_executable("transient_suppression_test") { | 785 rtc_executable("transient_suppression_test") { |
786 testonly = true | 786 testonly = true |
787 sources = [ | 787 sources = [ |
788 "transient/file_utils.cc", | 788 "transient/file_utils.cc", |
789 "transient/file_utils.h", | 789 "transient/file_utils.h", |
790 "transient/transient_suppression_test.cc", | 790 "transient/transient_suppression_test.cc", |
(...skipping 27 matching lines...) Expand all Loading... |
818 } | 818 } |
819 | 819 |
820 rtc_executable("nonlinear_beamformer_test") { | 820 rtc_executable("nonlinear_beamformer_test") { |
821 testonly = true | 821 testonly = true |
822 sources = [ | 822 sources = [ |
823 "beamformer/nonlinear_beamformer_test.cc", | 823 "beamformer/nonlinear_beamformer_test.cc", |
824 ] | 824 ] |
825 deps = [ | 825 deps = [ |
826 ":audio_processing", | 826 ":audio_processing", |
827 ":audioproc_test_utils", | 827 ":audioproc_test_utils", |
| 828 "../../base:rtc_base_approved", |
828 "../../common_audio:common_audio", | 829 "../../common_audio:common_audio", |
829 "../../rtc_base:rtc_base_approved", | |
830 "../../system_wrappers:metrics_default", | 830 "../../system_wrappers:metrics_default", |
831 "//third_party/gflags", | 831 "//third_party/gflags", |
832 ] | 832 ] |
833 } | 833 } |
834 | 834 |
835 if (rtc_enable_intelligibility_enhancer) { | 835 if (rtc_enable_intelligibility_enhancer) { |
836 rtc_executable("intelligibility_proc") { | 836 rtc_executable("intelligibility_proc") { |
837 testonly = true | 837 testonly = true |
838 sources = [ | 838 sources = [ |
839 "intelligibility/test/intelligibility_proc.cc", | 839 "intelligibility/test/intelligibility_proc.cc", |
(...skipping 19 matching lines...) Expand all Loading... |
859 | 859 |
860 rtc_static_library("audioproc_protobuf_utils") { | 860 rtc_static_library("audioproc_protobuf_utils") { |
861 sources = [ | 861 sources = [ |
862 "test/protobuf_utils.cc", | 862 "test/protobuf_utils.cc", |
863 "test/protobuf_utils.h", | 863 "test/protobuf_utils.h", |
864 ] | 864 ] |
865 | 865 |
866 deps = [ | 866 deps = [ |
867 ":audioproc_debug_proto", | 867 ":audioproc_debug_proto", |
868 "../..:webrtc_common", | 868 "../..:webrtc_common", |
869 "../../rtc_base:protobuf_utils", | 869 "../../base:protobuf_utils", |
870 "../../rtc_base:rtc_base_approved", | 870 "../../base:rtc_base_approved", |
871 ] | 871 ] |
872 } | 872 } |
873 } | 873 } |
874 } | 874 } |
OLD | NEW |