From patchwork Fri Aug 31 13:51:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Monjalon X-Patchwork-Id: 44130 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 E2D327CE5; Fri, 31 Aug 2018 15:52:07 +0200 (CEST) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id 77FEE6CC7 for ; Fri, 31 Aug 2018 15:52:06 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id BBE6721F71; Fri, 31 Aug 2018 09:52:05 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Fri, 31 Aug 2018 09:52:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:date:from:message-id:subject:to:x-me-sender:x-me-sender :x-sasl-enc; s=mesmtp; bh=R6/s5kTw7aYf77cvqd/960Rc3gew+0ELdFJovz q55/c=; b=ky7F0FXfLRrfNixG4c7ifYIrxxDcebztT4uicxbvzltfZEiSsD0BXM FKeJ8gGhWtA1lLODMMSM8esnZytBOhV2IzAWN4e1d0tHB37qBazRoAu7xpZKTNOb 8BBmrpa6MOgtKoIX12wWLqLR+0dMn2mm21ttFXjhYDZqMURl+Jhw4= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:message-id:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=R6/s5kTw7aYf77cvq d/960Rc3gew+0ELdFJovzq55/c=; b=D8PNMic87GLGiSrkghT8T0JVNhoMdDS0W BmJPUeeYVHS5jKm4jeZkVSd5WO3wHGmC/nwQlcBI6CLUldKedzeXFD1DjmwpxqUE aj92+hd+onBF79Y4T2HugIT9EhG4mom7lFh8me1L3qRtDaknmCRmzZrj6RwRO7yr 7FQjUiCEvsQwFHS45ynf/c+8kEpq8V6OvGuMiXQ+Fyo4stGbVXGb/a2kwbd2rT6c dhVxK61QeabN+Hb2Q77tVA7PxSeG0YL3x5xAdM7l82Mge2i6fj3O6YxPvTt+RxXJ 6pOAw1U6gtv3719/k8NVGps+o9ljABrpqe2FUc3eSPQ5MtrF+z9yg== X-ME-Proxy: X-ME-Sender: Received: from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id CE56310298; Fri, 31 Aug 2018 09:52:04 -0400 (EDT) From: Thomas Monjalon To: bruce.richardson@intel.com Cc: dev@dpdk.org Date: Fri, 31 Aug 2018 15:51:32 +0200 Message-Id: <20180831135132.14730-1-thomas@monjalon.net> X-Mailer: git-send-email 2.18.0 Subject: [dpdk-dev] [PATCH] build: get version number from header file 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" The header file rte_version.h should be the unique place to define the version number. The makefile command "showversion" makes it accessible, and it is used to set the meson project version with an external command. Signed-off-by: Thomas Monjalon --- I don't know how to check easily the meson version number. Please help in testing, thanks. --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 84af32ece..b9d1030e7 100644 --- a/meson.build +++ b/meson.build @@ -2,7 +2,7 @@ # Copyright(c) 2017 Intel Corporation project('DPDK', 'C', - version: '18.11-rc0', + version: run_command('make', 'showversion').stdout().strip(), license: 'BSD', default_options: ['buildtype=release', 'default_library=static'], meson_version: '>= 0.41'