meson: fix value of `auto` for a bunch of drivers

You can't have an error if your driver is requested by you're missing
a dep, but then happily build that driver without the dep in `auto`.

Signed-off-by: Eric Engestrom <eric@engestrom.ch>
main
Eric Engestrom 2022-08-22 20:20:40 +01:00
parent 3e3874d50d
commit 502f64cb30
1 changed files with 5 additions and 5 deletions

View File

@ -89,7 +89,7 @@ if _intel != 'false'
if _intel == 'true' and not with_atomics if _intel == 'true' and not with_atomics
error('libdrm_intel requires atomics.') error('libdrm_intel requires atomics.')
else else
with_intel = _intel == 'true' or host_machine.cpu_family().startswith('x86') with_intel = (_intel == 'true' or host_machine.cpu_family().startswith('x86')) and with_atomics
endif endif
endif endif
summary('Intel', with_intel) summary('Intel', with_intel)
@ -100,7 +100,7 @@ if _radeon != 'false'
if _radeon == 'true' and not with_atomics if _radeon == 'true' and not with_atomics
error('libdrm_radeon requires atomics.') error('libdrm_radeon requires atomics.')
endif endif
with_radeon = true with_radeon = with_atomics
endif endif
summary('Radeon', with_radeon) summary('Radeon', with_radeon)
@ -110,7 +110,7 @@ if _amdgpu != 'false'
if _amdgpu == 'true' and not with_atomics if _amdgpu == 'true' and not with_atomics
error('libdrm_amdgpu requires atomics.') error('libdrm_amdgpu requires atomics.')
endif endif
with_amdgpu = true with_amdgpu = with_atomics
endif endif
summary('AMDGPU', with_amdgpu) summary('AMDGPU', with_amdgpu)
@ -120,7 +120,7 @@ if _nouveau != 'false'
if _nouveau == 'true' and not with_atomics if _nouveau == 'true' and not with_atomics
error('libdrm_nouveau requires atomics.') error('libdrm_nouveau requires atomics.')
endif endif
with_nouveau = true with_nouveau = with_atomics
endif endif
summary('Nouveau', with_nouveau) summary('Nouveau', with_nouveau)
@ -147,7 +147,7 @@ if _freedreno != 'false'
if _freedreno == 'true' and not with_atomics if _freedreno == 'true' and not with_atomics
error('libdrm_freedreno requires atomics.') error('libdrm_freedreno requires atomics.')
else else
with_freedreno = _freedreno == 'true' or ['arm', 'aarch64'].contains(host_machine.cpu_family()) with_freedreno = (_freedreno == 'true' or ['arm', 'aarch64'].contains(host_machine.cpu_family())) and with_atomics
endif endif
endif endif
summary('Freedreno', with_freedreno) summary('Freedreno', with_freedreno)