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