blob: ef2b206f92070c179ef2805b27aee62c6f1214e3 [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 is available as a subproject
subproject('libhei')
incdir = include_directories('.')
subdir('analyzer')
subdir('attn')
pthread = declare_dependency(link_args : '-pthread')
lrt = declare_dependency(link_args : '-lrt')
executable('openpower-hw-diags', 'main.cpp', 'cli.cpp', 'listener.cpp',
dependencies : [lrt, pthread],
link_with : [analyzer, attn],
install : true)
build_tests = get_option('tests')
if not build_tests.disabled()
subdir('test')
endif