xserver-multidpi/hw/xfree86/drivers/modesetting/meson.build
Roman Gilg 9d628ee5fa modesetting: set gbm as dependency in meson build
Modifiers support needs gbm as a dependency. Without setting the dependency
included headers are not found reliably and the build might fail if the
headers are not placed in the default system include paths.

Signed-off-by: Roman Gilg <subdiff@gmail.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
2018-05-08 12:41:58 -04:00

50 lines
1.2 KiB
Meson

modesetting_srcs = [
'dri2.c',
'driver.c',
'drmmode_display.c',
'dumb_bo.c',
'pageflip.c',
'present.c',
'vblank.c',
]
shared_module(
'modesetting_drv',
modesetting_srcs,
name_prefix: '',
include_directories: [inc, xorg_inc],
c_args: xorg_c_args,
dependencies: [
common_dep,
udev_dep,
libdrm_dep,
gbm_dep,
],
install: true,
install_dir: join_paths(module_dir, 'drivers'),
)
# Test that we don't have any unresolved symbols from our module to Xorg.
xorg_build_root = join_paths(meson.build_root(), 'hw', 'xfree86')
symbol_test_args = []
symbol_test_args += join_paths(xorg_build_root, 'libxorgserver.so')
symbol_test_args += join_paths(xorg_build_root, 'dixmods', 'libfb.so')
symbol_test_args += join_paths(xorg_build_root, 'dixmods', 'libshadow.so')
if gbm_dep.found()
symbol_test_args += join_paths(xorg_build_root, 'glamor_egl', 'libglamoregl.so')
endif
symbol_test_args += join_paths(xorg_build_root, 'drivers', 'modesetting', 'modesetting_drv.so')
install_man(configure_file(
input: 'modesetting.man',
output: 'modesetting.4',
configuration: manpage_config,
))
test('modesetting symbol test',
xorg_symbol_test,
args: symbol_test_args,
)