From 296c263099f7ddb7d1696cb0b2bbadb41dc54131 Mon Sep 17 00:00:00 2001 From: Kleis Auke Wolthuizen Date: Sat, 11 Jun 2022 23:54:43 +0200 Subject: [PATCH] Meson: maintain autotools compatibility on macOS (#2856) By setting the correct compatibility/current version. --- cplusplus/meson.build | 1 + libvips/meson.build | 1 + meson.build | 1 + 3 files changed, 3 insertions(+) diff --git a/cplusplus/meson.build b/cplusplus/meson.build index 2f65d13a..f00e58ab 100644 --- a/cplusplus/meson.build +++ b/cplusplus/meson.build @@ -9,6 +9,7 @@ libvips_cpp_lib = library('vips-cpp', dependencies: libvips_dep, include_directories: libvips_cpp_includedir, version: library_version, + darwin_versions: darwin_versions, gnu_symbol_visibility: 'hidden', install: true, ) diff --git a/libvips/meson.build b/libvips/meson.build index 6a6f6f66..9e6750f8 100644 --- a/libvips/meson.build +++ b/libvips/meson.build @@ -23,6 +23,7 @@ libvips_lib = library('vips', link_whole: libvips_components, dependencies: libvips_deps, version: library_version, + darwin_versions: darwin_versions, gnu_symbol_visibility: 'hidden', install: true, ) diff --git a/meson.build b/meson.build index f41c29a0..78f807b0 100644 --- a/meson.build +++ b/meson.build @@ -23,6 +23,7 @@ library_current = 57 library_age = 15 library_revision = 0 library_version = '@0@.@1@.@2@'.format(library_current - library_age, library_age, library_revision) +darwin_versions = [library_current + 1, '@0@.@1@'.format(library_current + 1, library_revision)] gnome = import('gnome') pymod = import('python')