From e7b0f522d77799dceec400c0ecf5d6ce6121c62b Mon Sep 17 00:00:00 2001 From: kjellander Date: Tue, 3 Jan 2017 22:09:25 -0800 Subject: [PATCH] Add rtc_enable_external_auth variable for setting ENABLE_EXTERNAL_AUTH This will make it easier for some downstream projects to control whether or not to set ENABLE_EXTERNAL_AUTH, via the GN variable. BUG=None NOTRY=True Review-Url: https://codereview.webrtc.org/2608673002 Cr-Commit-Position: refs/heads/master@{#15894} --- webrtc/BUILD.gn | 5 ++++- webrtc/build/webrtc.gni | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/webrtc/BUILD.gn b/webrtc/BUILD.gn index 3fb9cfea72..ba58565dc8 100644 --- a/webrtc/BUILD.gn +++ b/webrtc/BUILD.gn @@ -122,13 +122,16 @@ config("common_config") { defines += [ "HAVE_SCTP" ] } + if (rtc_enable_external_auth) { + defines += [ "ENABLE_EXTERNAL_AUTH" ] + } + if (build_with_chromium) { defines += [ # NOTICE: Since common_inherited_config is used in public_configs for our # targets, there's no point including the defines in that config here. # TODO(kjellander): Cleanup unused ones and move defines closer to the # source when webrtc:4256 is completed. - "ENABLE_EXTERNAL_AUTH", "HAVE_OPENSSL_SSL_H", "HAVE_SRTP", "HAVE_WEBRTC_VIDEO", diff --git a/webrtc/build/webrtc.gni b/webrtc/build/webrtc.gni index 1f97724380..ce59871576 100644 --- a/webrtc/build/webrtc.gni +++ b/webrtc/build/webrtc.gni @@ -40,6 +40,10 @@ declare_args() { # Disable the code for the intelligibility enhancer by default. rtc_enable_intelligibility_enhancer = false + # Enable when an external authentication mechanism is used for performing + # packet authentication for RTP packets instead of libsrtp. + rtc_enable_external_auth = build_with_chromium + # Selects whether debug dumps for the audio processing module # should be generated. apm_debug_dump = false