Files
xserver/dix/meson.build
Enrico Weigelt, metux IT consult f78dfc16a9 (!1670) dix: generate MakePredeclaredAtoms() from BuiltInAtoms file
This function probably been (half?) auto generated somewhere back in the
dark ages (there're still remains of the former generator, which doesn't
work anymore, and hasn't been updated for ages). It's been added to SCM
with R6.6 baseline - and from that on manually maintained.

Adding a little generator to create source from "BuiltInAtoms" file,
directly in the build process.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2024-09-16 17:07:46 +02:00

72 lines
1.4 KiB
Meson

srcs_dix = [
'atom.c',
'colormap.c',
'color.c',
'cursor.c',
'devices.c',
'dispatch.c',
'dixfonts.c',
'main.c',
'dixutils.c',
'enterleave.c',
'events.c',
'eventconvert.c',
'extension.c',
'gc.c',
'gestures.c',
'getevents.c',
'globals.c',
'glyphcurs.c',
'grabs.c',
'inpututils.c',
'pixmap.c',
'privates.c',
'property.c',
'ptrveloc.c',
'region.c',
'registry.c',
'resource.c',
'selection.c',
'swaprep.c',
'swapreq.c',
'tables.c',
'touch.c',
'window.c',
]
atom_generator = generator(
find_program('generate-atoms'),
output: '@BASENAME@.c',
arguments : ['@INPUT@', '@OUTPUT@'])
builtinatoms_src = atom_generator.process('BuiltInAtoms')
dtrace_src = []
if with_dtrace
dtrace_object = generator(dtrace,
output: '@BASENAME@.o',
arguments: ['-G', '-s', '@INPUT@', '-o', '@OUTPUT@']
)
dtrace_src += dtrace_object.process(dtrace_tmpl)
endif
dtrace_dep = declare_dependency(sources: [dtrace_src, dtrace_hdr])
libxserver_dix = static_library('libxserver_dix',
[ srcs_dix, builtinatoms_src ],
include_directories: inc,
dependencies: [ dtrace_dep, common_dep, ]
)
libxserver_main = static_library('libxserver_main',
'stubmain.c',
include_directories: inc,
dependencies: common_dep,
)
install_data(
'protocol.txt',
install_dir: serverconfigdir,
)