mirror of
https://github.com/X11Libre/xserver.git
synced 2026-01-26 05:57:53 +00:00
It is patch 1/2 of a series that provides a convenient way to specify module search paths on a per-driver basis. This patch allows to set ModulePath for certain modules, in particular, GPU drivers. Signed-off-by: Oleh Nykyforchyn <oleh.nyk@gmail.com>
44 lines
1007 B
Meson
44 lines
1007 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() == 'netbsd' or host_machine.system() == 'openbsd'
|
|
srcs_config += 'wscons.c'
|
|
endif
|
|
|
|
if build_xorg
|
|
install_data('10-quirks.conf',
|
|
install_dir: join_paths(get_option('datadir'), 'X11/xorg.conf.d'))
|
|
nvidia_conf = configuration_data()
|
|
nvidia_conf.set('libdir', join_paths(get_option('prefix'),get_option('libdir')))
|
|
configure_file(
|
|
input: '10-nvidia.conf.in',
|
|
output: '10-nvidia.conf',
|
|
configuration: nvidia_conf,
|
|
install_dir: join_paths(get_option('datadir'), 'X11/xorg.conf.d'),
|
|
)
|
|
endif
|
|
|
|
libxserver_config = static_library('xserver_config',
|
|
srcs_config,
|
|
include_directories: inc,
|
|
dependencies: config_dep,
|
|
)
|