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>
This commit is contained in:
@@ -207,7 +207,6 @@ libfreedreno = static_library(
|
||||
c_args : [c_vis_args],
|
||||
cpp_args : [cpp_vis_args],
|
||||
dependencies : [dep_libdrm, dep_libdrm_freedreno],
|
||||
build_by_default : false,
|
||||
)
|
||||
|
||||
ir3_compiler = executable(
|
||||
|
@@ -98,7 +98,6 @@ libllvmpipe = static_library(
|
||||
cpp_args : [cpp_vis_args, cpp_msvc_compat_args],
|
||||
include_directories : [inc_gallium, inc_gallium_aux, inc_include, inc_src],
|
||||
dependencies : dep_llvm,
|
||||
build_by_default : false,
|
||||
)
|
||||
|
||||
if with_tests and with_gallium_softpipe and with_llvm
|
||||
|
@@ -211,7 +211,6 @@ libnouveau = static_library(
|
||||
c_args : [c_vis_args],
|
||||
cpp_args : [cpp_vis_args],
|
||||
dependencies : [dep_libdrm, dep_libdrm_nouveau],
|
||||
build_by_default : false,
|
||||
)
|
||||
|
||||
nouveau_compiler = executable(
|
||||
|
@@ -51,5 +51,4 @@ libradeon = static_library(
|
||||
include_directories : [
|
||||
inc_include, inc_src, inc_gallium, inc_gallium_aux, inc_gallium_drivers,
|
||||
],
|
||||
build_by_default : false,
|
||||
)
|
||||
|
@@ -75,5 +75,4 @@ libradeonsi = static_library(
|
||||
c_args : [c_vis_args],
|
||||
cpp_args : [cpp_vis_args],
|
||||
dependencies : dep_llvm,
|
||||
build_by_default : false,
|
||||
)
|
||||
|
@@ -81,5 +81,4 @@ libsoftpipe = static_library(
|
||||
files_softpipe,
|
||||
include_directories : [inc_gallium_aux, inc_gallium, inc_include, inc_src],
|
||||
c_args : [c_vis_args, c_msvc_compat_args],
|
||||
build_by_default : false,
|
||||
)
|
||||
|
@@ -61,5 +61,4 @@ libvc5 = static_library(
|
||||
c_args : [c_vis_args, v3dv3_c_args],
|
||||
cpp_args : [cpp_vis_args],
|
||||
dependencies : [dep_v3dv3, dep_libdrm, dep_valgrind],
|
||||
build_by_default : false,
|
||||
)
|
||||
|
@@ -27,41 +27,44 @@ subdir('drivers/ddebug')
|
||||
subdir('drivers/noop')
|
||||
subdir('drivers/trace')
|
||||
subdir('drivers/rbug')
|
||||
subdir('drivers/radeon')
|
||||
subdir('drivers/radeonsi')
|
||||
subdir('drivers/nouveau')
|
||||
if with_gallium_freedreno
|
||||
subdir('drivers/freedreno')
|
||||
endif
|
||||
subdir('drivers/softpipe')
|
||||
if with_gallium_vc4
|
||||
subdir('drivers/vc4')
|
||||
endif
|
||||
if with_gallium_vc5
|
||||
subdir('drivers/vc5')
|
||||
endif
|
||||
if with_gallium_etnaviv
|
||||
subdir('drivers/etnaviv')
|
||||
endif
|
||||
subdir('drivers/llvmpipe')
|
||||
subdir('winsys/sw/null')
|
||||
subdir('winsys/sw/dri')
|
||||
subdir('winsys/sw/kms-dri')
|
||||
subdir('winsys/sw/wrapper')
|
||||
if with_gallium_vc4
|
||||
if with_gallium_softpipe
|
||||
subdir('drivers/softpipe')
|
||||
if with_llvm
|
||||
subdir('drivers/llvmpipe')
|
||||
endif
|
||||
endif
|
||||
if with_gallium_radeonsi
|
||||
# TODO: some of these are needed by r300 and r600
|
||||
subdir('drivers/radeon')
|
||||
subdir('drivers/radeonsi')
|
||||
subdir('winsys/radeon/drm')
|
||||
subdir('winsys/amdgpu/drm')
|
||||
endif
|
||||
if with_gallium_nouveau
|
||||
subdir('drivers/nouveau')
|
||||
subdir('winsys/nouveau/drm')
|
||||
endif
|
||||
if with_gallium_freedreno
|
||||
subdir('drivers/freedreno')
|
||||
subdir('winsys/freedreno/drm')
|
||||
endif
|
||||
if with_gallium_pl111
|
||||
subdir('winsys/pl111/drm')
|
||||
endif
|
||||
subdir('winsys/radeon/drm')
|
||||
subdir('winsys/amdgpu/drm')
|
||||
subdir('winsys/nouveau/drm')
|
||||
subdir('winsys/freedreno/drm')
|
||||
if with_gallium_vc4
|
||||
subdir('drivers/vc4')
|
||||
subdir('winsys/vc4/drm')
|
||||
endif
|
||||
if with_gallium_vc5
|
||||
subdir('drivers/vc5')
|
||||
subdir('winsys/vc5/drm')
|
||||
endif
|
||||
if with_gallium_etnaviv
|
||||
subdir('drivers/etnaviv')
|
||||
subdir('winsys/etnaviv/drm')
|
||||
endif
|
||||
if with_gallium_imx
|
||||
|
@@ -53,5 +53,4 @@ libdri = static_library(
|
||||
],
|
||||
c_args : [c_vis_args, libdri_c_args],
|
||||
dependencies : dep_libdrm,
|
||||
build_by_default : false,
|
||||
)
|
||||
|
@@ -32,5 +32,4 @@ libamdgpuwinsys = static_library(
|
||||
cpp_args : [cpp_vis_args],
|
||||
link_with : libamdgpu_addrlib,
|
||||
dependencies : dep_libdrm_amdgpu,
|
||||
build_by_default : false,
|
||||
)
|
||||
|
@@ -26,5 +26,4 @@ libfreedrenowinsys = static_library(
|
||||
],
|
||||
c_args : [c_vis_args],
|
||||
dependencies : [dep_libdrm_freedreno],
|
||||
build_by_default : false,
|
||||
)
|
||||
|
@@ -26,5 +26,4 @@ libnouveauwinsys = static_library(
|
||||
],
|
||||
c_args : [c_vis_args],
|
||||
dependencies : [dep_libdrm_nouveau],
|
||||
build_by_default : false,
|
||||
)
|
||||
|
@@ -26,5 +26,4 @@ libradeonwinsys = static_library(
|
||||
include_directories : [inc_src, inc_include, inc_gallium, inc_gallium_aux],
|
||||
c_args : [c_vis_args],
|
||||
dependencies : [dep_libdrm_radeon],
|
||||
build_by_default : false,
|
||||
)
|
||||
|
Reference in New Issue
Block a user