From bead8287a5c047f31e6efe5c49039278341ae46c Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Tue, 28 Aug 2018 15:17:00 +0530 Subject: Improve support for macOS dylib versioning We now use the soversion to set compatibility_version and current_version by default. This is the only sane thing we can do by default because of the restrictions on the values that can be used for compatibility and current version. Users can override this value with the `darwin_versions:` kwarg, which can be a single value or a two-element list of values. The first one is the compatibility version and the second is the current version. Fixes https://github.com/mesonbuild/meson/issues/3555 Fixes https://github.com/mesonbuild/meson/issues/1451 --- docs/markdown/snippets/shared_library_darwin_versions.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 docs/markdown/snippets/shared_library_darwin_versions.md (limited to 'docs/markdown/snippets') diff --git a/docs/markdown/snippets/shared_library_darwin_versions.md b/docs/markdown/snippets/shared_library_darwin_versions.md new file mode 100644 index 0000000..ad137f3 --- /dev/null +++ b/docs/markdown/snippets/shared_library_darwin_versions.md @@ -0,0 +1,9 @@ +## `shared_library()` now supports setting dylib compatibility and current version + +Now, by default `shared_library()` sets `-compatibility_version` and +`-current_version` of a macOS dylib using the `soversion`. + +This can be overriden by using the `darwin_versions:` kwarg to +[`shared_library()`](Reference-manual.md#shared_library). As usual, you can +also pass this kwarg to `library()` or `build_target()` and it will be used in +the appropriate circumstances. -- cgit v1.1