From 443542bfd30318ddbe3d1c7c029f90386b541347 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Sun, 16 Dec 2018 17:01:03 +0000 Subject: meson: extract project version from header file and version .so - Extract project version from tinyalsa/version.h for easier maintainability - Version shared lib: tinyalsa.so -> tinyalsa.so.1.1.1 --- meson.build | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index e09a8be..67607a1 100644 --- a/meson.build +++ b/meson.build @@ -1,10 +1,13 @@ -project ('tinyalsa', 'c', version : '1.1.1', meson_version : '>= 0.48.0') +project ('tinyalsa', 'c', + version : run_command(find_program('version.py')).stdout().strip(), + meson_version : '>= 0.48.0') tinyalsa_includes = include_directories('.', 'include') tinyalsa = library('tinyalsa', 'src/mixer.c', 'src/pcm.c', include_directories: tinyalsa_includes, + version: meson.project_version(), install: true) # For use as a Meson subproject -- cgit v1.2.3