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>
main
Eli Schwartz 2022-09-11 01:09:17 -04:00
parent fb5c0c301a
commit 474894ed17
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6
1 changed files with 4 additions and 0 deletions

View File

@ -27,6 +27,10 @@ project(
default_options : ['buildtype=debugoptimized', 'c_std=c11'], 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') pkg = import('pkgconfig')
config = configuration_data() config = configuration_data()