Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 1 | sequencer_src = [] |
| 2 | |
| 3 | if sequencer == 'ucd90160' |
| 4 | ucd90160_defs_cpp = custom_target( |
| 5 | 'ucd90160_defs.cpp', |
| 6 | command: [ |
| 7 | prog_python, '@INPUT0@', |
| 8 | '-i', '@INPUT1@', '-o', meson.current_build_dir(), |
| 9 | ], |
| 10 | input: [ |
| 11 | 'gen-ucd90160-defs.py', |
| 12 | get_option('ucd90160-yaml'), |
| 13 | 'templates/ucd90160_defs.mako.cpp' |
| 14 | ], |
| 15 | output: 'ucd90160_defs.cpp', |
| 16 | ) |
| 17 | |
| 18 | sequencer_src += ['ucd90160.cpp', ucd90160_defs_cpp] |
| 19 | |
| 20 | elif sequencer == 'mihawk-cpld' |
| 21 | sequencer_src += 'mihawk-cpld.cpp' |
| 22 | endif |
Brad Bishop | 39b370a | 2019-09-02 02:37:32 -0400 | [diff] [blame] | 23 | |
| 24 | executable( |
| 25 | 'pseq-monitor', |
Brad Bishop | 39b370a | 2019-09-02 02:37:32 -0400 | [diff] [blame] | 26 | error_hpp, |
| 27 | 'main.cpp', |
| 28 | 'pgood_monitor.cpp', |
| 29 | 'runtime_monitor.cpp', |
Andy YF Wang | 40247cc | 2019-09-06 18:30:56 +0800 | [diff] [blame] | 30 | sequencer_src, |
Brad Bishop | 39b370a | 2019-09-02 02:37:32 -0400 | [diff] [blame] | 31 | dependencies: [ |
Patrick Williams | 888bebd | 2023-05-31 19:19:49 -0500 | [diff] [blame] | 32 | libi2c_dep, |
| 33 | nlohmann_json_dep, |
Brad Bishop | 39b370a | 2019-09-02 02:37:32 -0400 | [diff] [blame] | 34 | phosphor_dbus_interfaces, |
| 35 | phosphor_logging, |
| 36 | sdbusplus, |
| 37 | sdeventplus, |
Brad Bishop | 39b370a | 2019-09-02 02:37:32 -0400 | [diff] [blame] | 38 | ], |
| 39 | include_directories: '..', |
| 40 | install: true, |
| 41 | link_with: libpower, |
| 42 | ) |