blob: 39ec458bbfb13582a7c2e6b34606b4133da6da69 [file] [log] [blame]
George Liu4b062012020-10-13 15:26:58 +08001fault_monitor_sources = [
George Liu4b062012020-10-13 15:26:58 +08002 'monitor-main.cpp',
3]
4
George Liud76c0742021-04-15 17:56:03 +08005if get_option('monitor-operational-status').enabled()
6 fault_monitor_sources += [
7 '../utils.cpp',
8 'operational-status-monitor.cpp',
9 ]
10else
11 fault_monitor_sources += [
12 'fru-fault-monitor.cpp',
13 ]
14endif
15
George Liu4b062012020-10-13 15:26:58 +080016executable(
17 'phosphor-fru-fault-monitor',
18 fault_monitor_sources,
Patrick Williams9bd334f2022-03-16 11:28:26 -050019 include_directories: ['.', '../'],
George Liu4b062012020-10-13 15:26:58 +080020 dependencies: deps,
21 install: true,
22 install_dir: get_option('bindir')
23)