Skip to content

Commit

Permalink
fix(build): use major API version for soversion
Browse files Browse the repository at this point in the history
  • Loading branch information
rrrrrrmb committed Feb 10, 2025
1 parent aa057b2 commit 4c54e0d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/libvalent/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

libvalent_api_version = meson.project_version().split('.')[0]
libvalent_api_name = 'libvalent-@0@'.format(libvalent_api_version)
libvalent_so_version = valent_version

# The subdirs update these before libvalent is compiled
libvalent_c_args = ['-DVALENT_COMPILATION']
Expand Down Expand Up @@ -49,8 +48,8 @@ libvalent = shared_library('valent-@0@'.format(libvalent_api_version),
c_args: libvalent_c_args + release_args,
link_args: libvalent_link_args,
gnu_symbol_visibility: 'hidden',
version: libvalent_api_version,
soversion: libvalent_so_version,
version: valent_version,
soversion: libvalent_api_version,
install: true,
)

Expand All @@ -65,7 +64,7 @@ libvalent_dep = declare_dependency(
pkgconfig.generate(
name: 'Valent',
description: 'Core implementation and plugin API for Valent.',
version: libvalent_so_version,
version: valent_version,
filebase: libvalent_api_name,
libraries: [libvalent],
subdirs: [libvalent_header_subdir],
Expand Down

0 comments on commit 4c54e0d

Please sign in to comment.