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

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

Issue 2272423003: Deactivated the intelligibility enhancement functionality by default (Closed)
Patch Set: Changed name of build file flags Created 4 years, 4 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
« no previous file with comments | « webrtc/modules/BUILD.gn ('k') | webrtc/modules/audio_processing/audio_processing.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/audio_processing/BUILD.gn
diff --git a/webrtc/modules/audio_processing/BUILD.gn b/webrtc/modules/audio_processing/BUILD.gn
index 21c89d3ad76755bd44303d095ac183a00e44d23f..97705c69c591b2f1a41323e10705538a23481203 100644
--- a/webrtc/modules/audio_processing/BUILD.gn
+++ b/webrtc/modules/audio_processing/BUILD.gn
@@ -74,10 +74,6 @@ source_set("audio_processing") {
"high_pass_filter_impl.cc",
"high_pass_filter_impl.h",
"include/audio_processing.h",
- "intelligibility/intelligibility_enhancer.cc",
- "intelligibility/intelligibility_enhancer.h",
- "intelligibility/intelligibility_utils.cc",
- "intelligibility/intelligibility_utils.h",
"level_controller/biquad_filter.cc",
"level_controller/biquad_filter.h",
"level_controller/down_sampler.cc",
@@ -182,6 +178,18 @@ source_set("audio_processing") {
deps += [ ":audioproc_debug_proto" ]
}
+ if (rtc_enable_intelligibility_enhancer) {
+ defines += [ "WEBRTC_INTELLIGIBILITY_ENHANCER=1" ]
+ sources += [
+ "intelligibility/intelligibility_enhancer.cc",
+ "intelligibility/intelligibility_enhancer.h",
+ "intelligibility/intelligibility_utils.cc",
+ "intelligibility/intelligibility_utils.h",
+ ]
+ } else {
+ defines += [ "WEBRTC_INTELLIGIBILITY_ENHANCER=0" ]
+ }
+
if (rtc_prefer_fixed_point) {
defines += [ "WEBRTC_NS_FIXED" ]
sources += [
@@ -481,22 +489,24 @@ if (rtc_include_tests) {
}
}
- executable("intelligibility_proc") {
- testonly = true
- sources = [
- "intelligibility/test/intelligibility_proc.cc",
- ]
- deps = [
- ":audio_processing",
- ":audioproc_test_utils",
- "../../system_wrappers:metrics_default",
- "../../test:test_support",
- "//testing/gtest",
- "//third_party/gflags",
- ]
- if (is_clang) {
- # Suppress warnings from the Chromium Clang plugins (bugs.webrtc.org/163).
- configs -= [ "//build/config/clang:find_bad_constructs" ]
+ if (rtc_enable_intelligibility_enhancer) {
+ executable("intelligibility_proc") {
+ testonly = true
+ sources = [
+ "intelligibility/test/intelligibility_proc.cc",
+ ]
+ deps = [
+ ":audio_processing",
+ ":audioproc_test_utils",
+ "../../system_wrappers:metrics_default",
+ "../../test:test_support",
+ "//testing/gtest",
+ "//third_party/gflags",
+ ]
+ if (is_clang) {
+ # Suppress warnings from the Chromium Clang plugins (bugs.webrtc.org/163).
+ configs -= [ "//build/config/clang:find_bad_constructs" ]
+ }
}
}
« no previous file with comments | « webrtc/modules/BUILD.gn ('k') | webrtc/modules/audio_processing/audio_processing.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698