From 9f7066677731e9a7ef2fa16cf85e36fd32c3313a Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Mon, 28 Nov 2022 13:45:37 +0100 Subject: [PATCH] [build] Allow standalone DXGI builds --- src/meson.build | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/meson.build b/src/meson.build index f641ac046..779d9d46f 100644 --- a/src/meson.build +++ b/src/meson.build @@ -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