mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-28 07:30:13 +01:00
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>
This commit is contained in:
parent
fb5c0c301a
commit
474894ed17
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue