Commit 90d029b1 authored by Alexander Richardson's avatar Alexander Richardson
Browse files

Add a build-tools option to allow installing only the mime data

When set to false this allows installing only the data files but not
the update-mime-database program. This is useful for me since I am
cross-compiling for an architecture that does not have a working glib-2.0
port yet.
parent 47ca1dc5
Pipeline #351411 passed with stage
in 2 minutes and 26 seconds
......@@ -57,14 +57,15 @@ foreach function : check_functions
endforeach
libxml = dependency('libxml-2.0', version: '>=2.4')
glib2 = dependency('glib-2.0', version: '>=2.6.0')
gio = dependency('gio-2.0', required: false)
subdir('po')
subdir('data')
subdir('src')
if get_option('build-tools')
libxml = dependency('libxml-2.0', version: '>=2.4')
glib2 = dependency('glib-2.0', version: '>=2.6.0')
gio = dependency('gio-2.0', required: false)
subdir('src')
endif
subdir('tests')
configure_file(
......
......@@ -3,6 +3,10 @@ option('update-mimedb', type: 'boolean', value: false,
description: 'Call update-mime-database after install. It should not be enabled if DESTDIR is used.',
)
option('build-tools', type: 'boolean', value: true,
description: 'Build the update-mime-database tools. If set to false only the mime data is installed.',
)
option('xdgmime-path', type: 'string', value: './xdgmime',
description: 'Path to the xdgmime executable',
)
Supports Markdown
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