1f80482a5SZane Shelley# Source files. 2f80482a5SZane Shelleyutil_src = files( 35191bae9SZane Shelley 'data_file.cpp', 4324234b4SBen Tyner 'dbus.cpp', 5faf33367SBen Tyner 'ffdc.cpp', 6f80482a5SZane Shelley 'ffdc_file.cpp', 7f80482a5SZane Shelley 'pdbg.cpp', 8e90b85dcSZane Shelley 'pdbg-no-sim.cpp', 9f80482a5SZane Shelley 'temporary_file.cpp', 10f80482a5SZane Shelley) 11f80482a5SZane Shelley 12f80482a5SZane Shelley# Library dependencies. 13f80482a5SZane Shelleyutil_deps = [ 14f80482a5SZane Shelley libhei_dep, 15f80482a5SZane Shelley libpdbg_dep, 16*30984d15SZane Shelley phosphor_logging_dep, 17f80482a5SZane Shelley] 18f80482a5SZane Shelley 193a85108fSZane Shelleyif get_option('phal').enabled() 203a85108fSZane Shelley util_deps += dependency('libdt-api') 213a85108fSZane Shelleyendif 223a85108fSZane Shelley 23f80482a5SZane Shelley# Create static library. 24f80482a5SZane Shelleyutil_lib = static_library( 25f80482a5SZane Shelley 'util_lib', 26f80482a5SZane Shelley util_src, 27f80482a5SZane Shelley include_directories : incdir, 28f80482a5SZane Shelley dependencies : util_deps, 29626270afSCaleb Palmer cpp_args : [ package_args, test_arg ], 30c252894dSZane Shelley install : false, 31f80482a5SZane Shelley) 32f80482a5SZane Shelley 33626270afSCaleb Palmer# Install the util data files 34626270afSCaleb Palmersubdir('data') 35