Index: webrtc/modules/BUILD.gn |
diff --git a/webrtc/modules/BUILD.gn b/webrtc/modules/BUILD.gn |
index c04f00c49bb3df6c179410ec902c4e42706bda0f..873c97868040e78eb792faeb5b6a10f2e9a86f4e 100644 |
--- a/webrtc/modules/BUILD.gn |
+++ b/webrtc/modules/BUILD.gn |
@@ -199,8 +199,6 @@ if (rtc_include_tests) { |
"audio_processing/beamformer/mock_nonlinear_beamformer.h", |
"audio_processing/beamformer/nonlinear_beamformer_unittest.cc", |
"audio_processing/echo_cancellation_impl_unittest.cc", |
- "audio_processing/intelligibility/intelligibility_enhancer_unittest.cc", |
- "audio_processing/intelligibility/intelligibility_utils_unittest.cc", |
"audio_processing/splitting_filter_unittest.cc", |
"audio_processing/transient/dyadic_decimator_unittest.cc", |
"audio_processing/transient/file_utils.cc", |
@@ -348,6 +346,16 @@ if (rtc_include_tests) { |
"video_processing/test/video_processing_unittest.h", |
] |
+ if (rtc_enable_intelligibility_enhancer) { |
+ defines += [ "WEBRTC_INTELLIGIBILITY_ENHANCER=1" ] |
+ sources += [ |
+ "audio_processing/intelligibility/intelligibility_enhancer_unittest.cc", |
+ "audio_processing/intelligibility/intelligibility_utils_unittest.cc", |
+ ] |
+ } else { |
+ defines += [ "WEBRTC_INTELLIGIBILITY_ENHANCER=0" ] |
+ } |
+ |
if (rtc_libvpx_build_vp9) { |
sources += |
[ "video_coding/codecs/vp9/vp9_screenshare_layers_unittest.cc" ] |