mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-08 16:35:40 +00:00
meson: Maintain macOS ABI through dylib versioning
Requires Meson 0.48, but the feature will be ignored on older versions so it's safe to add it without bumping the requirement. Documentation: https://github.com/mesonbuild/meson/blob/master/docs/markdown/Reference-manual.md#shared_library
This commit is contained in:
parent
68a7ad72ac
commit
d035501228
3 changed files with 5 additions and 1 deletions
|
@ -20,7 +20,9 @@ apiversion = '1.0'
|
|||
soversion = 0
|
||||
# maintaining compatibility with the previous libtool versioning
|
||||
# current = minor * 100 + micro
|
||||
libversion = '@0@.@1@.0'.format(soversion, gst_version_minor.to_int() * 100 + gst_version_micro.to_int())
|
||||
curversion = gst_version_minor * 100 + gst_version_micro
|
||||
libversion = '@0@.@1@.0'.format(soversion, curversion)
|
||||
osxversion = curversion + 1
|
||||
|
||||
prefix = get_option('prefix')
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@ shared_library('gstvalidate-default-overrides-1.0',
|
|||
sources: 'gst-validate-default-overrides.c',
|
||||
version : libversion,
|
||||
soversion : soversion,
|
||||
darwin_versions : osxversion,
|
||||
include_directories : [inc_dirs],
|
||||
install: true,
|
||||
c_args : [gst_c_args] + ['-D_GNU_SOURCE'],
|
||||
|
|
|
@ -56,6 +56,7 @@ gstvalidate = shared_library('gstvalidate-1.0',
|
|||
sources: gstvalidate_sources + gst_validate_enums,
|
||||
version : libversion,
|
||||
soversion : soversion,
|
||||
darwin_versions : osxversion,
|
||||
include_directories : [inc_dirs],
|
||||
install: true,
|
||||
c_args : [gst_c_args] + ['-D_GNU_SOURCE'],
|
||||
|
|
Loading…
Reference in a new issue