-mfx_win_sources = [
+mfx_win32_sources = [
'dispatcher/windows/main.cpp',
+ 'dispatcher/windows/mfx_critical_section.cpp',
'dispatcher/windows/mfx_dispatcher_log.cpp',
'dispatcher/windows/mfx_dispatcher.cpp',
+ 'dispatcher/windows/mfx_driver_store_loader.cpp',
'dispatcher/windows/mfx_dxva2_device.cpp',
'dispatcher/windows/mfx_function_table.cpp',
- 'dispatcher/windows/mfx_load_dll.cpp',
-]
-
-mfx_win32_sources = [
- 'dispatcher/windows/mfx_critical_section.cpp',
- 'dispatcher/windows/mfx_driver_store_loader.cpp',
'dispatcher/windows/mfx_library_iterator.cpp',
+ 'dispatcher/windows/mfx_load_dll.cpp',
'dispatcher/windows/mfx_win_reg_key.cpp',
]
-mfx_uwp_sources = [
- 'dispatcher/windows/mfx_dispatcher_uwp.cpp',
- 'dispatcher/windows/mfx_driver_store_loader.cpp',
-]
-
mfx_linux_sources = [
'dispatcher/linux/mfxloader.cpp',
]
libmfx_sources = vpl_sources
if host_system == 'windows'
- libmfx_sources += mfx_win_sources
- # FIXME: check UWP only
libmfx_sources += mfx_win32_sources
elif host_system == 'linux'
libmfx_sources += mfx_linux_sources
qsv_platform_deps = []
if host_system == 'windows'
+ # TODO: We can cross-compile this plugin using MinGW but there's an issue.
+ # Re-enable cross-compile once it's investigated and addressed
+ # https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/854
+ if cc.get_id() != 'msvc'
+ if qsv_option.enabled()
+ error('qsv plugin supports only MSVC build')
+ else
+ subdir_done()
+ endif
+ endif
+
if not gstd3d11_dep.found()
if qsv_option.enabled()
error('The qsv was enabled explicitly, but required d3d11 was not found')