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
parent
fb5c0c301a
commit
474894ed17
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue