Files
xserver/miext/sync/meson.build
Oleh Nykyforchyn be49153822 xserver: miext/sync/meson.build: compile misyncshm.c if xshmfence found
It is a patch that fixes xserver build if libdrm is too old.

Now misyncshm.c compilation depends on dri3, which is incorrect. If libdrm
is not recent enough, then dri3 is not built, the file misyncshm.c
is not compiled, and the function miSyncShmScreenInit() is unavailable.
It is called in glamor_sync.c if xshmfence is present, which causes
a compilation error. This patch makes misyncshm.c compile if xshmfence
is found.

Signed-off-by: Oleh Nykyforchyn <olen.nyk@gmail.com>
2025-08-05 12:30:31 +02:00

29 lines
485 B
Meson

srcs_miext_sync = [
'misync.c',
'misyncfd.c',
]
hdrs_miext_sync = [
'misync.h',
'misyncfd.h',
'misyncshm.h',
'misyncstr.h',
]
if xshmfence_dep.found()
srcs_miext_sync += 'misyncshm.c'
endif
libxserver_miext_sync = static_library('xserver_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