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