mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-14 16:26:17 +01:00
build: use proper dylib versioning on macOS
This commit is contained in:
parent
ddaa2a9ec3
commit
590421cf14
12
meson.build
12
meson.build
@ -163,6 +163,15 @@ if cc.get_id() != 'msvc'
|
||||
])
|
||||
endif
|
||||
|
||||
lib_version = '1.0.0'
|
||||
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)]
|
||||
|
||||
girepo_lib = shared_library('girepository-1.0',
|
||||
sources: girepo_sources,
|
||||
include_directories : configinc,
|
||||
@ -170,7 +179,8 @@ girepo_lib = shared_library('girepository-1.0',
|
||||
custom_c_args,
|
||||
dependencies: [glib_dep, gobject_dep, gmodule_dep,
|
||||
gio_dep, girepo_internals_dep],
|
||||
version: '1.0.0',
|
||||
version: lib_version,
|
||||
darwin_versions: lib_osx_version,
|
||||
install: true,
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user