Commit eaa1bd93 authored by Víctor Manuel Jáquez Leal's avatar Víctor Manuel Jáquez Leal
Browse files

msdk: add support for open sourced MediaSDK

MediaSDK has been released as open source [1], but the directories
where it installs its files, are different from the binary only
distribution.

This patch adds to the libraries path the directory /lib. Also it
is defined in meson if the include directory has the mfx/ prefix,
something that is already handled in autotools.

1. https://github.com/Intel-Media-SDK/MediaSDK
parent 9ad618e4
......@@ -45,8 +45,11 @@ if msdk_root == '' and msdk_option.enabled()
endif
if msdk_root != ''
msdk_libdir = [msdk_root + '/lib/lin_x64', msdk_root + '/lib/x64', msdk_root + '/lib64']
msdk_libdir = [msdk_root + '/lib/lin_x64', msdk_root + '/lib/x64', msdk_root + '/lib64', msdk_root + '/lib']
msdk_incdir = include_directories(msdk_root + '/include')
if cxx.has_header('mfx/mfxdefs.h', args: '-I' + msdk_root + '/include')
cdata.set('HAVE_MFX_MFXDEFS_H', 1)
endif
msdk_lib = cxx.find_library('mfx', dirs: msdk_libdir, required: msdk_option)
if host_machine.system() == 'windows'
legacy_stdio_dep = cc.find_library('legacy_stdio_definitions', required: msdk_option)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment