diff options
| author | Marvin W <git@larma.de> | 2025-04-12 21:36:31 +0200 |
|---|---|---|
| committer | Marvin W <git@larma.de> | 2025-07-20 19:31:03 +0200 |
| commit | 08865ca4cb2ca32e0090e57d31afbd4c7feee471 (patch) | |
| tree | cc6abcdebb1fc13e07b9fca88c69c876413858e8 /meson.build | |
| parent | da08d7d824060218fee81427256b346c01ab2daf (diff) | |
Meson: Fix path to version.py in certain build
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') |
