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