xref: /openbmc/openpower-hw-diags/util/meson.build (revision 324234b4b560ce1d136d96a6950daeb1da1469a5)
1f80482a5SZane Shelley# Source files.
2f80482a5SZane Shelleyutil_src = files(
3*324234b4SBen Tyner    'dbus.cpp',
4f80482a5SZane Shelley    'ffdc_file.cpp',
5f80482a5SZane Shelley    'pdbg.cpp',
6f80482a5SZane Shelley    'temporary_file.cpp',
7f80482a5SZane Shelley)
8f80482a5SZane Shelley
9f80482a5SZane Shelley# Library dependencies.
10f80482a5SZane Shelleyutil_deps = [
11f80482a5SZane Shelley    libhei_dep,
12f80482a5SZane Shelley    libpdbg_dep,
13f80482a5SZane Shelley]
14f80482a5SZane Shelley
153a85108fSZane Shelleyif get_option('phal').enabled()
163a85108fSZane Shelley    util_deps += dependency('libdt-api')
173a85108fSZane Shelleyendif
183a85108fSZane Shelley
19f80482a5SZane Shelley# Create static library.
20f80482a5SZane Shelleyutil_lib = static_library(
21f80482a5SZane Shelley    'util_lib',
22f80482a5SZane Shelley    util_src,
23f80482a5SZane Shelley    include_directories : incdir,
24f80482a5SZane Shelley    dependencies : util_deps,
25f80482a5SZane Shelley    cpp_args : test_arg,
26c252894dSZane Shelley    install : false,
27f80482a5SZane Shelley)
28f80482a5SZane Shelley
29