From b9ae3f51309ff0b38e7291239a0334e8df76b9d1 Mon Sep 17 00:00:00 2001 From: xengineering Date: Sat, 20 Dec 2025 14:50:28 +0100 Subject: Add Meson-tracked project version This allows to use the version of the project in the build system independent from the version control system. Thus a source tar archive can be built the same and also changing the version control system does not change anything regarding the build process. --- meson.build | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index c550710..0a1f27d 100644 --- a/meson.build +++ b/meson.build @@ -1,4 +1,7 @@ -project('sia-server') +project( + 'sia-server', + version : '0.0.0-dev', +) go = find_program('go', required : true) tar = find_program('tar', required : true) @@ -29,7 +32,7 @@ artifacts = [ archive = custom_target( input : artifacts, - output : 'sia-server.tar.zst', + output : 'sia-server-v' + meson.project_version() + '.tar.zst', command : [ tar, '--zstd', -- cgit v1.2.3-70-g09d2