Skip to content

Commit b867a8f

Browse files
tschoonjkjellahl
authored andcommitted
Meson build: fix versioning on macOS
See pull request #65
1 parent 594062f commit b867a8f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

meson.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ sigcxx_libversion = '@0@.@1@.@2@'.format(
3131
libtool_soversion[0] - libtool_soversion[2],
3232
libtool_soversion[2],
3333
libtool_soversion[1])
34+
darwin_versions = [libtool_soversion[0] + 1, '@0@.@1@'.format(libtool_soversion[0] + 1, libtool_soversion[1])]
3435

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

sigc++/meson.build

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

33
# Input: sigcxx_build_dep, sigcxx_pcname, sigcxx_libversion, sigcxx_api_version,
4-
# install_includedir, sig_rc
4+
# darwin_versions, install_includedir, sig_rc
55
# Output: source_h_files, sigcxx_dep
66

77
# There are no built source files in libsigc++-3.0.
@@ -89,6 +89,7 @@ sigcxx_library = library('sigc-' + sigcxx_api_version,
8989
source_cc_files,
9090
extra_sigc_objects,
9191
version: sigcxx_libversion,
92+
darwin_versions: darwin_versions,
9293
include_directories: extra_include_dirs,
9394
cpp_args: extra_sigc_cppflags,
9495
dependencies: sigcxx_build_dep,

0 commit comments

Comments
 (0)