Skip to content
Snippets Groups Projects
Commit d954d5d7 authored by Mario Limonciello's avatar Mario Limonciello Committed by Nico Huber
Browse files

meson.build: Sanitize the version string


Match strictly the library version, and remove all starting letters.

Change-Id: I25587ed2ad7fbcffdf14eb758c1f0d6ab2aea545
Signed-off-by: default avatarMario Limonciello <mario.limonciello@dell.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/35566


Tested-by: default avatarNico Huber <nico.h@gmx.de>
Reviewed-by: default avatarRichard Hughes <richard@hughsie.com>
Reviewed-by: default avatarNico Huber <nico.h@gmx.de>
parent e0ceedf7
No related branches found
No related tags found
No related merge requests found
...@@ -349,10 +349,19 @@ flashrom = shared_library( ...@@ -349,10 +349,19 @@ flashrom = shared_library(
link_depends : mapfile, link_depends : mapfile,
) )
version = meson.project_version()
#strip leading characters
if version.startswith('v')
version = version.split('v')[1]
endif
if version.startswith('p')
version = version.split('p')[1]
endif
pkgg = import('pkgconfig') pkgg = import('pkgconfig')
pkgg.generate( pkgg.generate(
libraries : flashrom, libraries : flashrom,
version : meson.project_version(), version : version,
name : 'libflashrom', name : 'libflashrom',
filebase : 'libflashrom', filebase : 'libflashrom',
description : 'libflashrom', description : 'libflashrom',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment