meson: Add option to disable libdrm support
Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
This commit is contained in:
parent
1f720dc9a3
commit
722da1c62c
|
@ -482,7 +482,7 @@ else
|
|||
endif
|
||||
endif
|
||||
|
||||
libdrm_required = build_dri1 or build_dri2 or build_dri3
|
||||
libdrm_required = (build_dri1 or build_dri2 or build_dri3) and get_option('drm') == true
|
||||
if not libdrm_dep.found() and libdrm_required
|
||||
error('DRI requested, but LIBDRM not found')
|
||||
endif
|
||||
|
|
|
@ -113,6 +113,8 @@ option('xf86-input-inputtest', type: 'boolean', value: true,
|
|||
option('dri1', type: 'combo', choices: ['true', 'false', 'auto'], value: 'auto', description: 'Build DRI1 extension (default: auto)')
|
||||
option('dri2', type: 'combo', choices: ['true', 'false', 'auto'], value: 'auto', description: 'Build DRI2 extension (default: auto)')
|
||||
option('dri3', type: 'combo', choices: ['true', 'false', 'auto'], value: 'auto', description: 'Build DRI3 extension (default: auto)')
|
||||
option('drm', type: 'boolean', value: 'true',
|
||||
description: 'Build Xorg with libdrm support')
|
||||
|
||||
option('apple-applications-dir', type: 'string', value: '/Applications/Utilities',
|
||||
description: 'Applications directory')
|
||||
|
|
Loading…
Reference in New Issue