crosvm/rutabaga_gfx
Alexandre Courbot eea1729c39 rutabaga_gfx: do not support GLX if x feature is not enabled
At the moment compiling with the "virgl_renderer" feature enabled but
"x" disabled results in a link error because the virgl_renderer enables
all its platforms without checking. Fix this by enabling the glx
platform only if the x feature has also been enabled.

BUG=b:226033718
TEST=`cargo build --features "virgl_renderer"` passes.
TEST=`cargo build --features "virgl_renderer,x"` passes and enables GLX
in virgl_renderer.

Change-Id: I85041fc2a3db7e49415add69389bee3160ba4a5b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3539327
Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
Commit-Queue: Alexandre Courbot <acourbot@chromium.org>
2022-03-23 02:12:23 +00:00
..
ffi Refactoring: Move common/base into base 2022-03-17 00:01:27 +00:00
src rutabaga_gfx: make build fail if default component is not enabled 2022-03-23 00:10:46 +00:00
build.rs rutabaga_gfx: do not support GLX if x feature is not enabled 2022-03-23 02:12:23 +00:00
Cargo.toml rutabaga_gfx: do not support GLX if x feature is not enabled 2022-03-23 02:12:23 +00:00