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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 "echo_cancellation_impl.h", | 67 "echo_cancellation_impl.h", |
68 "echo_control_mobile_impl.cc", | 68 "echo_control_mobile_impl.cc", |
69 "echo_control_mobile_impl.h", | 69 "echo_control_mobile_impl.h", |
70 "gain_control_for_experimental_agc.cc", | 70 "gain_control_for_experimental_agc.cc", |
71 "gain_control_for_experimental_agc.h", | 71 "gain_control_for_experimental_agc.h", |
72 "gain_control_impl.cc", | 72 "gain_control_impl.cc", |
73 "gain_control_impl.h", | 73 "gain_control_impl.h", |
74 "high_pass_filter_impl.cc", | 74 "high_pass_filter_impl.cc", |
75 "high_pass_filter_impl.h", | 75 "high_pass_filter_impl.h", |
76 "include/audio_processing.h", | 76 "include/audio_processing.h", |
77 "intelligibility/intelligibility_enhancer.cc", | |
78 "intelligibility/intelligibility_enhancer.h", | |
79 "intelligibility/intelligibility_utils.cc", | |
80 "intelligibility/intelligibility_utils.h", | |
81 "level_controller/biquad_filter.cc", | 77 "level_controller/biquad_filter.cc", |
82 "level_controller/biquad_filter.h", | 78 "level_controller/biquad_filter.h", |
83 "level_controller/down_sampler.cc", | 79 "level_controller/down_sampler.cc", |
84 "level_controller/down_sampler.h", | 80 "level_controller/down_sampler.h", |
85 "level_controller/gain_applier.cc", | 81 "level_controller/gain_applier.cc", |
86 "level_controller/gain_applier.h", | 82 "level_controller/gain_applier.h", |
87 "level_controller/gain_selector.cc", | 83 "level_controller/gain_selector.cc", |
88 "level_controller/gain_selector.h", | 84 "level_controller/gain_selector.h", |
89 "level_controller/lc_constants.h", | 85 "level_controller/lc_constants.h", |
90 "level_controller/level_controller.cc", | 86 "level_controller/level_controller.cc", |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 | 171 |
176 if (aec_untrusted_delay_for_testing) { | 172 if (aec_untrusted_delay_for_testing) { |
177 defines += [ "WEBRTC_UNTRUSTED_DELAY" ] | 173 defines += [ "WEBRTC_UNTRUSTED_DELAY" ] |
178 } | 174 } |
179 | 175 |
180 if (rtc_enable_protobuf) { | 176 if (rtc_enable_protobuf) { |
181 defines += [ "WEBRTC_AUDIOPROC_DEBUG_DUMP" ] | 177 defines += [ "WEBRTC_AUDIOPROC_DEBUG_DUMP" ] |
182 deps += [ ":audioproc_debug_proto" ] | 178 deps += [ ":audioproc_debug_proto" ] |
183 } | 179 } |
184 | 180 |
| 181 if (intelligibility_enhancer) { |
| 182 defines += [ "WEBRTC_INTELLIGIBILITY_ENHANCER=1" ] |
| 183 sources += [ |
| 184 "intelligibility/intelligibility_enhancer.cc", |
| 185 "intelligibility/intelligibility_enhancer.h", |
| 186 "intelligibility/intelligibility_utils.cc", |
| 187 "intelligibility/intelligibility_utils.h", |
| 188 ] |
| 189 } else { |
| 190 defines += [ "WEBRTC_INTELLIGIBILITY_ENHANCER=0" ] |
| 191 } |
| 192 |
185 if (rtc_prefer_fixed_point) { | 193 if (rtc_prefer_fixed_point) { |
186 defines += [ "WEBRTC_NS_FIXED" ] | 194 defines += [ "WEBRTC_NS_FIXED" ] |
187 sources += [ | 195 sources += [ |
188 "ns/noise_suppression_x.c", | 196 "ns/noise_suppression_x.c", |
189 "ns/noise_suppression_x.h", | 197 "ns/noise_suppression_x.h", |
190 "ns/nsx_core.c", | 198 "ns/nsx_core.c", |
191 "ns/nsx_core.h", | 199 "ns/nsx_core.h", |
192 "ns/nsx_defines.h", | 200 "ns/nsx_defines.h", |
193 ] | 201 ] |
194 if (current_cpu == "mipsel") { | 202 if (current_cpu == "mipsel") { |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
474 ":audioproc_test_utils", | 482 ":audioproc_test_utils", |
475 "../../system_wrappers:metrics_default", | 483 "../../system_wrappers:metrics_default", |
476 "//third_party/gflags", | 484 "//third_party/gflags", |
477 ] | 485 ] |
478 if (is_clang) { | 486 if (is_clang) { |
479 # Suppress warnings from the Chromium Clang plugins (bugs.webrtc.org/163). | 487 # Suppress warnings from the Chromium Clang plugins (bugs.webrtc.org/163). |
480 configs -= [ "//build/config/clang:find_bad_constructs" ] | 488 configs -= [ "//build/config/clang:find_bad_constructs" ] |
481 } | 489 } |
482 } | 490 } |
483 | 491 |
484 executable("intelligibility_proc") { | 492 if (intelligibility_enhancer) { |
485 testonly = true | 493 executable("intelligibility_proc") { |
486 sources = [ | 494 testonly = true |
487 "intelligibility/test/intelligibility_proc.cc", | 495 sources = [ |
488 ] | 496 "intelligibility/test/intelligibility_proc.cc", |
489 deps = [ | 497 ] |
490 ":audio_processing", | 498 deps = [ |
491 ":audioproc_test_utils", | 499 ":audio_processing", |
492 "../../system_wrappers:metrics_default", | 500 ":audioproc_test_utils", |
493 "../../test:test_support", | 501 "../../system_wrappers:metrics_default", |
494 "//testing/gtest", | 502 "../../test:test_support", |
495 "//third_party/gflags", | 503 "//testing/gtest", |
496 ] | 504 "//third_party/gflags", |
497 if (is_clang) { | 505 ] |
498 # Suppress warnings from the Chromium Clang plugins (bugs.webrtc.org/163). | 506 if (is_clang) { |
499 configs -= [ "//build/config/clang:find_bad_constructs" ] | 507 # Suppress warnings from the Chromium Clang plugins (bugs.webrtc.org/163
). |
| 508 configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 509 } |
500 } | 510 } |
501 } | 511 } |
502 | 512 |
503 if (rtc_enable_protobuf) { | 513 if (rtc_enable_protobuf) { |
504 proto_library("audioproc_unittest_proto") { | 514 proto_library("audioproc_unittest_proto") { |
505 sources = [ | 515 sources = [ |
506 "test/unittest.proto", | 516 "test/unittest.proto", |
507 ] | 517 ] |
508 proto_out_dir = "webrtc/modules/audio_processing" | 518 proto_out_dir = "webrtc/modules/audio_processing" |
509 } | 519 } |
510 | 520 |
511 source_set("audioproc_protobuf_utils") { | 521 source_set("audioproc_protobuf_utils") { |
512 sources = [ | 522 sources = [ |
513 "test/protobuf_utils.cc", | 523 "test/protobuf_utils.cc", |
514 "test/protobuf_utils.h", | 524 "test/protobuf_utils.h", |
515 ] | 525 ] |
516 | 526 |
517 deps = [ | 527 deps = [ |
518 ":audioproc_debug_proto", | 528 ":audioproc_debug_proto", |
519 ] | 529 ] |
520 } | 530 } |
521 } | 531 } |
522 } | 532 } |
OLD | NEW |