| Andrew Geissler | 7f25db7 | 2025-03-09 19:09:58 -0500 | [diff] [blame] | 1 | # Generate Configuration Files from Yaml |
| 2 | python_exe = find_program('python3', 'python') | ||||
| 3 | |||||
| 4 | invsensor_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 | ) | ||||
| 18 | inventory_gen_src = invsensor_gen | ||||