meson: options: Document the options

Re-order the project options and add documentation which will be
presented by 'meson configure'.

This produces the following extra information:

Project options:
  Option        Current Value Possible Values Description
  ------        ------------- --------------- -----------
  documentation true          [true, false]   Generate the project documentation
  tests         true          [true, false]   Compile and include the tests

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
Kieran Bingham 2019-03-22 09:31:46 +00:00
parent 4635df7006
commit abda899fa9

View file

@ -1,2 +1,7 @@
option('tests', type : 'boolean')
option('documentation', type : 'boolean')
option('documentation',
type : 'boolean',
description : 'Generate the project documentation')
option('tests',
type : 'boolean',
description: 'Compile and include the tests')