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