Brad Bishop | 39b370a | 2019-09-02 02:37:32 -0400 | [diff] [blame] | 1 | ucd90160_defs_cpp = custom_target( |
| 2 | 'ucd90160_defs.cpp', |
| 3 | command: [ |
Patrick Williams | 91be170 | 2025-02-01 08:37:05 -0500 | [diff] [blame] | 4 | prog_python, |
| 5 | '@INPUT0@', |
| 6 | '-i', |
| 7 | '@INPUT1@', |
| 8 | '-o', |
| 9 | meson.current_build_dir(), |
Brad Bishop | 39b370a | 2019-09-02 02:37:32 -0400 | [diff] [blame] | 10 | ], |
| 11 | input: [ |
| 12 | 'gen-ucd90160-defs.py', |
| 13 | get_option('ucd90160-yaml'), |
Patrick Williams | 91be170 | 2025-02-01 08:37:05 -0500 | [diff] [blame] | 14 | 'templates/ucd90160_defs.mako.cpp', |
Brad Bishop | 39b370a | 2019-09-02 02:37:32 -0400 | [diff] [blame] | 15 | ], |
| 16 | output: 'ucd90160_defs.cpp', |
| 17 | ) |
| 18 | |
| 19 | executable( |
| 20 | 'pseq-monitor', |
| 21 | 'argument.cpp', |
| 22 | error_hpp, |
| 23 | 'main.cpp', |
| 24 | 'pgood_monitor.cpp', |
| 25 | 'runtime_monitor.cpp', |
| 26 | 'ucd90160.cpp', |
| 27 | ucd90160_defs_cpp, |
| 28 | dependencies: [ |
| 29 | phosphor_dbus_interfaces, |
| 30 | phosphor_logging, |
| 31 | sdbusplus, |
| 32 | sdeventplus, |
| 33 | ], |
| 34 | include_directories: '..', |
| 35 | install: true, |
| 36 | link_with: libpower, |
| 37 | ) |