diff options
Diffstat (limited to 'meson.build')
| -rw-r--r-- | meson.build | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/meson.build b/meson.build index f10381a8..f8f497fa 100644 --- a/meson.build +++ b/meson.build @@ -1,4 +1,4 @@ -project('Dino', 'c', 'cpp', 'vala', license: 'GPL-3.0') +project('Dino', 'c', 'cpp', 'vala', license: 'GPL-3.0', meson_version: '>=1.4.0') fs = import('fs') gnome = import('gnome') @@ -56,6 +56,14 @@ endif prog_git = find_program('git', required: false) prog_python = python.find_installation() +if import('fs').is_file('VERSION') + version_file = files('VERSION')[0] + version_file_path = version_file.full_path() +else + version_file = 'invalid' + version_file_path = meson.current_source_dir() / 'VERSION' +endif + default_install_rpath = '' if get_option('set-install-rpath') default_install_rpath = get_option('prefix') / get_option('libdir') |
