meson: don't use build_by_default for specific gallium drivers
authorDylan Baker <dylan@pnwbakers.com>
Fri, 10 Nov 2017 17:17:08 +0000 (09:17 -0800)
committerDylan Baker <dylan@pnwbakers.com>
Mon, 13 Nov 2017 21:43:12 +0000 (13:43 -0800)
commit2bfd34c518134dd656f4f23f3c6c8acb1eeda507
treed7146ef7faafc54e40ca82792d35b46e1c55453f
parent63b6eb9cb92238e7aff71de680c18f5d1d1bcd91
meson: don't use build_by_default for specific gallium drivers

Using build_by_default : false is convenient for dependencies that can
be pulled in by various diverse components of the build system, the
gallium hardware/software drivers and state trackers do not fit that
description. Instead, these should be guarded using the variable that tracks
whether that driver should be enabled.

This leaves a few helper libraries: trace, rbug, etc, and the generic
winsys bits as `build_by_default : false` because there are a large
number of gallium components that pull them in.

v2: - remove build_by_default from winsys convenience libs as well.
v3: - Always put drivers before winsys for consistency

Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
Tested-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> (v1)
Reviewed-by: Eric Anholt <eric@anholt.net>
13 files changed:
src/gallium/drivers/freedreno/meson.build
src/gallium/drivers/llvmpipe/meson.build
src/gallium/drivers/nouveau/meson.build
src/gallium/drivers/radeon/meson.build
src/gallium/drivers/radeonsi/meson.build
src/gallium/drivers/softpipe/meson.build
src/gallium/drivers/vc5/meson.build
src/gallium/meson.build
src/gallium/state_trackers/dri/meson.build
src/gallium/winsys/amdgpu/drm/meson.build
src/gallium/winsys/freedreno/drm/meson.build
src/gallium/winsys/nouveau/drm/meson.build
src/gallium/winsys/radeon/drm/meson.build