From 474894ed17a037a464e5bd845a0765a50f647898 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Sun, 11 Sep 2022 01:09:17 -0400 Subject: meson: fast-fail on unsupported OSes It's not worth even attempting to configure anything on OSes where there is no DRM to have a userspace library for. This failure message can be useful in e.g. the case where libdrm is an optional wrap fallback in another project. Signed-off-by: Eli Schwartz Reviewed-by: Dylan Baker --- meson.build | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meson.build b/meson.build index 62040c67..024381d3 100644 --- a/meson.build +++ b/meson.build @@ -27,6 +27,10 @@ project( default_options : ['buildtype=debugoptimized', 'c_std=c11'], ) +if ['windows', 'darwin'].contains(host_machine.system()) + error('unsupported OS: @0@'.format(host_machine.system())) +endif + pkg = import('pkgconfig') config = configuration_data() -- cgit v1.2.1