From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 37364A051C; Fri, 17 Jan 2020 18:35:04 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DE4A914581; Fri, 17 Jan 2020 18:35:03 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 868BA378B for ; Fri, 17 Jan 2020 18:35:02 +0100 (CET) X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Jan 2020 09:35:01 -0800 X-IronPort-AV: E=Sophos;i="5.70,331,1574150400"; d="scan'208";a="218972610" Received: from bricha3-mobl.ger.corp.intel.com ([10.252.5.70]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 17 Jan 2020 09:35:00 -0800 Date: Fri, 17 Jan 2020 17:34:57 +0000 From: Bruce Richardson To: Thomas Monjalon Cc: dev@dpdk.org Message-ID: <20200117173457.GA1719@bricha3-MOBL.ger.corp.intel.com> References: <20200116071656.1663967-1-thomas@monjalon.net> <20200116071656.1663967-3-thomas@monjalon.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200116071656.1663967-3-thomas@monjalon.net> User-Agent: Mutt/1.12.1 (2019-06-15) Subject: Re: [dpdk-dev] [PATCH 2/3] build: allow to hide dependencies from pkg-config 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" On Thu, Jan 16, 2020 at 08:16:55AM +0100, Thomas Monjalon wrote: > If a dependency is required for a driver build, > but should not be exposed to the application (via pkg-config), > it can be declared in the array hidden_deps. > > The hidden_deps are used as internal dependencies, > when building the shared library and the first stage of static library. > The final static library does not include the hidden_deps > because this library object is used to generate the .pc file. > > Signed-off-by: Thomas Monjalon > --- > drivers/meson.build | 9 ++++++--- > 1 file changed, 6 insertions(+), 3 deletions(-) > > diff --git a/drivers/meson.build b/drivers/meson.build > index 3f8749d0b7..4ecd17ee01 100644 > --- a/drivers/meson.build > +++ b/drivers/meson.build > @@ -56,6 +56,7 @@ foreach class:dpdk_driver_classes > # too, so that it can be reflected in the pkgconfig output for > # static builds. > ext_deps = [] > + hidden_deps = [] > pkgconfig_extra_libs = [] > All parameters for drivers and libs need to be documented in the docs. Thanks, /Bruce