xfree86: drivers: ark: add the driver to the build

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-07-21 12:23:25 +02:00
committed by Enrico Weigelt
parent add975c588
commit bfb842de7e
3 changed files with 37 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
driver_video_ark_srcs = [
'src/ark_driver.c',
]
shared_module(
'ark_drv',
driver_video_ark_srcs,
name_prefix: '',
include_directories: [inc, xorg_inc],
c_args: xorg_c_args,
dependencies: [
common_dep,
],
install: true,
install_dir: join_paths(module_abi_dir, 'drivers'),
)
# Test that we don't have any unresolved symbols from our module to Xorg.
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, 'dixmods', 'libglx.so')
symbol_test_args += join_paths(xorg_build_root, 'drivers', 'video-ark', 'ark_drv.so')
test('video-ark symbol test',
xorg_symbol_test,
args: symbol_test_args,
)

View File

@@ -1,3 +1,7 @@
if get_option('xf86-video-ark')
subdir('ark')
endif
if get_option('xf86-video-apm')
subdir('apm')
endif

View File

@@ -125,6 +125,8 @@ option('xf86-input-inputtest', type: 'boolean', value: true,
description: 'Test input driver support on Xorg')
option('xf86-video-apm', type: 'boolean', value: true,
description: 'xf86 video driver for APM graphics chips')
option('xf86-video-ark', type: 'boolean', value: true,
description: 'xf86 video driver for ARK graphics chips')
option('tests', type: 'boolean', value: true,
description: 'Build tests for the X server on platforms that support it')