pvr: Gate offline compiler build behind -Dtools=imagination
authorMatt Coster <matt.coster@imgtec.com>
Mon, 7 Mar 2022 14:45:51 +0000 (14:45 +0000)
committerMatt Coster <matt.coster@imgtec.com>
Thu, 24 Mar 2022 11:39:39 +0000 (11:39 +0000)
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>

meson.build
meson_options.txt
src/imagination/rogue/meson.build

index 764381c..3258a98 100644 (file)
@@ -84,6 +84,7 @@ if with_tools.contains('all')
     'nouveau',
     'xvmc',
     'asahi',
+    'imagination',
   ]
 endif
 
index 9fe70b1..0bff7ef 100644 (file)
@@ -423,7 +423,7 @@ option(
   'tools',
   type : 'array',
   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`)',
 )
 option(
index 240dfa2..f3f6945 100644 (file)
@@ -19,6 +19,8 @@
 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 # SOFTWARE.
 
+with_imagination_tools = with_tools.contains('imagination')
+
 libpowervr_rogue_files = files(
   'nir/rogue_nir_constreg.c',
   'nir/rogue_nir_lower_io.c',
@@ -73,5 +75,6 @@ rogue_compiler = executable(
     inc_gallium_aux,
     inc_compiler,
   ],
-  install : false,
+  build_by_default : with_imagination_tools,
+  install : with_imagination_tools,
 )