summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2018-08-31 14:37:46 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2018-08-31 14:41:00 +0530
commitcea5e3fcdb96deabd6cf6f7688de986a2512fdc3 (patch)
tree59ef5c0ea9aec770987dd6f9cbe79da4d99cfb0f
parent515e2d765a63b60c3811efc7654b55df028c878a (diff)
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
-rw-r--r--gst-libs/gst/adaptivedemux/meson.build1
-rw-r--r--gst-libs/gst/audio/meson.build1
-rw-r--r--gst-libs/gst/basecamerabinsrc/meson.build1
-rw-r--r--gst-libs/gst/codecparsers/meson.build1
-rw-r--r--gst-libs/gst/insertbin/meson.build1
-rw-r--r--gst-libs/gst/interfaces/meson.build1
-rw-r--r--gst-libs/gst/isoff/meson.build1
-rw-r--r--gst-libs/gst/mpegts/meson.build1
-rw-r--r--gst-libs/gst/opencv/meson.build1
-rw-r--r--gst-libs/gst/player/meson.build1
-rw-r--r--gst-libs/gst/uridownloader/meson.build1
-rw-r--r--gst-libs/gst/video/meson.build1
-rw-r--r--gst-libs/gst/wayland/meson.build1
-rw-r--r--gst-libs/gst/webrtc/meson.build1
-rw-r--r--meson.build4
15 files changed, 17 insertions, 1 deletions
diff --git a/gst-libs/gst/adaptivedemux/meson.build b/gst-libs/gst/adaptivedemux/meson.build
index 24bd4653d..5f8eac32d 100644
--- a/gst-libs/gst/adaptivedemux/meson.build
+++ b/gst-libs/gst/adaptivedemux/meson.build
@@ -4,6 +4,7 @@ gstadaptivedemux = library('gstadaptivedemux-' + api_version,
include_directories : [configinc, libsinc],
version : libversion,
soversion : soversion,
+ darwin_versions : osxversion,
install : true,
dependencies : [gstbase_dep, gsturidownloader_dep],
)
diff --git a/gst-libs/gst/audio/meson.build b/gst-libs/gst/audio/meson.build
index 9d23ef3e3..b8b7bd592 100644
--- a/gst-libs/gst/audio/meson.build
+++ b/gst-libs/gst/audio/meson.build
@@ -9,6 +9,7 @@ gstbadaudio = library('gstbadaudio-' + api_version,
include_directories : [configinc, libsinc],
version : libversion,
soversion : soversion,
+ darwin_versions : osxversion,
install : true,
dependencies : [gstaudio_dep, gstbase_dep],
)
diff --git a/gst-libs/gst/basecamerabinsrc/meson.build b/gst-libs/gst/basecamerabinsrc/meson.build
index 69893915c..b1ba10689 100644
--- a/gst-libs/gst/basecamerabinsrc/meson.build
+++ b/gst-libs/gst/basecamerabinsrc/meson.build
@@ -17,6 +17,7 @@ gstbasecamerabin = library('gstbasecamerabinsrc-' + api_version,
include_directories : [configinc, libsinc],
version : libversion,
soversion : soversion,
+ darwin_versions : osxversion,
install : true,
dependencies : [gstapp_dep],
)
diff --git a/gst-libs/gst/codecparsers/meson.build b/gst-libs/gst/codecparsers/meson.build
index 75bda954c..12168ec53 100644
--- a/gst-libs/gst/codecparsers/meson.build
+++ b/gst-libs/gst/codecparsers/meson.build
@@ -45,6 +45,7 @@ gstcodecparsers = library('gstcodecparsers-' + api_version,
include_directories : [configinc, libsinc],
version : libversion,
soversion : soversion,
+ darwin_versions : osxversion,
install : true,
dependencies : [gstbase_dep, libm],
)
diff --git a/gst-libs/gst/insertbin/meson.build b/gst-libs/gst/insertbin/meson.build
index f4b8aba6d..8c9e1f5a8 100644
--- a/gst-libs/gst/insertbin/meson.build
+++ b/gst-libs/gst/insertbin/meson.build
@@ -8,6 +8,7 @@ gstinsertbin = library('gstinsertbin-' + api_version,
include_directories : [configinc, libsinc],
version : libversion,
soversion : soversion,
+ darwin_versions : osxversion,
install : true,
dependencies : [gst_dep],
)
diff --git a/gst-libs/gst/interfaces/meson.build b/gst-libs/gst/interfaces/meson.build
index 31c18c885..4e2fb4305 100644
--- a/gst-libs/gst/interfaces/meson.build
+++ b/gst-libs/gst/interfaces/meson.build
@@ -18,6 +18,7 @@ gstphotography = library('gstphotography-' + api_version,
include_directories : [configinc, libsinc],
version : libversion,
soversion : soversion,
+ darwin_versions : osxversion,
install : true,
dependencies : [gst_dep],
)
diff --git a/gst-libs/gst/isoff/meson.build b/gst-libs/gst/isoff/meson.build
index 8666ea163..d468a5a67 100644
--- a/gst-libs/gst/isoff/meson.build
+++ b/gst-libs/gst/isoff/meson.build
@@ -12,6 +12,7 @@ gstisoff = library('gstisoff-' + api_version,
include_directories : [configinc, libsinc],
version : libversion,
soversion : soversion,
+ darwin_versions : osxversion,
install : true,
dependencies : [gstbase_dep],
)
diff --git a/gst-libs/gst/mpegts/meson.build b/gst-libs/gst/mpegts/meson.build
index 9e2ed1cea..6c3758e0a 100644
--- a/gst-libs/gst/mpegts/meson.build
+++ b/gst-libs/gst/mpegts/meson.build
@@ -35,6 +35,7 @@ gstmpegts = library('gstmpegts-' + api_version,
include_directories : [configinc, libsinc],
version : libversion,
soversion : soversion,
+ darwin_versions : osxversion,
install : true,
dependencies : [gst_dep],
)
diff --git a/gst-libs/gst/opencv/meson.build b/gst-libs/gst/opencv/meson.build
index 222e86111..848aac4b3 100644
--- a/gst-libs/gst/opencv/meson.build
+++ b/gst-libs/gst/opencv/meson.build
@@ -17,6 +17,7 @@ if opencv_dep.found()
include_directories : [configinc, libsinc],
version : libversion,
soversion : soversion,
+ darwin_versions : osxversion,
install : true,
dependencies : [gstbase_dep, gstvideo_dep, opencv_dep],
)
diff --git a/gst-libs/gst/player/meson.build b/gst-libs/gst/player/meson.build
index b33001c55..3619de559 100644
--- a/gst-libs/gst/player/meson.build
+++ b/gst-libs/gst/player/meson.build
@@ -29,6 +29,7 @@ gstplayer = library('gstplayer-' + api_version,
include_directories : [configinc, libsinc],
version : libversion,
soversion : soversion,
+ darwin_versions : osxversion,
install : true,
dependencies : [gstbase_dep, gstvideo_dep, gstaudio_dep,
gsttag_dep, gstpbutils_dep],
diff --git a/gst-libs/gst/uridownloader/meson.build b/gst-libs/gst/uridownloader/meson.build
index 7c4d67078..cccb3b61e 100644
--- a/gst-libs/gst/uridownloader/meson.build
+++ b/gst-libs/gst/uridownloader/meson.build
@@ -16,6 +16,7 @@ gsturidownloader = library('gsturidownloader-' + api_version,
include_directories : [configinc, libsinc],
version : libversion,
soversion : soversion,
+ darwin_versions : osxversion,
install : true,
dependencies : [gstbase_dep],
)
diff --git a/gst-libs/gst/video/meson.build b/gst-libs/gst/video/meson.build
index 39f48f2be..a1432db25 100644
--- a/gst-libs/gst/video/meson.build
+++ b/gst-libs/gst/video/meson.build
@@ -14,6 +14,7 @@ gstbadvideo = library('gstbadvideo-' + api_version,
include_directories : [configinc, libsinc],
version : libversion,
soversion : soversion,
+ darwin_versions : osxversion,
install : true,
dependencies : [gstvideo_dep, gstbase_dep],
)
diff --git a/gst-libs/gst/wayland/meson.build b/gst-libs/gst/wayland/meson.build
index d174a9fef..ddade69cd 100644
--- a/gst-libs/gst/wayland/meson.build
+++ b/gst-libs/gst/wayland/meson.build
@@ -13,6 +13,7 @@ if use_wayland
include_directories : [configinc, libsinc],
version : libversion,
soversion : soversion,
+ darwin_versions : osxversion,
install : true,
dependencies : [gst_dep, gstvideo_dep]
)
diff --git a/gst-libs/gst/webrtc/meson.build b/gst-libs/gst/webrtc/meson.build
index 6e284b683..24e43765e 100644
--- a/gst-libs/gst/webrtc/meson.build
+++ b/gst-libs/gst/webrtc/meson.build
@@ -45,6 +45,7 @@ gstwebrtc = library('gstwebrtc-' + api_version,
include_directories : [configinc, libsinc],
version : libversion,
soversion : soversion,
+ darwin_versions : osxversion,
install : true,
dependencies : gstwebrtc_dependencies,
)
diff --git a/meson.build b/meson.build
index 84dd85c37..78b7b1a49 100644
--- a/meson.build
+++ b/meson.build
@@ -23,7 +23,9 @@ api_version = '1.0'
soversion = 0
# maintaining compatibility with the previous libtool versioning
# 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'))