Files
xserver/hw/xfree86/parser/meson.build
Oleh Nykyforchyn f7a892d7d0 xserver: hw/xfree86/parser: create pattern group from a string and print it
It is patch 2/5 of a series that refactors matching input and output devices to classes and
extends possibilities to describe them, in particular, it allows use of regular expressions.

This patch adds a function xf86createMatchGroup to build a pattern group from a string in
MatchProduct, MatchDevice or similar directives. It implements rudimentary logic ("or",
"and", and "not") to construct complex conditions for a device to an input/output class
to be applied based on the device attributes. Also xf86printMatchPattern is defined, which
is necessary to save an actual config file. Pattern groups are not used for matching yet,
the original functionality is preserved.

Signed-off-by: Oleh Nykyforchyn <oleh.nyk@gmail.com>
2025-08-04 12:02:19 +02:00

34 lines
675 B
Meson

srcs_xorg_parser = [
'Device.c',
'Files.c',
'Flags.c',
'Input.c',
'InputClass.c',
'OutputClass.c',
'Layout.c',
'Module.c',
'Video.c',
'Monitor.c',
'Pointer.c',
'Screen.c',
'Vendor.c',
'patterns.c',
'read.c',
'scan.c',
'write.c',
'DRI.c',
'Extensions.c',
]
xorg_parser = static_library('xorg_parser',
srcs_xorg_parser,
include_directories: [inc, xorg_inc],
dependencies: common_dep,
c_args: [
xorg_c_args,
'-DDATADIR="' + join_paths(get_option('prefix'), get_option('datadir')) + '"',
],
)
install_data(['xf86Parser.h', 'xf86Optrec.h'], install_dir: xorgsdkdir)