build: Add more Meson options for disabling parts of the build

This is all aimed at making it so that sysprof can be built as a
subproject within GLib, with only `libsysprof-capture-4.a` being
produced as output.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
Philip Withnall
2020-07-02 20:05:47 +01:00
parent d6e8d39292
commit e8790bc3d6
4 changed files with 23 additions and 0 deletions

View File

@ -32,3 +32,15 @@ option('help', type: 'boolean')
# Disable use of libunwind
option('libunwind', type: 'boolean')
# Optionally disable the tools (this is mostly only useful for building only
# libsysprof-capture as a subproject)
option('enable_tools', type: 'boolean')
# Optionally disable the tests (this is mostly only useful for building only
# libsysprof-capture as a subproject)
option('enable_tests', type: 'boolean')
# Optionally disable the examples (this is mostly only useful for building only
# libsysprof-capture as a subproject)
option('enable_examples', type: 'boolean')