From 1f4d2433e73a0a6d4e2a180de407970d983309db Mon Sep 17 00:00:00 2001 From: Scott D Phillips Date: Wed, 7 Feb 2018 16:55:24 -0800 Subject: meson: Add build option for tools Add a build option to control building some of the misc tools we have. Also set the executables to install, presumably you want that if you're asking for the build. v2: set 'install:' to the with_tools value, not true (Jordan) handle 'all' in a the comma list (Dylan) Add freedreno's tools (Dylan) Reviewed-by: Eric Anholt Reviewed-by: Jordan Justen Reviewed-by: Eric Engestrom Reviewed-by: Dylan Baker --- src/compiler/meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/compiler/meson.build') diff --git a/src/compiler/meson.build b/src/compiler/meson.build index d86bdde61d8..e955e66f811 100644 --- a/src/compiler/meson.build +++ b/src/compiler/meson.build @@ -62,7 +62,8 @@ spirv2nir = executable( include_directories : [inc_common, inc_nir, include_directories('spirv')], link_with : libmesa_util, c_args : [c_vis_args, c_msvc_compat_args, no_override_init_args], - build_by_default : false, + build_by_default : with_tools.contains('nir'), + install : with_tools.contains('nir'), ) subdir('glsl') -- cgit v1.2.3