Skip to content

Commit

Permalink
meson: Set soversion
Browse files Browse the repository at this point in the history
  • Loading branch information
nwellnhof committed Jul 3, 2024
1 parent 944cc23 commit 606310a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ project(
)

v_array = meson.project_version().split('.')
v_maj = v_array[0]
v_min = v_array[1]
v_mic = v_array[2]
v_nbr = v_maj.to_int() * 10000 + v_min.to_int() * 100 + v_mic.to_int()
v_maj = v_array[0].to_int()
v_min = v_array[1].to_int()
v_mic = v_array[2].to_int()
v_nbr = v_maj * 10000 + v_min * 100 + v_mic
v_extra = ''
r = run_command('git', 'describe', check: false)
if (r.returncode() == 0)
Expand Down Expand Up @@ -474,6 +474,7 @@ xml_lib = library(
include_directories: config_dir,
install: true,
version: meson.project_version(),
soversion: v_maj,
)

dep_inc = include_directories('include')
Expand Down

0 comments on commit 606310a

Please sign in to comment.