summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build9
1 files changed, 3 insertions, 6 deletions
diff --git a/meson.build b/meson.build
index a3b0bc82..342b3cc7 100644
--- a/meson.build
+++ b/meson.build
@@ -1,6 +1,8 @@
project('libcamera', 'c', 'cpp',
meson_version : '>= 0.40',
- version : '0.1',
+ version : run_command('utils/gen-version.sh',
+ '@0@'.format(meson.source_root()),
+ check : true).stdout().strip(),
default_options : [
'werror=true',
'warning_level=2',
@@ -8,11 +10,6 @@ project('libcamera', 'c', 'cpp',
],
license : 'LGPL 2.1+')
-# TODO: Extract this from project.version.
-# Ideally the version at Documentation/conf.py should be
-# generated from this too.
-api_version = '0.1'
-
cc = meson.get_compiler('c')
config_h = configuration_data()