0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 03:52:22 +02:00

meson: move dmabuf-wayland specific files under the right check

This doesn't need to be under the generic wayland check, but the
dmabuf-wayland one. Matches the waf build.
This commit is contained in:
Dudemanguy 2022-11-03 17:29:48 -05:00
parent 2c53fb6a2b
commit c5b258b490

View File

@ -995,9 +995,6 @@ features += {'wayland': wayland_deps and wayland['header'] and wayland['scanner'
if features['wayland']
subdir(join_paths('generated', 'wayland'))
sources += files('video/out/wldmabuf/context_wldmabuf.c')
sources += files('video/out/wldmabuf/ra_wldmabuf.c')
sources += files('video/out/wlbuf_pool.c')
endif
features += {'memfd_create': false}
@ -1405,6 +1402,9 @@ features += {'dmabuf-wayland' : features['wayland'] and features['memfd_create']
if features['dmabuf-wayland']
sources += files('video/out/vo_dmabuf_wayland.c')
sources += files('video/out/hwdec/dmabuf_interop_wl.c')
sources += files('video/out/wldmabuf/context_wldmabuf.c')
sources += files('video/out/wldmabuf/ra_wldmabuf.c')
sources += files('video/out/wlbuf_pool.c')
endif
vdpau_opt = get_option('vdpau').require(