[build] Don't build D3D10 on non-Windows platforms

Not supported due to d3dcompiler schenanigans
This commit is contained in:
Joshua Ashton 2022-08-21 19:14:02 +00:00 committed by Philip Rebohle
parent baba2e3c09
commit 191d54e210
1 changed files with 7 additions and 3 deletions

View File

@ -20,10 +20,14 @@ if get_option('enable_d3d11')
endif
if get_option('enable_d3d10')
if not get_option('enable_d3d11')
error('D3D11 is required for D3D10.')
if platform == 'windows'
if not get_option('enable_d3d11')
error('D3D11 is required for D3D10.')
endif
subdir('d3d10')
else
warning('Building D3D10 is not supported on non-Windows platforms')
endif
subdir('d3d10')
endif
if get_option('enable_d3d9')