From c41d0c49130924d7e97d293f98daeab721ab090f Mon Sep 17 00:00:00 2001 From: kjellander Date: Tue, 30 May 2017 12:06:04 -0700 Subject: [PATCH] Have audio_device only depend on X11 if use_x11 is set. BUG=None NOTRY=True Review-Url: https://codereview.webrtc.org/2909343002 Cr-Commit-Position: refs/heads/master@{#18335} --- webrtc/modules/audio_device/BUILD.gn | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/webrtc/modules/audio_device/BUILD.gn b/webrtc/modules/audio_device/BUILD.gn index 2568ef3cc8..2f678d6dc0 100644 --- a/webrtc/modules/audio_device/BUILD.gn +++ b/webrtc/modules/audio_device/BUILD.gn @@ -137,10 +137,10 @@ rtc_static_library("audio_device") { "linux/latebindingsymboltable_linux.h", ] defines += [ "LINUX_ALSA" ] - libs = [ - "dl", - "X11", - ] + libs = [ "dl" ] + if (use_x11) { + libs += [ "X11" ] + } if (rtc_include_pulse_audio) { sources += [ "linux/audio_device_pulse_linux.cc",