blob: 254a2189551a23ccf9ad205e8289368dacee373e [file] [log] [blame]
George Liu4b062012020-10-13 15:26:58 +08001fault_monitor_sources = [
2 generated_sources,
George Liu4b062012020-10-13 15:26:58 +08003 'monitor-main.cpp',
4]
5
George Liud76c0742021-04-15 17:56:03 +08006if get_option('monitor-operational-status').enabled()
7 fault_monitor_sources += [
8 '../utils.cpp',
9 'operational-status-monitor.cpp',
10 ]
11else
12 fault_monitor_sources += [
13 'fru-fault-monitor.cpp',
14 ]
15endif
16
George Liu4b062012020-10-13 15:26:58 +080017executable(
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)