George Liu | 4b06201 | 2020-10-13 15:26:58 +0800 | [diff] [blame] | 1 | fault_monitor_sources = [ |
| 2 | generated_sources, |
George Liu | 4b06201 | 2020-10-13 15:26:58 +0800 | [diff] [blame] | 3 | 'monitor-main.cpp', |
| 4 | ] |
| 5 | |
George Liu | d76c074 | 2021-04-15 17:56:03 +0800 | [diff] [blame] | 6 | if get_option('monitor-operational-status').enabled() |
| 7 | fault_monitor_sources += [ |
| 8 | '../utils.cpp', |
| 9 | 'operational-status-monitor.cpp', |
| 10 | ] |
| 11 | else |
| 12 | fault_monitor_sources += [ |
| 13 | 'fru-fault-monitor.cpp', |
| 14 | ] |
| 15 | endif |
| 16 | |
George Liu | 4b06201 | 2020-10-13 15:26:58 +0800 | [diff] [blame] | 17 | executable( |
| 18 | 'phosphor-fru-fault-monitor', |
| 19 | fault_monitor_sources, |
| 20 | include_directories: ['.', '../', '../gen'], |
| 21 | dependencies: deps, |
| 22 | install: true, |
| 23 | install_dir: get_option('bindir') |
| 24 | ) |