blob: 29eb80213b735e2ebb5afb3db4629da5ec8e81c3 [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',
7 'pdbg.cpp',
Zane Shelleye90b85d2021-12-17 17:24:49 -06008 'pdbg-no-sim.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,
31 include_directories : incdir,
32 dependencies : util_deps,
Zane Shelley9cdfa242022-03-24 13:24:46 -050033 cpp_args : [ package_args ],
Zane Shelleyc2528942020-12-02 15:42:42 -060034 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')