Skip to content

Commit

Permalink
[build] Allow standalone DXGI builds
Browse files Browse the repository at this point in the history
  • Loading branch information
doitsujin committed Nov 28, 2022
1 parent 42332f7 commit 9f70666
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand All @@ -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

0 comments on commit 9f70666

Please sign in to comment.