summaryrefslogtreecommitdiffstats
path: root/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build7
1 files changed, 7 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index fe3eb8ee210..f8007dff0e8 100644
--- a/meson.build
+++ b/meson.build
@@ -198,6 +198,13 @@ with_platform_drm = false
with_platform_surfaceless = false
egl_native_platform = ''
_platforms = get_option('platforms')
+if _platforms == 'auto'
+ if ['linux'].contains(host_machine.system())
+ _platforms = 'x11,wayland,drm,surfaceless'
+ else
+ error('Unknown OS, no platforms enabled. Patches gladly accepted to fix this.')
+ endif
+endif
if _platforms != ''
_split = _platforms.split(',')
with_platform_android = _split.contains('android')