1# Source files.
2util_src = files(
3    'data_file.cpp',
4    'dbus.cpp',
5    'ffdc.cpp',
6    'ffdc_file.cpp',
7    'pdbg.cpp',
8    'pdbg-no-sim.cpp',
9    'pldm.cpp',
10    'temporary_file.cpp',
11)
12
13# Library dependencies.
14util_deps = [
15    libhei_dep,
16    libpdbg_dep,
17    libpldm_dep,
18    phosphor_logging_dep,
19]
20
21if get_option('phal').allowed()
22    util_deps += dependency('libdt-api')
23endif
24
25# Create static library.
26util_lib = static_library(
27    'util_lib',
28    util_src,
29    include_directories : incdir,
30    dependencies : util_deps,
31    cpp_args : [ package_args ],
32    install : false,
33)
34
35# Install the util data files
36subdir('data')
37