Commit 64cc3b85 authored by Andrea Azzarone's avatar Andrea Azzarone 🚴

build: Reintroduce enable-gvfs-metadata option

Gedit used to have an enable-gvfs-metadata to enable using gvfs to store
metadata. This option was removed with the port to meson. Reintroduce it and set
the default to 'auto' (defaults to 'yes' when running in linux, to 'no'

Closes: #141
parent 6ad43c60
Pipeline #74945 passed with stage
in 6 minutes and 26 seconds
......@@ -119,6 +119,17 @@ config_h.set_quoted('LIBDIR', libdir)
config_h.set_quoted('DATADIR', datadir)
config_h.set_quoted('VERSION', version)
enable_gvfs_metadata = get_option('enable-gvfs-metadata')
if enable_gvfs_metadata == 'yes' or (enable_gvfs_metadata == 'auto' and host_machine.system() == 'linux')
enable_gvfs_metadata = true
enable_gvfs_metadata = false
if enable_gvfs_metadata
config_h.set('ENABLE_GVFS_METADATA', 1)
config_h.set('GEDIT_MAJOR_VERSION', version_major)
config_h.set('GEDIT_MINOR_VERSION', version_minor)
config_h.set('GEDIT_MICRO_VERSION', version_micro)
......@@ -178,6 +189,7 @@ summary = [
' Introspection: @0@'.format(generate_gir),
' Plugins: @0@'.format(build_plugins),
' Vala API: @0@'.format(generate_vapi),
' Gvfs metadata: @0@'.format(enable_gvfs_metadata),
' prefix: @0@'.format(prefix),
......@@ -12,3 +12,7 @@ option('plugins',
type: 'boolean', value: false,
description: 'Build reference manual (requires gtk-doc)')
type: 'combo', choices : ['yes', 'no', 'auto'], value : 'auto',
description: 'Enable using gvfs to store metadata')
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