diff options
author | Kjell Ahlstedt <kjellahlstedt@gmail.com> | 2020-09-29 13:27:49 +0200 |
---|---|---|
committer | Kjell Ahlstedt <kjellahlstedt@gmail.com> | 2020-09-29 13:27:49 +0200 |
commit | 3d40ff18a50a2a737c7410ee9f611810e82f3f22 (patch) | |
tree | 40c5f13df0e79d3d1700fa0fa9aa0b2ea035103f | |
parent | 87e981ab6d4093e6ae12c8e04dc64265b77f3467 (diff) |
Meson build: Fix versioning on macOS
See https://github.com/libsigcplusplus/libsigcplusplus/pull/65
-rw-r--r-- | cairomm/meson.build | 3 | ||||
-rw-r--r-- | meson.build | 7 |
2 files changed, 8 insertions, 2 deletions
diff --git a/cairomm/meson.build b/cairomm/meson.build index e12343b..1c3304b 100644 --- a/cairomm/meson.build +++ b/cairomm/meson.build @@ -1,7 +1,7 @@ # cairomm # Input: cairomm_build_dep, cairomm_pcname, cairomm_libversion, cairomm_rc, -# is_msvc, cairomm_libname +# is_msvc, cairomm_libname, macos_darwin_versions # Output: source_h_files, cairomm_dep # There are no built source files in cairomm. @@ -82,6 +82,7 @@ extra_include_dirs = ['..'] cairomm_library = library(cairomm_libname, cairomm_cc, extra_cairomm_objects, version: cairomm_libversion, + darwin_versions: macos_darwin_versions, include_directories: extra_include_dirs, cpp_args: cairomm_cpp_args, dependencies: cairomm_build_dep, diff --git a/meson.build b/meson.build index 943acda..b77991f 100644 --- a/meson.build +++ b/meson.build @@ -29,7 +29,12 @@ libtool_soversion = [5, 0, 4] cairomm_libversion = '@0@.@1@.@2@'.format( libtool_soversion[0] - libtool_soversion[2], libtool_soversion[2], - libtool_soversion[1]) + libtool_soversion[1] +) +macos_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. |