From 191d54e210466a4c8a6ac4b59e0b63585089ebfd Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Sun, 21 Aug 2022 19:14:02 +0000 Subject: [PATCH] [build] Don't build D3D10 on non-Windows platforms Not supported due to d3dcompiler schenanigans --- src/meson.build | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/meson.build b/src/meson.build index c2831cf1b..e7efdbca8 100644 --- a/src/meson.build +++ b/src/meson.build @@ -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')