From fd87f4af660848c4497136eb6972a56e0967abdf Mon Sep 17 00:00:00 2001 From: "henrik.lundin" Date: Mon, 28 Nov 2016 11:15:54 -0800 Subject: [PATCH] Opus: Move complexity variable out of conditional build flag BUG=webrtc:6708 Review-Url: https://codereview.webrtc.org/2535933002 Cr-Commit-Position: refs/heads/master@{#15277} --- webrtc/modules/audio_coding/BUILD.gn | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/webrtc/modules/audio_coding/BUILD.gn b/webrtc/modules/audio_coding/BUILD.gn index 8c5a079828..7bd8adfd8d 100644 --- a/webrtc/modules/audio_coding/BUILD.gn +++ b/webrtc/modules/audio_coding/BUILD.gn @@ -713,16 +713,16 @@ rtc_static_library("webrtc_opus") { ] defines = [] + if (rtc_opus_variable_complexity) { + defines += [ "WEBRTC_OPUS_VARIABLE_COMPLEXITY=1" ] + } else { + defines += [ "WEBRTC_OPUS_VARIABLE_COMPLEXITY=0" ] + } if (rtc_build_opus) { public_deps = [ rtc_opus_dir, ] - if (rtc_opus_variable_complexity) { - defines += [ "WEBRTC_OPUS_VARIABLE_COMPLEXITY=1" ] - } else { - defines += [ "WEBRTC_OPUS_VARIABLE_COMPLEXITY=0" ] - } } else if (build_with_mozilla) { include_dirs = [ getenv("DIST") + "/include/opus" ] }