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:
Nirbheek Chauhan 2018-08-31 14:37:46 +05:30
parent 515e2d765a
commit cea5e3fcdb
15 changed files with 17 additions and 1 deletions

View file

@ -4,6 +4,7 @@ gstadaptivedemux = library('gstadaptivedemux-' + api_version,
include_directories : [configinc, libsinc], include_directories : [configinc, libsinc],
version : libversion, version : libversion,
soversion : soversion, soversion : soversion,
darwin_versions : osxversion,
install : true, install : true,
dependencies : [gstbase_dep, gsturidownloader_dep], dependencies : [gstbase_dep, gsturidownloader_dep],
) )

View file

@ -9,6 +9,7 @@ gstbadaudio = library('gstbadaudio-' + api_version,
include_directories : [configinc, libsinc], include_directories : [configinc, libsinc],
version : libversion, version : libversion,
soversion : soversion, soversion : soversion,
darwin_versions : osxversion,
install : true, install : true,
dependencies : [gstaudio_dep, gstbase_dep], dependencies : [gstaudio_dep, gstbase_dep],
) )

View file

@ -17,6 +17,7 @@ gstbasecamerabin = library('gstbasecamerabinsrc-' + api_version,
include_directories : [configinc, libsinc], include_directories : [configinc, libsinc],
version : libversion, version : libversion,
soversion : soversion, soversion : soversion,
darwin_versions : osxversion,
install : true, install : true,
dependencies : [gstapp_dep], dependencies : [gstapp_dep],
) )

View file

@ -45,6 +45,7 @@ gstcodecparsers = library('gstcodecparsers-' + api_version,
include_directories : [configinc, libsinc], include_directories : [configinc, libsinc],
version : libversion, version : libversion,
soversion : soversion, soversion : soversion,
darwin_versions : osxversion,
install : true, install : true,
dependencies : [gstbase_dep, libm], dependencies : [gstbase_dep, libm],
) )

View file

@ -8,6 +8,7 @@ gstinsertbin = library('gstinsertbin-' + api_version,
include_directories : [configinc, libsinc], include_directories : [configinc, libsinc],
version : libversion, version : libversion,
soversion : soversion, soversion : soversion,
darwin_versions : osxversion,
install : true, install : true,
dependencies : [gst_dep], dependencies : [gst_dep],
) )

View file

@ -18,6 +18,7 @@ gstphotography = library('gstphotography-' + api_version,
include_directories : [configinc, libsinc], include_directories : [configinc, libsinc],
version : libversion, version : libversion,
soversion : soversion, soversion : soversion,
darwin_versions : osxversion,
install : true, install : true,
dependencies : [gst_dep], dependencies : [gst_dep],
) )

View file

@ -12,6 +12,7 @@ gstisoff = library('gstisoff-' + api_version,
include_directories : [configinc, libsinc], include_directories : [configinc, libsinc],
version : libversion, version : libversion,
soversion : soversion, soversion : soversion,
darwin_versions : osxversion,
install : true, install : true,
dependencies : [gstbase_dep], dependencies : [gstbase_dep],
) )

View file

@ -35,6 +35,7 @@ gstmpegts = library('gstmpegts-' + api_version,
include_directories : [configinc, libsinc], include_directories : [configinc, libsinc],
version : libversion, version : libversion,
soversion : soversion, soversion : soversion,
darwin_versions : osxversion,
install : true, install : true,
dependencies : [gst_dep], dependencies : [gst_dep],
) )

View file

@ -17,6 +17,7 @@ if opencv_dep.found()
include_directories : [configinc, libsinc], include_directories : [configinc, libsinc],
version : libversion, version : libversion,
soversion : soversion, soversion : soversion,
darwin_versions : osxversion,
install : true, install : true,
dependencies : [gstbase_dep, gstvideo_dep, opencv_dep], dependencies : [gstbase_dep, gstvideo_dep, opencv_dep],
) )

View file

@ -29,6 +29,7 @@ gstplayer = library('gstplayer-' + api_version,
include_directories : [configinc, libsinc], include_directories : [configinc, libsinc],
version : libversion, version : libversion,
soversion : soversion, soversion : soversion,
darwin_versions : osxversion,
install : true, install : true,
dependencies : [gstbase_dep, gstvideo_dep, gstaudio_dep, dependencies : [gstbase_dep, gstvideo_dep, gstaudio_dep,
gsttag_dep, gstpbutils_dep], gsttag_dep, gstpbutils_dep],

View file

@ -16,6 +16,7 @@ gsturidownloader = library('gsturidownloader-' + api_version,
include_directories : [configinc, libsinc], include_directories : [configinc, libsinc],
version : libversion, version : libversion,
soversion : soversion, soversion : soversion,
darwin_versions : osxversion,
install : true, install : true,
dependencies : [gstbase_dep], dependencies : [gstbase_dep],
) )

View file

@ -14,6 +14,7 @@ gstbadvideo = library('gstbadvideo-' + api_version,
include_directories : [configinc, libsinc], include_directories : [configinc, libsinc],
version : libversion, version : libversion,
soversion : soversion, soversion : soversion,
darwin_versions : osxversion,
install : true, install : true,
dependencies : [gstvideo_dep, gstbase_dep], dependencies : [gstvideo_dep, gstbase_dep],
) )

View file

@ -13,6 +13,7 @@ if use_wayland
include_directories : [configinc, libsinc], include_directories : [configinc, libsinc],
version : libversion, version : libversion,
soversion : soversion, soversion : soversion,
darwin_versions : osxversion,
install : true, install : true,
dependencies : [gst_dep, gstvideo_dep] dependencies : [gst_dep, gstvideo_dep]
) )

View file

@ -45,6 +45,7 @@ gstwebrtc = library('gstwebrtc-' + api_version,
include_directories : [configinc, libsinc], include_directories : [configinc, libsinc],
version : libversion, version : libversion,
soversion : soversion, soversion : soversion,
darwin_versions : osxversion,
install : true, install : true,
dependencies : gstwebrtc_dependencies, dependencies : gstwebrtc_dependencies,
) )

View file

@ -23,7 +23,9 @@ api_version = '1.0'
soversion = 0 soversion = 0
# maintaining compatibility with the previous libtool versioning # maintaining compatibility with the previous libtool versioning
# current = minor * 100 + micro # current = minor * 100 + micro
libversion = '@0@.@1@.0'.format(soversion, gst_version_minor * 100 + gst_version_micro) curversion = gst_version_minor * 100 + gst_version_micro
libversion = '@0@.@1@.0'.format(soversion, curversion)
osxversion = curversion + 1
plugins_install_dir = '@0@/gstreamer-1.0'.format(get_option('libdir')) plugins_install_dir = '@0@/gstreamer-1.0'.format(get_option('libdir'))