mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
qsv: Disable non-MSVC build on Windows
... and remove pointless UWP consideration that will never work. Cross-compiled binary has an issue which causes deadlock. Although cerbero will not build this plugin for non-MSVC build, people can still build this plugin and may complain its brokenness. See also https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/854 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2431>
This commit is contained in:
parent
92c0a462ae
commit
909154a989
2 changed files with 15 additions and 14 deletions
|
@ -1,24 +1,16 @@
|
|||
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',
|
||||
]
|
||||
|
@ -39,8 +31,6 @@ libmfx_extra_deps = []
|
|||
|
||||
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
|
||||
|
|
|
@ -31,6 +31,17 @@ endif
|
|||
|
||||
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')
|
||||
|
|
Loading…
Reference in a new issue