mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-28 08:26:14 +01:00
Merge branch 'nirbheek/macos-library-versions' into 'master'
meson: Add macOS libtool versioning for ABI compatibility See merge request GNOME/glib!282
This commit is contained in:
commit
25b7716e0d
@ -797,6 +797,7 @@ libgio = library('gio-2.0',
|
|||||||
objects : internal_objects,
|
objects : internal_objects,
|
||||||
version : library_version,
|
version : library_version,
|
||||||
soversion : soversion,
|
soversion : soversion,
|
||||||
|
darwin_versions : darwin_versions,
|
||||||
install : true,
|
install : true,
|
||||||
include_directories : [configinc, gioinc],
|
include_directories : [configinc, gioinc],
|
||||||
# '$(gio_win32_res_ldflag)',
|
# '$(gio_win32_res_ldflag)',
|
||||||
|
@ -256,6 +256,7 @@ libglib = library('glib-2.0',
|
|||||||
objects : [charset_lib.extract_all_objects()] + gnulib_objects + pcre_objects,
|
objects : [charset_lib.extract_all_objects()] + gnulib_objects + pcre_objects,
|
||||||
version : library_version,
|
version : library_version,
|
||||||
soversion : soversion,
|
soversion : soversion,
|
||||||
|
darwin_versions : darwin_versions,
|
||||||
install : true,
|
install : true,
|
||||||
# intl.lib is not compatible with SAFESEH
|
# intl.lib is not compatible with SAFESEH
|
||||||
link_args : [noseh_link_args, glib_link_flags, win32_ldflags],
|
link_args : [noseh_link_args, glib_link_flags, win32_ldflags],
|
||||||
|
@ -99,6 +99,7 @@ libgmodule = library('gmodule-2.0',
|
|||||||
sources : gmodule_sources,
|
sources : gmodule_sources,
|
||||||
version : library_version,
|
version : library_version,
|
||||||
soversion : soversion,
|
soversion : soversion,
|
||||||
|
darwin_versions : darwin_versions,
|
||||||
install : true,
|
install : true,
|
||||||
include_directories : [configinc, gmoduleinc],
|
include_directories : [configinc, gmoduleinc],
|
||||||
dependencies : [libdl_dep, libglib_dep],
|
dependencies : [libdl_dep, libglib_dep],
|
||||||
|
@ -66,6 +66,7 @@ libgobject = library('gobject-2.0',
|
|||||||
sources : gobject_sources,
|
sources : gobject_sources,
|
||||||
version : library_version,
|
version : library_version,
|
||||||
soversion : soversion,
|
soversion : soversion,
|
||||||
|
darwin_versions : darwin_versions,
|
||||||
install : true,
|
install : true,
|
||||||
include_directories : [configinc],
|
include_directories : [configinc],
|
||||||
dependencies : [libffi_dep, libglib_dep],
|
dependencies : [libffi_dep, libglib_dep],
|
||||||
|
@ -16,6 +16,7 @@ libgthread = library('gthread-2.0',
|
|||||||
sources : gthread_sources,
|
sources : gthread_sources,
|
||||||
version : library_version,
|
version : library_version,
|
||||||
soversion : soversion,
|
soversion : soversion,
|
||||||
|
darwin_versions : darwin_versions,
|
||||||
install : true,
|
install : true,
|
||||||
dependencies : [libglib_dep],
|
dependencies : [libglib_dep],
|
||||||
c_args : ['-DG_LOG_DOMAIN="GThread"' ] + glib_hidden_visibility_args,
|
c_args : ['-DG_LOG_DOMAIN="GThread"' ] + glib_hidden_visibility_args,
|
||||||
|
@ -45,7 +45,9 @@ binary_age = 100 * minor_version + micro_version
|
|||||||
soversion = 0
|
soversion = 0
|
||||||
# Maintain compatibility with previous libtool versioning
|
# Maintain compatibility with previous libtool versioning
|
||||||
# current = minor * 100 + micro
|
# current = minor * 100 + micro
|
||||||
library_version = '@0@.@1@.@2@'.format(soversion, binary_age - interface_age, interface_age)
|
current = binary_age - interface_age
|
||||||
|
library_version = '@0@.@1@.@2@'.format(soversion, current, interface_age)
|
||||||
|
darwin_versions = [current + 1, '@0@.@1@'.format(current + 1, interface_age)]
|
||||||
|
|
||||||
configinc = include_directories('.')
|
configinc = include_directories('.')
|
||||||
glibinc = include_directories('glib')
|
glibinc = include_directories('glib')
|
||||||
|
Loading…
Reference in New Issue
Block a user