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', |
Ben Tyner | bb90afc | 2022-12-14 20:50:33 -0600 | [diff] [blame] | 9 | 'pldm.cpp', |
Zane Shelley | f80482a | 2020-12-02 15:13:13 -0600 | [diff] [blame] | 10 | 'temporary_file.cpp', |
| 11 | ) |
| 12 | |
| 13 | # Library dependencies. |
| 14 | util_deps = [ |
| 15 | libhei_dep, |
| 16 | libpdbg_dep, |
Ben Tyner | bb90afc | 2022-12-14 20:50:33 -0600 | [diff] [blame] | 17 | libpldm_dep, |
Zane Shelley | 30984d1 | 2021-12-22 17:17:54 -0600 | [diff] [blame] | 18 | phosphor_logging_dep, |
Zane Shelley | f80482a | 2020-12-02 15:13:13 -0600 | [diff] [blame] | 19 | ] |
| 20 | |
Patrick Williams | 7619ab7 | 2023-11-29 06:44:58 -0600 | [diff] [blame] | 21 | if get_option('phal').allowed() |
Zane Shelley | 3a85108 | 2021-03-23 16:45:28 -0500 | [diff] [blame] | 22 | util_deps += dependency('libdt-api') |
| 23 | endif |
| 24 | |
Zane Shelley | f80482a | 2020-12-02 15:13:13 -0600 | [diff] [blame] | 25 | # Create static library. |
| 26 | util_lib = static_library( |
| 27 | 'util_lib', |
| 28 | util_src, |
| 29 | include_directories : incdir, |
| 30 | dependencies : util_deps, |
Zane Shelley | 9cdfa24 | 2022-03-24 13:24:46 -0500 | [diff] [blame] | 31 | cpp_args : [ package_args ], |
Zane Shelley | c252894 | 2020-12-02 15:42:42 -0600 | [diff] [blame] | 32 | install : false, |
Zane Shelley | f80482a | 2020-12-02 15:13:13 -0600 | [diff] [blame] | 33 | ) |
| 34 | |
Caleb Palmer | 626270a | 2022-02-21 11:05:08 -0600 | [diff] [blame] | 35 | # Install the util data files |
| 36 | subdir('data') |