mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
Merge branch 'dab_libmount_auto_detection' into 'master'
meson: libmount autodectection See merge request GNOME/glib!1344
This commit is contained in:
commit
12ee603039
@ -1922,9 +1922,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
|
||||
# pkg-config file below
|
||||
libmount_dep = []
|
||||
if host_system == 'linux' and get_option('libmount')
|
||||
libmount_dep = [dependency('mount', version : '>=2.23', required : true)]
|
||||
glib_conf.set('HAVE_LIBMOUNT', 1)
|
||||
if host_system == 'linux'
|
||||
libmount_dep = dependency('mount', version : '>=2.23', required : get_option('libmount'))
|
||||
glib_conf.set('HAVE_LIBMOUNT', libmount_dep.found())
|
||||
endif
|
||||
|
||||
if host_system == 'windows'
|
||||
|
@ -30,8 +30,8 @@ option('xattr',
|
||||
description : 'build with xattr support')
|
||||
|
||||
option('libmount',
|
||||
type : 'boolean',
|
||||
value : true,
|
||||
type : 'feature',
|
||||
value : 'auto',
|
||||
description : 'build with libmount support')
|
||||
|
||||
option('internal_pcre',
|
||||
|
Loading…
Reference in New Issue
Block a user