[build] Allow standalone DXGI builds

This commit is contained in:
Philip Rebohle 2022-11-28 13:45:37 +01:00 committed by Philip Rebohle
parent 42332f7fb8
commit 9f70666777
1 changed files with 4 additions and 4 deletions

View File

@ -5,9 +5,6 @@ subdir('vulkan')
subdir('dxvk')
if get_option('enable_dxgi')
if not get_option('enable_d3d11')
error('D3D11 is required for DXGI.')
endif
subdir('dxgi')
endif
@ -16,6 +13,9 @@ if get_option('enable_d3d10') or get_option('enable_d3d11')
endif
if get_option('enable_d3d11')
if not get_option('enable_dxgi')
error('DXGI is required for D3D11.')
endif
subdir('d3d11')
endif
@ -32,6 +32,6 @@ if get_option('enable_d3d9')
endif
# Nothing selected
if not get_option('enable_d3d9') and not get_option('enable_d3d10') and not get_option('enable_d3d11')
if not get_option('enable_d3d9') and not get_option('enable_dxgi')
warning('Nothing selected to be built.?')
endif