Commit a70ac3a6 authored by Tom Schoonjans's avatar Tom Schoonjans

build: use proper dylib versioning on macOS

parent 326f1998
......@@ -248,6 +248,7 @@ if cc.get_id() == 'msvc'
else
gtksource_lib = shared_library(package_string, gtksource_res,
version: lib_version,
darwin_versions: lib_osx_version,
include_directories: gtksourceview_include_dirs,
dependencies: gtksource_deps,
link_whole: gtksource_libs,
......
......@@ -21,10 +21,14 @@ version_micro = version_arr[2].to_int()
api_version = '4'
lib_version = '0.0.0'
lib_version_arr = version.split('.')
lib_version_major = version_arr[0].to_int()
lib_version_minor = version_arr[1].to_int()
lib_version_micro = version_arr[2].to_int()
lib_version_arr = lib_version.split('.')
lib_version_major = lib_version_arr[0].to_int()
lib_version_minor = lib_version_arr[1].to_int()
lib_version_micro = lib_version_arr[2].to_int()
osx_current = lib_version_major + 1
lib_osx_version = [osx_current, '@0@.@1@'.format(osx_current, lib_version_minor)]
package_name = meson.project_name()
package_string = '@0@-@1@'.format(package_name, api_version)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment