Make building with X11 libraries optional.
Desktop capturing on Linux will be disabled in this case, but everything can be built without any X11 development libraries installed. BUG=webrtc:5716,webrtc:8319 Change-Id: I01bd6a4b02816b407be19476e22ff073d264b496 Reviewed-on: https://webrtc-review.googlesource.com/32360 Reviewed-by: Henrik Andreassson (OOO until Jan 2) <henrika@webrtc.org> Reviewed-by: Patrik Höglund <phoglund@webrtc.org> Commit-Queue: Joachim Bauch <jbauch@webrtc.org> Cr-Commit-Position: refs/heads/master@{#21462}
This commit is contained in:
committed by
Commit Bot
parent
6213929de5
commit
75f18fca8e
@ -18,7 +18,7 @@
|
||||
#include "rtc_base/criticalsection.h"
|
||||
#include "rtc_base/platform_thread.h"
|
||||
|
||||
#if defined(USE_X11)
|
||||
#if defined(WEBRTC_USE_X11)
|
||||
#include <X11/Xlib.h>
|
||||
#endif
|
||||
#include <alsa/asoundlib.h>
|
||||
@ -192,7 +192,7 @@ private:
|
||||
snd_pcm_sframes_t _playoutDelay;
|
||||
|
||||
char _oldKeyState[32];
|
||||
#if defined(USE_X11)
|
||||
#if defined(WEBRTC_USE_X11)
|
||||
Display* _XDisplay;
|
||||
#endif
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user