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
@ -149,7 +149,7 @@ AudioDeviceGeneric::InitStatus AudioDeviceLinuxALSA::Init() {
|
||||
if (_initialized) {
|
||||
return InitStatus::OK;
|
||||
}
|
||||
#if defined(USE_X11)
|
||||
#if defined(WEBRTC_USE_X11)
|
||||
// Get X display handle for typing detection
|
||||
_XDisplay = XOpenDisplay(NULL);
|
||||
if (!_XDisplay) {
|
||||
@ -193,7 +193,7 @@ int32_t AudioDeviceLinuxALSA::Terminate() {
|
||||
|
||||
_critSect.Enter();
|
||||
}
|
||||
#if defined(USE_X11)
|
||||
#if defined(WEBRTC_USE_X11)
|
||||
if (_XDisplay) {
|
||||
XCloseDisplay(_XDisplay);
|
||||
_XDisplay = NULL;
|
||||
@ -1624,7 +1624,7 @@ bool AudioDeviceLinuxALSA::RecThreadProcess() {
|
||||
}
|
||||
|
||||
bool AudioDeviceLinuxALSA::KeyPressed() const {
|
||||
#if defined(USE_X11)
|
||||
#if defined(WEBRTC_USE_X11)
|
||||
char szKey[32];
|
||||
unsigned int i = 0;
|
||||
char state = 0;
|
||||
|
||||
Reference in New Issue
Block a user