| # Generate Configuration Files from Yaml |
| python_exe = find_program('python3', 'python') |
| sensor_gen = custom_target( |
| output: 'sensor-gen.cpp', |
| input: ['sensor_gen.py', get_option('sensor-yaml-gen')], |
| meson.current_build_dir(), |
| generated_src += sensor_gen |
| invsensor_gen = custom_target( |
| output: 'inventory-sensor-gen.cpp', |
| input: ['inventory-sensor.py', get_option('invsensor-yaml-gen')], |
| meson.current_build_dir(), |
| generated_src += invsensor_gen |
| output: 'fru-read-gen.cpp', |
| input: ['fru_gen.py', get_option('fru-yaml-gen')], |
| meson.current_build_dir(), |