blob: 3797e5c32b18c349386f54b00633585f2caa958d [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,
Zane Shelley30984d12021-12-22 17:17:54 -060018 phosphor_logging_dep,
Zane Shelleyf80482a2020-12-02 15:13:13 -060019]
20
Patrick Williams7619ab72023-11-29 06:44:58 -060021if get_option('phal').allowed()
Zane Shelley3a851082021-03-23 16:45:28 -050022 util_deps += dependency('libdt-api')
23endif
24
Zane Shelleyf80482a2020-12-02 15:13:13 -060025# Create static library.
26util_lib = static_library(
27 'util_lib',
28 util_src,
29 include_directories : incdir,
30 dependencies : util_deps,
Zane Shelley9cdfa242022-03-24 13:24:46 -050031 cpp_args : [ package_args ],
Zane Shelleyc2528942020-12-02 15:42:42 -060032 install : false,
Zane Shelleyf80482a2020-12-02 15:13:13 -060033)
34
Caleb Palmer626270a2022-02-21 11:05:08 -060035# Install the util data files
36subdir('data')