meson: Guard freedreno build with with_gallium_freedreno.
authorRob Clark <robdclark@gmail.com>
Sat, 11 Nov 2017 01:09:01 +0000 (17:09 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 11 Nov 2017 01:11:48 +0000 (17:11 -0800)
This prevents build failures when libdrm_freedreno is unavailable,
which started happening after the ir3_compiler build was enabled.

(Patch by Rob, commit message by Ken).

Fixes: fecd04a66ae ("freedreno/ir3: fix standalone compiler meson build")
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/gallium/meson.build

index 31884f5b72ef401df4876fd21cdeff35e3c63455..c5772b36cb60224dd1ebb2df1c87a271b82de4ab 100644 (file)
@@ -30,7 +30,9 @@ subdir('drivers/rbug')
 subdir('drivers/radeon')
 subdir('drivers/radeonsi')
 subdir('drivers/nouveau')
-subdir('drivers/freedreno')
+if with_gallium_freedreno
+  subdir('drivers/freedreno')
+endif
 subdir('drivers/softpipe')
 if with_gallium_vc4
   subdir('drivers/vc4')