xserver/config/meson.build
Alan Coopersmith 4c537f6d82 meson: convert remaining foo == a or foo == b to foo in [a, b] style
Make our checks more consistent, readable, and modern-meson idiomatic

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2313>
(cherry picked from commit 3983c7408c)
(cherry picked from commit acb16385e95d611a83209a26e31e9bcd68df7069)
(cherry picked from commit ca1d1442ce2ef7f28607db0bfd505ff59264523f)
2026-10-02 10:07:37 +02:00

30 lines
511 B
Meson

srcs_config = [
'config.c',
]
config_dep = [common_dep]
if build_dbus
srcs_config += 'dbus-core.c'
config_dep += dbus_dep
endif
if build_hal
srcs_config += 'hal.c'
config_dep += hal_dep
endif
if build_udev
srcs_config += 'udev.c'
config_dep += udev_dep
endif
if host_machine.system() in ['netbsd', 'openbsd']
srcs_config += 'wscons.c'
endif
libxserver_config = static_library('xserver_config',
srcs_config,
include_directories: inc,
dependencies: config_dep,
)