summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2023-07-12 20:11:32 -0500
committerDudemanguy <random342@airmail.cc>2023-07-14 14:24:45 +0000
commit2616b2b11eac26dfbb85926477a652d2a0540ef6 (patch)
tree127ff33a2175caf750bfe7a767a4bceee9222801 /wscript
parentcf0373e15bbe3da8af7b3d1bbe1ae5caee9672cf (diff)
downloadmpv-2616b2b11eac26dfbb85926477a652d2a0540ef6.tar.bz2
mpv-2616b2b11eac26dfbb85926477a652d2a0540ef6.tar.xz
build: make dmabuf-wayland a build option and require drm
It makes more sense as an option at this point. Also libdrm is not optional at all. You have to get a drm format and modifier for this to even work (the VO will just fail without DRM). Just hard require it and remove the guards. vaapi can remain optional.
Diffstat (limited to 'wscript')
-rw-r--r--wscript10
1 files changed, 5 insertions, 5 deletions
diff --git a/wscript b/wscript
index 758a9469ff..82f65b4afa 100644
--- a/wscript
+++ b/wscript
@@ -569,6 +569,11 @@ video_output_features = [
'deps': 'wayland',
'func': check_statement('sys/mman.h',
'memfd_create("mpv", MFD_CLOEXEC | MFD_ALLOW_SEALING)')
+ }, {
+ 'name': '--dmabuf-wayland',
+ 'desc': 'dmabuf-wayland video output',
+ 'deps': 'wayland && memfd_create && drm',
+ 'func': check_true,
} , {
'name': '--x11',
'desc': 'X11',
@@ -697,11 +702,6 @@ video_output_features = [
'deps': 'vaapi && gl-wayland',
'func': check_pkg_config('libva-wayland', '>= 1.1.0'),
}, {
- 'name': 'dmabuf-wayland',
- 'desc': 'Wayland dmabuf support',
- 'deps': 'wayland && memfd_create && (vaapi-wayland || drm)',
- 'func': check_true,
- }, {
'name': '--vaapi-drm',
'desc': 'VAAPI (DRM/EGL support)',
'deps': 'vaapi && egl-drm',