xserver-multidpi/miext/sync/meson.build
Olivier Fourdan e8a85ba818 meson: Build miext/sync for Xwayland
When using the Meson build system, miext/sync would be build only for
dri3.

As a result, when building with Meson without DRI3 enabled, Xwayland
would fail to link because `miSyncShmScreenInit()` is nowhere to be
found.

Make sure to build miext/sync for either DRI3 or Xwayland.

Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
2019-08-15 17:08:04 +00:00

27 lines
471 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
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,
],
)
install_data(hdrs_miext_sync, install_dir: xorgsdkdir)