summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--meson.build13
-rw-r--r--meson_options.txt4
2 files changed, 11 insertions, 6 deletions
diff --git a/meson.build b/meson.build
index 60f17ae7..8c36f7b8 100644
--- a/meson.build
+++ b/meson.build
@@ -56,14 +56,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(
diff --git a/meson_options.txt b/meson_options.txt
index 9dcf72c0..dbc4162c 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -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',
)