Zane Shelley | f80482a | 2020-12-02 15:13:13 -0600 | [diff] [blame] | 1 | # Source files. |
| 2 | util_src = files( |
Zane Shelley | 5191bae | 2021-08-04 22:48:28 -0500 | [diff] [blame] | 3 | 'data_file.cpp', |
Ben Tyner | 324234b | 2021-06-28 17:01:17 -0500 | [diff] [blame] | 4 | 'dbus.cpp', |
Ben Tyner | faf3336 | 2022-02-16 14:04:51 -0600 | [diff] [blame] | 5 | 'ffdc.cpp', |
Zane Shelley | f80482a | 2020-12-02 15:13:13 -0600 | [diff] [blame] | 6 | 'ffdc_file.cpp', |
| 7 | 'pdbg.cpp', |
Zane Shelley | e90b85d | 2021-12-17 17:24:49 -0600 | [diff] [blame] | 8 | 'pdbg-no-sim.cpp', |
Zane Shelley | f80482a | 2020-12-02 15:13:13 -0600 | [diff] [blame] | 9 | 'temporary_file.cpp', |
| 10 | ) |
| 11 | |
| 12 | # Library dependencies. |
| 13 | util_deps = [ |
| 14 | libhei_dep, |
| 15 | libpdbg_dep, |
| 16 | ] |
| 17 | |
Zane Shelley | 3a85108 | 2021-03-23 16:45:28 -0500 | [diff] [blame] | 18 | if get_option('phal').enabled() |
| 19 | util_deps += dependency('libdt-api') |
| 20 | endif |
| 21 | |
Zane Shelley | f80482a | 2020-12-02 15:13:13 -0600 | [diff] [blame] | 22 | # Create static library. |
| 23 | util_lib = static_library( |
| 24 | 'util_lib', |
| 25 | util_src, |
| 26 | include_directories : incdir, |
| 27 | dependencies : util_deps, |
| 28 | cpp_args : test_arg, |
Zane Shelley | c252894 | 2020-12-02 15:42:42 -0600 | [diff] [blame] | 29 | install : false, |
Zane Shelley | f80482a | 2020-12-02 15:13:13 -0600 | [diff] [blame] | 30 | ) |
| 31 | |