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', |
Zane Shelley | f80482a | 2020-12-02 15:13:13 -0600 | [diff] [blame] | 5 | 'ffdc_file.cpp', |
| 6 | 'pdbg.cpp', |
Zane Shelley | e90b85d | 2021-12-17 17:24:49 -0600 | [diff] [blame] | 7 | 'pdbg-no-sim.cpp', |
Zane Shelley | f80482a | 2020-12-02 15:13:13 -0600 | [diff] [blame] | 8 | 'temporary_file.cpp', |
| 9 | ) |
| 10 | |
| 11 | # Library dependencies. |
| 12 | util_deps = [ |
| 13 | libhei_dep, |
| 14 | libpdbg_dep, |
| 15 | ] |
| 16 | |
Zane Shelley | 3a85108 | 2021-03-23 16:45:28 -0500 | [diff] [blame] | 17 | if get_option('phal').enabled() |
| 18 | util_deps += dependency('libdt-api') |
| 19 | endif |
| 20 | |
Zane Shelley | f80482a | 2020-12-02 15:13:13 -0600 | [diff] [blame] | 21 | # Create static library. |
| 22 | util_lib = static_library( |
| 23 | 'util_lib', |
| 24 | util_src, |
| 25 | include_directories : incdir, |
| 26 | dependencies : util_deps, |
| 27 | cpp_args : test_arg, |
Zane Shelley | c252894 | 2020-12-02 15:42:42 -0600 | [diff] [blame] | 28 | install : false, |
Zane Shelley | f80482a | 2020-12-02 15:13:13 -0600 | [diff] [blame] | 29 | ) |
| 30 | |