From b867a8fc79936fae513f64d0e28d8315d6e9b9e5 Mon Sep 17 00:00:00 2001 From: Tom Schoonjans Date: Mon, 28 Sep 2020 15:39:19 +0200 Subject: Meson build: fix versioning on macOS See pull request #65 --- meson.build | 1 + sigc++/meson.build | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 07ec66e..13d6924 100644 --- a/meson.build +++ b/meson.build @@ -31,6 +31,7 @@ sigcxx_libversion = '@0@.@1@.@2@'.format( libtool_soversion[0] - libtool_soversion[2], libtool_soversion[2], libtool_soversion[1]) +darwin_versions = [libtool_soversion[0] + 1, '@0@.@1@'.format(libtool_soversion[0] + 1, libtool_soversion[1])] # Use these instead of meson.source_root() and meson.build_root() in subdirectories. # source_root() and build_root() are not useful, if this is a subproject. diff --git a/sigc++/meson.build b/sigc++/meson.build index 6c64e2c..3e5a523 100644 --- a/sigc++/meson.build +++ b/sigc++/meson.build @@ -1,7 +1,7 @@ # sigc++ # Input: sigcxx_build_dep, sigcxx_pcname, sigcxx_libversion, sigcxx_api_version, -# install_includedir, sig_rc +# darwin_versions, install_includedir, sig_rc # Output: source_h_files, sigcxx_dep # There are no built source files in libsigc++-3.0. @@ -89,6 +89,7 @@ sigcxx_library = library('sigc-' + sigcxx_api_version, source_cc_files, extra_sigc_objects, version: sigcxx_libversion, + darwin_versions: darwin_versions, include_directories: extra_include_dirs, cpp_args: extra_sigc_cppflags, dependencies: sigcxx_build_dep, -- cgit v1.2.1