summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz93@gmail.com>2022-09-11 01:09:17 -0400
committerEli Schwartz <eschwartz93@gmail.com>2022-09-11 01:49:42 -0400
commit474894ed17a037a464e5bd845a0765a50f647898 (patch)
tree5da3a00994d506c0ff318e13a7c70a2989271e88
parentfb5c0c301aa9b6d984ffee522775ca19ea7c7be6 (diff)
downloaddrm-474894ed17a037a464e5bd845a0765a50f647898.tar.gz
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 <eschwartz93@gmail.com> Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
-rw-r--r--meson.build4
1 files changed, 4 insertions, 0 deletions
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()