[Mesa-dev] [PATCH v2 05/12] meson: de-tabularize meson_options.txt

Eero Tamminen eero.t.tamminen at intel.com
Fri Oct 6 10:22:56 UTC 2017


Hi,

On 05.10.2017 20:12, Dylan Baker wrote:
> This ends up being unworkable as more options get added, and with
> description wrapped onto a new line it doesn't improve readability
> anyway.
> 
> Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
> ---
>   meson_options.txt | 12 ++++++------
>   1 file changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/meson_options.txt b/meson_options.txt
> index eccd5c10d59..6ca19db3497 100644
> --- a/meson_options.txt
> +++ b/meson_options.txt
> @@ -18,15 +18,15 @@
>   # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
>   # SOFTWARE.
>   
> -option('platforms',      type : 'string',  value : 'x11,wayland',
> +option('platforms', type : 'string', value : 'x11,wayland',
>          description : 'comma separated list of window systems to support. wayland, x11, surfaceless, drm, etc.')
> -option('vulkan-drivers', type : 'string',  value : 'intel,amd',
> +option('vulkan-drivers', type : 'string', value : 'intel,amd',
>          description : 'comma separated list of vulkan drivers to build.')

Would this work visually better like this:

option('platforms',
        type  : 'string',
        value : 'x11,wayland',
        description : 'comma separated list of window systems to 
support. wayland, x11, surfaceless, drm, etc.'
)

option('vulkan-drivers',
        type  : 'string',
        value : 'intel,amd',
        description : 'comma separated list of vulkan drivers to build.'
)

?

	- Eero

> -option('shader-cache',    type : 'boolean', value : true,
> +option('shader-cache', type : 'boolean', value : true,
>          description : 'Build with on-disk shader cache support')
> -option('vulkan-icd-dir', type : 'string',  value : '',
> +option('vulkan-icd-dir', type : 'string', value : '',
>          description : 'Location relative to prefix to put vulkan icds on install. Default: $datadir/vulkan/icd.d')
> -option('valgrind',       type : 'boolean', value : true,
> +option('valgrind', type : 'boolean', value : true,
>          description : 'Build with valgrind support if possible')
> -option('build-tests',    type : 'boolean', value : false,
> +option('build-tests', type : 'boolean', value : false,
>          description : 'Build unit tests. Currently this will build *all* unit tests, which may build more than expected.')
> 



More information about the mesa-dev mailing list