diff options
author | Eric Engestrom <[email protected]> | 2018-05-10 16:03:30 +0100 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2018-06-01 17:53:06 +0100 |
commit | 393abd6a57d8caf25fc1283e84bea4a76f5d3676 (patch) | |
tree | bef7f2f775e6075473898fd3e23d791b28c63dbc /meson.build | |
parent | 8faa22c146c2190e42236b96c266964448508c29 (diff) |
meson: fix dri-drivers=[]
Fixes: 5608d0a2cee47c7d037f ("meson: use array type options")
Signed-off-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/meson.build b/meson.build index 4aafba802a5..21579de0acd 100644 --- a/meson.build +++ b/meson.build @@ -93,13 +93,6 @@ endif system_has_kms_drm = ['openbsd', 'netbsd', 'freebsd', 'dragonfly', 'linux'].contains(host_machine.system()) -with_dri = false -with_dri_i915 = false -with_dri_i965 = false -with_dri_r100 = false -with_dri_r200 = false -with_dri_nouveau = false -with_dri_swrast = false _drivers = get_option('dri-drivers') if _drivers.contains('auto') if system_has_kms_drm @@ -118,15 +111,15 @@ if _drivers.contains('auto') error('Unknown OS. Please pass -Ddri-drivers to set driver options. Patches gladly accepted to fix this.') endif endif -if _drivers != [''] - with_dri_i915 = _drivers.contains('i915') - with_dri_i965 = _drivers.contains('i965') - with_dri_r100 = _drivers.contains('r100') - with_dri_r200 = _drivers.contains('r200') - with_dri_nouveau = _drivers.contains('nouveau') - with_dri_swrast = _drivers.contains('swrast') - with_dri = true -endif + +with_dri_i915 = _drivers.contains('i915') +with_dri_i965 = _drivers.contains('i965') +with_dri_r100 = _drivers.contains('r100') +with_dri_r200 = _drivers.contains('r200') +with_dri_nouveau = _drivers.contains('nouveau') +with_dri_swrast = _drivers.contains('swrast') + +with_dri = _drivers.length() != 0 and _drivers != [''] with_gallium = false with_gallium_pl111 = false |