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