diff options
author | Petri Latvala <petri.latvala@intel.com> | 2018-06-21 14:06:25 +0300 |
---|---|---|
committer | Arkadiusz Hiler <arkadiusz.hiler@intel.com> | 2018-06-25 10:09:49 +0300 |
commit | 0e98bf69f146eb72fe3a7c3b19a049b5786f0ca3 (patch) | |
tree | 2591f985145975a7da5f521ff077e0c69571ea8d /meson_options.txt | |
parent | 9bbfbb1ce314578f18efe73b2cd74e877eb999fb (diff) |
meson: Add options to control optional parts
Distributions want explicit control over optional parts so they can
state runtime dependencies before building. Let's restore the
functionality autotools used to provide.
Where possible, the selection is done by choosing whether to build a
particular item and the option name is build_$item. Example:
build_overlay. Where not possible, the option name is
with_$item. Example: with_valgrind.
Array options require a bump of required meson version to 0.44. Debian
stable has meson 0.37 which is already too old, stable-backports has
0.45, CI uses 0.45. Mesa's meson requirement is 0.44.1, for a
perspective.
Note, the old hack for not building docs when cross-compiling is
gone, as doc building can be explicitly controlled now.
v2: glib not optional
v3: bump meson version to 0.44
Signed-off-by: Petri Latvala <petri.latvala@intel.com>
Cc: Matt Turner <mattst88@gmail.com>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: Eric Anholt <eric@anholt.net>
Cc: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'meson_options.txt')
-rw-r--r-- | meson_options.txt | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/meson_options.txt b/meson_options.txt index 41be35e0..05e63463 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -1,3 +1,57 @@ +option('build_overlay', + type : 'combo', + value : 'auto', + choices : ['auto', 'true', 'false'], + description : 'Build overlay') + +option('overlay_backends', + type : 'array', + value : ['auto'], + choices : [ 'auto', 'x', 'xv' ], + description : 'Overlay backends to enable') + +option('build_audio', + type : 'combo', + value : 'auto', + choices : ['auto', 'true', 'false'], + description : 'Build audio test') + +option('build_chamelium', + type : 'combo', + value : 'auto', + choices : ['auto', 'true', 'false'], + description : 'Build chamelium test') + +option('with_valgrind', + type : 'combo', + value : 'auto', + choices : ['auto', 'true', 'false'], + description : 'Build with support for valgrind annotations') + +option('build_man', + type : 'combo', + value : 'auto', + choices : ['auto', 'true', 'false'], + description : 'Build man pages') + +option('build_docs', + type : 'combo', + value : 'auto', + choices : ['auto', 'true', 'false'], + description : 'Build documentation') + +option('build_tests', + type : 'combo', + value : 'auto', + choices : ['auto', 'true', 'false'], + description : 'Build tests') + +option('with_libdrm', + type : 'array', + value : ['auto'], + choices : ['', 'auto', 'intel', 'nouveau', 'amdgpu'], + description : 'libdrm libraries to be used') + option('use_rpath', type : 'boolean', value : false, |