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
@ -83,6 +83,9 @@ declare_args() {
|
||||
# Set this to false to skip building tools.
|
||||
rtc_build_tools = true
|
||||
|
||||
# Set this to false to skip building code that requires X11.
|
||||
rtc_use_x11 = use_x11
|
||||
|
||||
# Disable these to not build components which can be externally provided.
|
||||
rtc_build_json = true
|
||||
rtc_build_libsrtp = true
|
||||
@ -201,7 +204,7 @@ rtc_libvpx_dir = "//third_party/libvpx"
|
||||
rtc_opus_dir = "//third_party/opus"
|
||||
|
||||
# Desktop capturer is supported only on Windows, OSX and Linux.
|
||||
rtc_desktop_capture_supported = is_win || is_mac || (is_linux && use_x11)
|
||||
rtc_desktop_capture_supported = is_win || is_mac || (is_linux && rtc_use_x11)
|
||||
|
||||
###############################################################################
|
||||
# Templates
|
||||
|
Reference in New Issue
Block a user