Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/videolan/dav1d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Beauzée-Luyssen <hugo@videolan.org>2018-09-28 12:26:48 +0300
committerHugo Beauzée-Luyssen <hugo@videolan.org>2018-09-28 18:42:35 +0300
commitc2ade34fb266c5090f1a2022145cb99e9e21f263 (patch)
tree8e01b2b7cf4a154a45cb5949b7e13b24aac8e6ca /meson.build
parent3634ef1f40eef737a9ec0b3d7d10bfe3b083a302 (diff)
meson: Extract version components
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build5
1 files changed, 5 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 647f5f9..6931963 100644
--- a/meson.build
+++ b/meson.build
@@ -27,6 +27,11 @@ project('dav1d', ['c'],
default_options: ['c_std=c99'],
meson_version: '>= 0.47.0')
+dav1d_version_array = meson.project_version().split('.')
+dav1d_version_major = dav1d_version_array[0]
+dav1d_version_minor = dav1d_version_array[1]
+dav1d_version_revision = dav1d_version_array[2]
+
dav1d_src_root = meson.current_source_dir()
cdata = configuration_data()
cdata_asm = configuration_data()