meson: Don't try to build GLX by default on Android.
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7227>
diff --git a/meson.build b/meson.build
index a4aec17..2e1d4ac 100644
--- a/meson.build
+++ b/meson.build
@@ -350,7 +350,9 @@
with_glx = get_option('glx')
if with_glx == 'auto'
- if with_dri
+ if with_platform_android
+ with_glx = 'disabled'
+ elif with_dri
with_glx = 'dri'
elif with_platform_haiku
with_glx = 'disabled'