1f80482a5SZane Shelley# Source files. 2f80482a5SZane Shelleyutil_src = files( 35191bae9SZane Shelley 'data_file.cpp', 4324234b4SBen Tyner 'dbus.cpp', 5f80482a5SZane Shelley 'ffdc_file.cpp', 6f80482a5SZane Shelley 'pdbg.cpp', 7*e90b85dcSZane Shelley 'pdbg-no-sim.cpp', 8f80482a5SZane Shelley 'temporary_file.cpp', 9f80482a5SZane Shelley) 10f80482a5SZane Shelley 11f80482a5SZane Shelley# Library dependencies. 12f80482a5SZane Shelleyutil_deps = [ 13f80482a5SZane Shelley libhei_dep, 14f80482a5SZane Shelley libpdbg_dep, 15f80482a5SZane Shelley] 16f80482a5SZane Shelley 173a85108fSZane Shelleyif get_option('phal').enabled() 183a85108fSZane Shelley util_deps += dependency('libdt-api') 193a85108fSZane Shelleyendif 203a85108fSZane Shelley 21f80482a5SZane Shelley# Create static library. 22f80482a5SZane Shelleyutil_lib = static_library( 23f80482a5SZane Shelley 'util_lib', 24f80482a5SZane Shelley util_src, 25f80482a5SZane Shelley include_directories : incdir, 26f80482a5SZane Shelley dependencies : util_deps, 27f80482a5SZane Shelley cpp_args : test_arg, 28c252894dSZane Shelley install : false, 29f80482a5SZane Shelley) 30f80482a5SZane Shelley 31