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 <eric@anholt.net>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
This commit is contained in:
Scott D Phillips
2018-02-07 16:55:24 -08:00
parent 464d057c86
commit 1f4d2433e7
7 changed files with 24 additions and 7 deletions

View File

@@ -230,7 +230,8 @@ glsl_compiler = executable(
dependencies : [dep_clock, dep_thread],
include_directories : [inc_common],
link_with : [libglsl_standalone],
build_by_default : false,
build_by_default : with_tools.contains('glsl'),
install : with_tools.contains('glsl'),
)
glsl_test = executable(
@@ -242,7 +243,8 @@ glsl_test = executable(
include_directories : [inc_common],
dependencies : [dep_clock, dep_thread],
link_with : [libglsl, libglsl_standalone, libglsl_util],
build_by_default : false,
build_by_default : with_tools.contains('glsl'),
install : with_tools.contains('glsl'),
)
if with_tests