From: Bruce Richardson Date: Thu, 19 Sep 2019 15:07:55 +0000 (+0100) Subject: build: print out dependency names for clarity X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=ae783b42c4935d013ccec3f4625c51ec9ed234be;p=dpdk.git build: print out dependency names for clarity To help developers to get the correct dependency name e.g. when creating a new example that depends on a specific component, print out the dependency name for each lib/driver as it is processed. Signed-off-by: Bruce Richardson --- diff --git a/drivers/meson.build b/drivers/meson.build index 2ed2e95411..c3f52d7850 100644 --- a/drivers/meson.build +++ b/drivers/meson.build @@ -157,6 +157,9 @@ foreach class:dpdk_driver_classes set_variable('shared_@0@'.format(lib_name), shared_dep) set_variable('static_@0@'.format(lib_name), static_dep) + dependency_name = ''.join(lib_name.split('rte_')) + message('drivers/@0@: Defining dependency "@1@"'.format( + drv_path, dependency_name)) endif # build endforeach diff --git a/lib/meson.build b/lib/meson.build index e5ff838934..766d3b08ec 100644 --- a/lib/meson.build +++ b/lib/meson.build @@ -154,7 +154,9 @@ foreach l:libraries dpdk_static_libraries = [static_lib] + dpdk_static_libraries endif # sources.length() > 0 - set_variable('shared_' + libname, shared_dep) - set_variable('static_' + libname, static_dep) + set_variable('shared_rte_' + name, shared_dep) + set_variable('static_rte_' + name, static_dep) + message('lib/@0@: Defining dependency "@1@"'.format( + dir_name, name)) endif # if build endforeach