blob: 9b78af11c05e2a2d601bc79c5d71a53dc45e2c78 [file] [log] [blame]
Andrew Geissler7f25db72025-03-09 19:09:58 -05001# Generate Configuration Files from Yaml
2python_exe = find_program('python3', 'python')
3
4invsensor_gen = custom_target(
5 'invsensor-gen',
6 output: 'inventory-sensor.cpp',
7 input: ['inventory-sensor.py', get_option('invsensor-yaml-gen')],
8 command: [
9 python_exe,
10 '@INPUT0@',
11 '-i',
12 '@INPUT1@',
13 '-o',
14 meson.current_build_dir(),
15 'generate-cpp',
16 ],
17)
18inventory_gen_src = invsensor_gen