meson: don't build gallium dri target if gallium is disabled
authorDylan Baker <dylan@pnwbakers.com>
Thu, 19 Oct 2017 17:28:37 +0000 (10:28 -0700)
committerDylan Baker <dylan@pnwbakers.com>
Thu, 19 Oct 2017 22:17:34 +0000 (15:17 -0700)
commita447f9fe7b7902db6f91bd4b24adb4ddfad4b10b
tree41869ffd07a6287de56c2424ee987c3af6668ea4
parent087e010b2b3dd83a539f97203909d6c43b5da87c
meson: don't build gallium dri target if gallium is disabled

Otherwise -Dgallium-drivers= will cause libmesa_gallium to be built and
the megadriver install script to attempt to install drivers without any
actual drivers being built.

fixes: 66f97f6640f5316b36177fd1053f0027eb6ec6cc ("meson: build radeonsi")
Reported-by: Rafael Antognolli <rafael.antognolli@intel.com>
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
Tested-by: Rafael Antognolli <rafael.antognolli@intel.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
src/gallium/meson.build