xserver/miext/sync/meson.build
Alan Coopersmith a8f8ec7e7d meson: fix build if shmfence is enabled but dri3 & xwayland are not
glamor_sync.c calls miSyncShmScreenInit if HAVE_XSHMFENCE is defined,
but it was only being built if either dri3 or xwayland were enabled.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2070>
2025-10-03 10:55:17 -07:00

28 lines
520 B
Meson

srcs_miext_sync = [
'misync.c',
'misyncfd.c',
]
hdrs_miext_sync = [
'misync.h',
'misyncfd.h',
'misyncshm.h',
'misyncstr.h',
]
if build_dri3 or build_xwayland or xshmfence_dep.found()
srcs_miext_sync += 'misyncshm.c'
endif
libxserver_miext_sync = static_library('libxserver_miext_sync',
srcs_miext_sync,
include_directories: inc,
dependencies: [
common_dep,
xshmfence_dep,
],
)
if build_xorg
install_data(hdrs_miext_sync, install_dir: xorgsdkdir)
endif