From patchwork Thu Sep 19 15:07:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Richardson X-Patchwork-Id: 59470 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 75F9C1F0EB; Thu, 19 Sep 2019 17:08:04 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 4E7E71F0B1 for ; Thu, 19 Sep 2019 17:08:02 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Sep 2019 08:08:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,523,1559545200"; d="scan'208";a="194403487" Received: from silpixa00399126.ir.intel.com (HELO silpixa00399126.ger.corp.intel.com) ([10.237.223.2]) by FMSMGA003.fm.intel.com with ESMTP; 19 Sep 2019 08:08:00 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson Date: Thu, 19 Sep 2019 16:07:55 +0100 Message-Id: <20190919150755.28018-1-bruce.richardson@intel.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH] build: print out dependency names for clarity X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 Tested-by: Anatoly Burakov --- drivers/meson.build | 3 +++ lib/meson.build | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/meson.build b/drivers/meson.build index 2ed2e9541..c3f52d785 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 e5ff83893..766d3b08e 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