blob: f68d4fdd45a7c36ab66ee51f61c9eaa54fc7f42d [file] [log] [blame]
Zane Shelleyf80482a2020-12-02 15:13:13 -06001# Source files.
2util_src = files(
Zane Shelley5191bae2021-08-04 22:48:28 -05003 'data_file.cpp',
Ben Tyner324234b2021-06-28 17:01:17 -05004 'dbus.cpp',
Ben Tynerfaf33362022-02-16 14:04:51 -06005 'ffdc.cpp',
Zane Shelleyf80482a2020-12-02 15:13:13 -06006 'ffdc_file.cpp',
Zane Shelleye90b85d2021-12-17 17:24:49 -06007 'pdbg-no-sim.cpp',
Patrick Williamsc322c322025-02-01 08:38:07 -05008 'pdbg.cpp',
Ben Tynerbb90afc2022-12-14 20:50:33 -06009 'pldm.cpp',
Zane Shelleyf80482a2020-12-02 15:13:13 -060010 'temporary_file.cpp',
11)
12
13# Library dependencies.
14util_deps = [
15 libhei_dep,
16 libpdbg_dep,
Ben Tynerbb90afc2022-12-14 20:50:33 -060017 libpldm_dep,
Andrew Jeffery9de0f642024-06-27 20:07:09 +093018 nlohmann_json_dep,
Zane Shelley30984d12021-12-22 17:17:54 -060019 phosphor_logging_dep,
Andrew Jeffery9de0f642024-06-27 20:07:09 +093020 valijson_dep,
Zane Shelleyf80482a2020-12-02 15:13:13 -060021]
22
Patrick Williams7619ab72023-11-29 06:44:58 -060023if get_option('phal').allowed()
Zane Shelley3a851082021-03-23 16:45:28 -050024 util_deps += dependency('libdt-api')
25endif
26
Zane Shelleyf80482a2020-12-02 15:13:13 -060027# Create static library.
28util_lib = static_library(
29 'util_lib',
30 util_src,
Patrick Williamsc322c322025-02-01 08:38:07 -050031 include_directories: incdir,
32 dependencies: util_deps,
33 cpp_args: [package_args],
34 install: false,
Zane Shelleyf80482a2020-12-02 15:13:13 -060035)
36
Caleb Palmer626270a2022-02-21 11:05:08 -060037# Install the util data files
38subdir('data')