From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 952672BD2 for ; Thu, 29 Mar 2018 16:05:03 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Mar 2018 07:05:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,376,1517904000"; d="scan'208";a="29924104" Received: from silpixa00399126.ir.intel.com (HELO silpixa00399126.ger.corp.intel.com) ([10.237.223.223]) by orsmga006.jf.intel.com with ESMTP; 29 Mar 2018 07:05:01 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson Date: Thu, 29 Mar 2018 15:04:56 +0100 Message-Id: <20180329140457.93034-2-bruce.richardson@intel.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180329140457.93034-1-bruce.richardson@intel.com> References: <20180329140457.93034-1-bruce.richardson@intel.com> Subject: [dpdk-dev] [PATCH 1/2] examples/ethtool: add to meson build 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: , X-List-Received-Date: Thu, 29 Mar 2018 14:05:04 -0000 Add the ethtool example to the meson build. This example is more complicated than the previously added ones as it has files in two subdirectories. An ethtool "wrapper lib" in one, used by the actual example "ethtool app" in the other. Rather than using recursive operation, like is done with the makefiles, we instead can just special-case the building of the library from the single .c file, and then use that as a dependency when building the app proper. Signed-off-by: Bruce Richardson --- examples/ethtool/meson.build | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/examples/ethtool/meson.build b/examples/ethtool/meson.build index c370d7476..0ec2a2391 100644 --- a/examples/ethtool/meson.build +++ b/examples/ethtool/meson.build @@ -6,5 +6,14 @@ # To build this example as a standalone application with an already-installed # DPDK instance, use 'make' -# Example app currently unsupported by meson build -build = false +# build the ethtool wrapper as a lib, which app uses as a dependency +ethtool_inc = include_directories('lib') +ethtool_lib = static_library('rte_ethtool', 'lib/rte_ethtool.c', + include_directories: ethtool_inc, + dependencies: [static_rte_ethdev, static_rte_pmd_ixgbe]) +ethtool_dep = declare_dependency(link_with: ethtool_lib, + include_directories: ethtool_inc) + +# sample app files are in the ethtool-app subdir +sources = files('ethtool-app/ethapp.c', 'ethtool-app/main.c') +ext_deps += ethtool_dep -- 2.14.3