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