meson: add d3d11 video output

This commit is contained in:
Steve Lhomme 2023-02-03 11:05:55 +01:00
parent 06d5eb505d
commit 72fb0cfe64
2 changed files with 26 additions and 0 deletions

View File

@ -20,6 +20,10 @@ if libplacebo_dep.found()
subdir('libplacebo')
endif
if host_system == 'windows'
subdir('win32')
endif
# Dummy video output
vlc_modules += {
'name' : 'vdummy',

View File

@ -0,0 +1,22 @@
#
# Win32 Video output modules
#
# Direct3D11 video output
d3d11_sources = files('direct3d11.cpp', 'd3d11_quad.cpp', 'd3d11_shaders.cpp', 'd3d_shaders.c', 'd3d_dynamic_shader.c', 'd3d11_swapchain.cpp', 'dxgi_swapchain.cpp', 'common.c')
d3d11_link_with = [ d3d11_common_lib ]
if get_option('winstore_app')
d3d11_link_with += [
cc.find_library('d3d11'),
cc.find_library('d3dcompiler_47')
]
else
d3d11_sources += files('events.c', 'sensors.cpp', 'win32touch.c')
d3d11_link_with += [ chroma_copy_lib ]
endif
vlc_modules += {
'name' : 'direct3d11',
'sources' : d3d11_sources,
'link_with' : d3d11_link_with
}