meson: Don't try to install dri drivers unless one is built
authorDylan Baker <dylan@pnwbakers.com>
Mon, 9 Oct 2017 23:34:03 +0000 (16:34 -0700)
committerDylan Baker <dylan@pnwbakers.com>
Mon, 16 Oct 2017 23:32:43 +0000 (16:32 -0700)
This confused the with_dri flag which is meant to control Direct
Rendering Infrastructure, not classic drivers

Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/meson.build

index 63cfcce83991e2bc2603b253b0ecadbadc2c3ccf..36079324d4160964dc3a69ea35682dd7249fa205 100644 (file)
@@ -32,7 +32,7 @@ if with_dri_i965
   subdir('i965')
 endif
 
-if with_dri
+if dri_drivers != []
   libmesa_dri_drivers = shared_library(
     'mesa_dri_drivers',
     dummy_cpp,  # see meson #2180