Skip to content

Commit f5d6165

Browse files
committed
Meson build: Fix versioning on macOS
See libsigcplusplus, pull request 65
1 parent 86b59fd commit f5d6165

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

libxml++/meson.build

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# libxml++
22

33
# Input: xmlxx_build_dep, xmlxx_pcname, xmlxx_libversion, xmlxx_api_version,
4-
# install_includedir, xmlxx_rc, xmlxx_libname
4+
# install_includedir, xmlxx_rc, xmlxx_libname, macos_darwin_versions
55
# Output: source_h_files, xmlxx_dep
66

77
# There are no built source files in libxml++-5.0.
@@ -106,6 +106,7 @@ xmlxx_library = library(xmlxx_libname,
106106
source_cc_files,
107107
extra_xmlxx_objects,
108108
version: xmlxx_libversion,
109+
darwin_versions: macos_darwin_versions,
109110
include_directories: extra_include_dirs,
110111
cpp_args: xmlxx_cpp_args,
111112
dependencies: xmlxx_build_dep,

meson.build

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,12 @@ libtool_soversion = [1, 0, 0]
2929
xmlxx_libversion = '@0@.@1@.@2@'.format(
3030
libtool_soversion[0] - libtool_soversion[2],
3131
libtool_soversion[2],
32-
libtool_soversion[1])
32+
libtool_soversion[1]
33+
)
34+
macos_darwin_versions = [
35+
libtool_soversion[0] + 1,
36+
'@0@.@1@'.format(libtool_soversion[0] + 1, libtool_soversion[1])
37+
]
3338

3439
# Use these instead of meson.source_root() and meson.build_root() in subdirectories.
3540
# source_root() and build_root() are not useful, if this is a subproject.

0 commit comments

Comments
 (0)