blob: e4ef613163166e5163c1ed2d770bfc6c8d858d2e [file] [log] [blame]
project('openpower-hw-diags', 'cpp',
version: '0.1', meson_version: '>=0.49.0',
default_options: [
'warning_level=3',
'werror=true',
'cpp_std=c++17',
'cpp_args=-Wno-unused-parameter'
])
libhei_dep = dependency('hei', required : true)
incdir = include_directories('.')
subdir('analyzer')
subdir('attn')
pthread = declare_dependency(link_args : '-pthread')
lrt = declare_dependency(link_args : '-lrt')
no_listener_mode = get_option('nlmode')
if not no_listener_mode.disabled()
executable('openpower-hw-diags', 'main_nl.cpp', 'cli.cpp',
link_with : [analyzer, attn],
install : true)
else
executable('openpower-hw-diags', 'main.cpp', 'cli.cpp', 'listener.cpp',
dependencies : [lrt, pthread],
link_with : [analyzer, attn],
install : true)
endif
build_tests = get_option('tests')
if not build_tests.disabled()
subdir('test')
endif