blob: ef2b206f92070c179ef2805b27aee62c6f1214e3 [file] [log] [blame]
Zane Shelley248cbf82019-05-03 17:07:18 -05001project('openpower-hw-diags', 'cpp',
2 version: '0.1', meson_version: '>=0.49.0',
3 default_options: [
4 'warning_level=3',
5 'werror=true',
Ben Tyner92e39fd2020-02-05 18:11:02 -06006 'cpp_std=c++17',
7 'cpp_args=-Wno-unused-parameter'
Zane Shelley248cbf82019-05-03 17:07:18 -05008 ])
9
Ben Tyner92e39fd2020-02-05 18:11:02 -060010# libhei is available as a subproject
11subproject('libhei')
12
Ben Tyner0205f3b2020-02-24 10:24:47 -060013incdir = include_directories('.')
14
15subdir('analyzer')
Ben Tyneref320152020-01-09 10:31:23 -060016subdir('attn')
Zane Shelley248cbf82019-05-03 17:07:18 -050017
Ben Tyner8c2f8b22020-03-27 10:39:31 -050018pthread = declare_dependency(link_args : '-pthread')
19lrt = declare_dependency(link_args : '-lrt')
20
21executable('openpower-hw-diags', 'main.cpp', 'cli.cpp', 'listener.cpp',
22 dependencies : [lrt, pthread],
Ben Tyner0205f3b2020-02-24 10:24:47 -060023 link_with : [analyzer, attn],
24 install : true)
25
Zane Shelley248cbf82019-05-03 17:07:18 -050026build_tests = get_option('tests')
27
28if not build_tests.disabled()
29 subdir('test')
30endif