summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'wscript')
-rw-r--r--wscript17
1 files changed, 13 insertions, 4 deletions
diff --git a/wscript b/wscript
index ad17012bec..50cbccf2ce 100644
--- a/wscript
+++ b/wscript
@@ -754,6 +754,19 @@ video_output_features = [
'deps': 'win32-desktop && gpl',
'func': check_cc(header_name='d3d9.h'),
}, {
+ 'name': '--shaderc',
+ 'desc': 'libshaderc SPIR-V compiler',
+ 'func': check_cc(header_name='shaderc/shaderc.h', lib='shaderc_shared'),
+ }, {
+ 'name': '--crossc',
+ 'desc': 'libcrossc SPIR-V translator',
+ 'func': check_pkg_config('crossc'),
+ }, {
+ 'name': '--d3d11',
+ 'desc': 'Direct3D 11 video output',
+ 'deps': 'win32-desktop && shaderc && crossc',
+ 'func': check_cc(header_name=['d3d11_1.h', 'dxgi1_2.h']),
+ }, {
# We need MMAL/bcm_host/dispmanx APIs. Also, most RPI distros require
# every project to hardcode the paths to the include directories. Also,
# these headers are so broken that they spam tons of warnings by merely
@@ -807,10 +820,6 @@ video_output_features = [
'desc': 'Vulkan context support',
'func': check_pkg_config('vulkan'),
}, {
- 'name': '--shaderc',
- 'desc': 'libshaderc SPIR-V compiler',
- 'func': check_cc(header_name='shaderc/shaderc.h', lib='shaderc_shared'),
- }, {
'name': 'egl-helpers',
'desc': 'EGL helper functions',
'deps': 'egl-x11 || mali-fbdev || rpi || gl-wayland || egl-drm || ' +