endif
platform_deps += [libva_drm_dep]
- libdrm_dep = dependency('libdrm', version: '>=2.4', required: get_option('drm'))
if libdrm_dep.found()
platform_deps += [libdrm_dep]
- extra_args += ['-DHAVE_LIBDRM']
endif
va_sources += va_linux_sources
cdata.set('HAVE_X11', 1)
endif
+# Optional dep of msdk and va
+if host_system not in ['darwin', 'ios', 'android', 'windows']
+ libdrm_dep = dependency('libdrm', version : '>=2.4.50',
+ required : get_option('drm').enabled() or get_option('msdk').enabled(),
+ )
+ cdata.set('HAVE_LIBDRM', libdrm_dep.found())
+else
+ libdrm_dep = dependency('', required: false)
+endif
+
+
#
# Solaris and Illumos distros split a lot of networking-related code
# into '-lsocket -lnsl'. Anything that calls socketpair(), getifaddr(),
#include <va/va.h>
#include <va/va_drmcommon.h>
-#include <libdrm/drm_fourcc.h>
+#include <drm_fourcc.h>
#include <unistd.h>
#include "gstmsdkallocator.h"
#include "gstmsdkallocator_libva.h"
#include "gstmsdkcaps.h"
#ifndef _WIN32
-#include <libdrm/drm_fourcc.h>
+#include <drm_fourcc.h>
#include <gst/video/video-info-dma.h>
#include "gstmsdkallocator_libva.h"
#include <gst/va/gstvavideoformat.h>
#include "gstmsdkcaps.h"
#ifndef _WIN32
-#include <libdrm/drm_fourcc.h>
+#include <drm_fourcc.h>
#include <gst/va/gstvaallocator.h>
#include <gst/va/gstvavideoformat.h>
#else
#include "gstmsdkcaps.h"
#ifndef _WIN32
-#include <libdrm/drm_fourcc.h>
+#include <drm_fourcc.h>
#include "gstmsdkallocator_libva.h"
#include <gst/va/gstvaallocator.h>
#else
#include "gstmsdkallocator.h"
#ifndef _WIN32
-#include <libdrm/drm_fourcc.h>
+#include <drm_fourcc.h>
#include "gstmsdkallocator_libva.h"
#include <gst/va/gstvaallocator.h>
#include <gst/va/gstvavideoformat.h>
#include "gstmsdkcaps.h"
#ifndef _WIN32
-#include <libdrm/drm_fourcc.h>
+#include <drm_fourcc.h>
#include <gst/va/gstvavideoformat.h>
#else
#include <gst/d3d11/gstd3d11.h>
else
libdl_dep = cc.find_library('dl', required: get_option('msdk'))
libgudev_dep = dependency('gudev-1.0', required: get_option('msdk'), allow_fallback: true)
- libdrm_dep = dependency('libdrm', required: get_option('msdk'))
msdk_deps = declare_dependency(dependencies: [gstva_dep, libdl_dep, libgudev_dep, libdrm_dep])
msdk_deps_found = gstva_dep.found() and libdl_dep.found() and libgudev_dep.found() and libdrm_dep.found()
endif