build: keep libsysprof-capture version at 4

We haven't changed the format, so we really don't want to cause unnecessary
churn by applications consuming this.
This commit is contained in:
Christian Hergert
2023-07-12 11:49:55 -07:00
parent c4b5e3ec99
commit 1f4f4d7e50
3 changed files with 6 additions and 7 deletions

View File

@ -21,12 +21,12 @@ else
endif
# All libraries share an ABI revision as they are expected
# to be updated as a set.
# to be updated as a set. However, we keep libsysprof-capture
# at an older version since it's used as a static library
# from various platform tooling
soname_major_version = 6
# Temporary until we update meson.build
libsysprof_capture_api_version = 4
libsysprof_api_version = soname_major_version
libsysprof_ui_api_version = soname_major_version
version_split = meson.project_version().split('.')
datadir = get_option('datadir')

View File

@ -49,7 +49,7 @@ libsysprof_capture_deps = [
]
libsysprof_capture = static_library(
'sysprof-capture-@0@'.format(libsysprof_api_version),
'sysprof-capture-@0@'.format(libsysprof_capture_api_version),
(libsysprof_capture_sources +
mapped_ring_buffer_sources),
@ -68,7 +68,7 @@ libsysprof_capture_dep = declare_dependency(
dependencies: libsysprof_capture_deps,
include_directories: libsysprof_capture_include_dirs,
)
meson.override_dependency('sysprof-capture-@0@'.format(libsysprof_api_version), libsysprof_capture_dep)
meson.override_dependency('sysprof-capture-@0@'.format(libsysprof_capture_api_version), libsysprof_capture_dep)
if install_static
pkgconfig.generate(

View File

@ -1,5 +1,4 @@
sysprof_header_subdir = 'sysprof-@0@'.format(libsysprof_api_version)
sysprof_ui_header_subdir = 'sysprof-ui-@0@'.format(libsysprof_ui_api_version)
sysprof_version_conf = configuration_data()
sysprof_version = meson.project_version().split('.')