blob: e05b4f27295f944a934b8f2cd24b383f89008530 [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,
16]
17
Zane Shelley3a851082021-03-23 16:45:28 -050018if get_option('phal').enabled()
19 util_deps += dependency('libdt-api')
20endif
21
Zane Shelleyf80482a2020-12-02 15:13:13 -060022# Create static library.
23util_lib = static_library(
24 'util_lib',
25 util_src,
26 include_directories : incdir,
27 dependencies : util_deps,
28 cpp_args : test_arg,
Zane Shelleyc2528942020-12-02 15:42:42 -060029 install : false,
Zane Shelleyf80482a2020-12-02 15:13:13 -060030)
31