blob: 4d99e517c69474d75627b280f93616463a30bc09 [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',
Zane Shelleyf80482a2020-12-02 15:13:13 -06005 'ffdc_file.cpp',
6 'pdbg.cpp',
Zane Shelleye90b85d2021-12-17 17:24:49 -06007 'pdbg-no-sim.cpp',
Zane Shelleyf80482a2020-12-02 15:13:13 -06008 'temporary_file.cpp',
9)
10
11# Library dependencies.
12util_deps = [
13 libhei_dep,
14 libpdbg_dep,
15]
16
Zane Shelley3a851082021-03-23 16:45:28 -050017if get_option('phal').enabled()
18 util_deps += dependency('libdt-api')
19endif
20
Zane Shelleyf80482a2020-12-02 15:13:13 -060021# Create static library.
22util_lib = static_library(
23 'util_lib',
24 util_src,
25 include_directories : incdir,
26 dependencies : util_deps,
27 cpp_args : test_arg,
Zane Shelleyc2528942020-12-02 15:42:42 -060028 install : false,
Zane Shelleyf80482a2020-12-02 15:13:13 -060029)
30