Skip to content
This repository was archived by the owner on Apr 30, 2025. It is now read-only.

Commit f907468

Browse files
authored
build(meson): drop Git-based version detection (yhirose#1109)
See 3051152
1 parent ddff782 commit f907468

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

meson.build

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,7 @@ project(
1919
# Check just in case downstream decides to edit the source
2020
# and add a project version
2121
version = meson.project_version()
22-
if version == 'undefined'
23-
git = find_program('git', required: false)
24-
if git.found()
25-
result = run_command(git, 'describe', '--tags', '--abbrev=0')
26-
if result.returncode() == 0
27-
version = result.stdout().strip('v\n')
28-
endif
29-
endif
30-
endif
31-
3222
python = import('python').find_installation('python3')
33-
# If version is still undefined it means that the git method failed
3423
if version == 'undefined'
3524
# Meson doesn't have regular expressions, but since it is implemented
3625
# in python we can be sure we can use it to parse the file manually

0 commit comments

Comments
 (0)