blob: 7eb6d91668cf5ea32c7fd1a3edc0a5678466aaf4 [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',
Zane Shelleyf80482a2020-12-02 15:13:13 -06009 'temporary_file.cpp',
10)
11
12# Library dependencies.
13util_deps = [
14 libhei_dep,
15 libpdbg_dep,
Zane Shelley30984d12021-12-22 17:17:54 -060016 phosphor_logging_dep,
Zane Shelleyf80482a2020-12-02 15:13:13 -060017]
18
Zane Shelley3a851082021-03-23 16:45:28 -050019if get_option('phal').enabled()
20 util_deps += dependency('libdt-api')
21endif
22
Zane Shelleyf80482a2020-12-02 15:13:13 -060023# Create static library.
24util_lib = static_library(
25 'util_lib',
26 util_src,
27 include_directories : incdir,
28 dependencies : util_deps,
Zane Shelley9cdfa242022-03-24 13:24:46 -050029 cpp_args : [ package_args ],
Zane Shelleyc2528942020-12-02 15:42:42 -060030 install : false,
Zane Shelleyf80482a2020-12-02 15:13:13 -060031)
32
Caleb Palmer626270a2022-02-21 11:05:08 -060033# Install the util data files
34subdir('data')