1f80482a5SZane Shelley# Source files. 2f80482a5SZane Shelleyutil_src = files( 35191bae9SZane Shelley 'data_file.cpp', 4324234b4SBen Tyner 'dbus.cpp', 5*faf33367SBen 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, 16f80482a5SZane Shelley] 17f80482a5SZane Shelley 183a85108fSZane Shelleyif get_option('phal').enabled() 193a85108fSZane Shelley util_deps += dependency('libdt-api') 203a85108fSZane Shelleyendif 213a85108fSZane Shelley 22f80482a5SZane Shelley# Create static library. 23f80482a5SZane Shelleyutil_lib = static_library( 24f80482a5SZane Shelley 'util_lib', 25f80482a5SZane Shelley util_src, 26f80482a5SZane Shelley include_directories : incdir, 27f80482a5SZane Shelley dependencies : util_deps, 28f80482a5SZane Shelley cpp_args : test_arg, 29c252894dSZane Shelley install : false, 30f80482a5SZane Shelley) 31f80482a5SZane Shelley 32