mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 07:56:17 +01:00
meson: libmount autodectection
As it can be disabled, it should be automatic as the packahge might be unavailable for a given target.
This commit is contained in:
parent
b3328d77c1
commit
b220033cf0
@ -1923,9 +1923,9 @@ glib_conf.set_quoted('GLIB_LOCALE_DIR', join_paths(glib_datadir, 'locale'))
|
|||||||
# libmount is only used by gio, but we need to fetch the libs to generate the
|
# libmount is only used by gio, but we need to fetch the libs to generate the
|
||||||
# pkg-config file below
|
# pkg-config file below
|
||||||
libmount_dep = []
|
libmount_dep = []
|
||||||
if host_system == 'linux' and get_option('libmount')
|
if host_system == 'linux'
|
||||||
libmount_dep = [dependency('mount', version : '>=2.23', required : true)]
|
libmount_dep = dependency('mount', version : '>=2.23', required : get_option('libmount'))
|
||||||
glib_conf.set('HAVE_LIBMOUNT', 1)
|
glib_conf.set('HAVE_LIBMOUNT', libmount_dep.found())
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if host_system == 'windows'
|
if host_system == 'windows'
|
||||||
|
@ -30,8 +30,8 @@ option('xattr',
|
|||||||
description : 'build with xattr support')
|
description : 'build with xattr support')
|
||||||
|
|
||||||
option('libmount',
|
option('libmount',
|
||||||
type : 'boolean',
|
type : 'feature',
|
||||||
value : true,
|
value : 'auto',
|
||||||
description : 'build with libmount support')
|
description : 'build with libmount support')
|
||||||
|
|
||||||
option('internal_pcre',
|
option('internal_pcre',
|
||||||
|
Loading…
Reference in New Issue
Block a user