pvr: Gate offline compiler build behind -Dtools=imagination

This matches the behavior of e.g. panfrost's bifrost_compiler target.

Signed-off-by: Matt Coster <matt.coster@imgtec.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15284>
This commit is contained in:
Matt Coster 2022-03-07 14:45:51 +00:00
parent 3b6ceea3e6
commit 97c4ce44e9
3 changed files with 6 additions and 2 deletions

View File

@ -84,6 +84,7 @@ if with_tools.contains('all')
'nouveau', 'nouveau',
'xvmc', 'xvmc',
'asahi', 'asahi',
'imagination',
] ]
endif endif

View File

@ -423,7 +423,7 @@ option(
'tools', 'tools',
type : 'array', type : 'array',
value : [], value : [],
choices : ['drm-shim', 'etnaviv', 'freedreno', 'glsl', 'intel', 'intel-ui', 'nir', 'nouveau', 'xvmc', 'lima', 'panfrost', 'asahi', 'all', 'dlclose-skip'], choices : ['drm-shim', 'etnaviv', 'freedreno', 'glsl', 'intel', 'intel-ui', 'nir', 'nouveau', 'xvmc', 'lima', 'panfrost', 'asahi', 'imagination', 'all', 'dlclose-skip'],
description : 'List of tools to build. (Note: `intel-ui` selects `intel`)', description : 'List of tools to build. (Note: `intel-ui` selects `intel`)',
) )
option( option(

View File

@ -19,6 +19,8 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE. # SOFTWARE.
with_imagination_tools = with_tools.contains('imagination')
libpowervr_rogue_files = files( libpowervr_rogue_files = files(
'nir/rogue_nir_constreg.c', 'nir/rogue_nir_constreg.c',
'nir/rogue_nir_lower_io.c', 'nir/rogue_nir_lower_io.c',
@ -73,5 +75,6 @@ rogue_compiler = executable(
inc_gallium_aux, inc_gallium_aux,
inc_compiler, inc_compiler,
], ],
install : false, build_by_default : with_imagination_tools,
install : with_imagination_tools,
) )