1f80482a5SZane Shelley# Source files.
2f80482a5SZane Shelleyutil_src = files(
35191bae9SZane Shelley    'data_file.cpp',
4324234b4SBen Tyner    'dbus.cpp',
5faf33367SBen Tyner    'ffdc.cpp',
6f80482a5SZane Shelley    'ffdc_file.cpp',
7f80482a5SZane Shelley    'pdbg.cpp',
8e90b85dcSZane Shelley    'pdbg-no-sim.cpp',
9bb90afc7SBen Tyner    'pldm.cpp',
10f80482a5SZane Shelley    'temporary_file.cpp',
11f80482a5SZane Shelley)
12f80482a5SZane Shelley
13f80482a5SZane Shelley# Library dependencies.
14f80482a5SZane Shelleyutil_deps = [
15f80482a5SZane Shelley    libhei_dep,
16f80482a5SZane Shelley    libpdbg_dep,
17bb90afc7SBen Tyner    libpldm_dep,
18*9de0f649SAndrew Jeffery    nlohmann_json_dep,
1930984d15SZane Shelley    phosphor_logging_dep,
20*9de0f649SAndrew Jeffery    valijson_dep,
21f80482a5SZane Shelley]
22f80482a5SZane Shelley
237619ab78SPatrick Williamsif get_option('phal').allowed()
243a85108fSZane Shelley    util_deps += dependency('libdt-api')
253a85108fSZane Shelleyendif
263a85108fSZane Shelley
27f80482a5SZane Shelley# Create static library.
28f80482a5SZane Shelleyutil_lib = static_library(
29f80482a5SZane Shelley    'util_lib',
30f80482a5SZane Shelley    util_src,
31f80482a5SZane Shelley    include_directories : incdir,
32f80482a5SZane Shelley    dependencies : util_deps,
339cdfa247SZane Shelley    cpp_args : [ package_args ],
34c252894dSZane Shelley    install : false,
35f80482a5SZane Shelley)
36f80482a5SZane Shelley
37626270afSCaleb Palmer# Install the util data files
38626270afSCaleb Palmersubdir('data')
39