mirror of
https://github.com/X11Libre/xserver.git
synced 2026-11-15 05:23:40 +00:00
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)
30 lines
511 B
Meson
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,
|
|
)
|