diff options
author | Alex Richardson <Alexander.Richardson@cl.cam.ac.uk> | 2021-07-01 12:49:19 +0100 |
---|---|---|
committer | David Faure <faure@kde.org> | 2021-12-12 18:41:36 +0000 |
commit | 755ce69b94e900f961af4c0a8c3869456bf9c0cd (patch) | |
tree | 63c8f69a1ee6a27ec5ad153f18d9bdccaca68368 /meson.build | |
parent | c5cf38e47bc8ea7459a64aa576121e5a0e4efa79 (diff) | |
download | shared-mime-info-755ce69b94e900f961af4c0a8c3869456bf9c0cd.tar.gz |
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.
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 13 |
1 files changed, 7 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( |