xfree86: video: vesa: add meson.build for the driver

Adding the VESA driver to our build system.
It's enabled by default, but can be disabled at build time by
setting -Dxf86-video-vesa=false.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-12-16 20:24:24 +01:00
parent c76a1a9315
commit 7cf1fd6aaa
3 changed files with 47 additions and 0 deletions

View File

@@ -1,3 +1,7 @@
if build_modesetting
subdir('modesetting')
endif
if get_option('xf86-video-vesa')
subdir('vesa')
endif

View File

@@ -0,0 +1,37 @@
modesetting_srcs = [
'src/vesa.c',
]
shared_module(
'vesa_drv',
modesetting_srcs,
name_prefix: '',
include_directories: [inc, xorg_inc, 'src'],
c_args: xorg_c_args,
dependencies: [
common_dep,
],
install: true,
install_dir: join_paths(module_abi_dir, 'video'),
)
install_man(configure_file(
input: 'man/vesa.man',
output: 'vesa.4',
configuration: manpage_config,
))
# Test that we don't have any unresolved symbols from our module to XLibre.
xorg_build_root = join_paths(meson.project_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', 'libshadow.so')
symbol_test_args += join_paths(xorg_build_root, 'int10', 'libint10.so')
symbol_test_args += join_paths(xorg_build_root, 'drivers', 'video', 'vesa', 'vesa_drv.so')
test('vesa driver symbol test',
xorg_symbol_test,
args: symbol_test_args,
)

View File

@@ -169,3 +169,9 @@ option('test_rendercheck_triangles', type: 'boolean', value: false,
description: 'testsuite: run rendercheck triangles tests (might fail on Xephyr)')
option('test_xephyr_gles', type: 'boolean', value: true,
description: 'testsuite: run gles2/gles3 tests on Xephyr (might fail w/o DRI)')
# xfree86 drivers
option('xf86-input-inputtest', type: 'boolean', value: true,
description: 'Test input driver support on Xorg')
option('xf86-video-vesa', type: 'boolean', value: true,
description: 'VESA driver for xfree86 DDX')