From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: [PATCH] build: get version number from header file Date: Fri, 31 Aug 2018 15:51:32 +0200 Message-ID: <20180831135132.14730-1-thomas@monjalon.net> Cc: dev@dpdk.org To: bruce.richardson@intel.com Return-path: 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) 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' -- 2.18.0