George Liu | 4b06201 | 2020-10-13 15:26:58 +0800 | [diff] [blame] | 1 | fault_monitor_sources = [ |
George Liu | 4b06201 | 2020-10-13 15:26:58 +0800 | [diff] [blame] | 2 | 'monitor-main.cpp', |
| 3 | ] |
| 4 | |
Patrick Williams | 95b0db9 | 2023-11-29 06:43:59 -0600 | [diff] [blame^] | 5 | if get_option('monitor-operational-status').allowed() |
George Liu | d76c074 | 2021-04-15 17:56:03 +0800 | [diff] [blame] | 6 | fault_monitor_sources += [ |
| 7 | '../utils.cpp', |
| 8 | 'operational-status-monitor.cpp', |
| 9 | ] |
| 10 | else |
| 11 | fault_monitor_sources += [ |
| 12 | 'fru-fault-monitor.cpp', |
| 13 | ] |
| 14 | endif |
| 15 | |
George Liu | 4b06201 | 2020-10-13 15:26:58 +0800 | [diff] [blame] | 16 | executable( |
| 17 | 'phosphor-fru-fault-monitor', |
| 18 | fault_monitor_sources, |
Patrick Williams | 9bd334f | 2022-03-16 11:28:26 -0500 | [diff] [blame] | 19 | include_directories: ['.', '../'], |
George Liu | 4b06201 | 2020-10-13 15:26:58 +0800 | [diff] [blame] | 20 | dependencies: deps, |
| 21 | install: true, |
| 22 | install_dir: get_option('bindir') |
| 23 | ) |