mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 20:58:04 +02:00
gallium: Do not create pipe-loader version scripts for disabled drivers
They are not going to be used without shared library to build.
Fixes: 667de678a0 ("gallium: Fix undefined symbols in version scripts")
Signed-off-by: Janne Grunau <j@jannau.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26273>
This commit is contained in:
parent
b2da38413f
commit
2091515a70
1 changed files with 19 additions and 17 deletions
|
|
@ -63,6 +63,10 @@ pipe_loaders = [
|
|||
]
|
||||
|
||||
foreach x : pipe_loaders
|
||||
if not x[0]
|
||||
continue
|
||||
endif
|
||||
|
||||
pipe_sym_config = configuration_data()
|
||||
|
||||
foreach d : [[x[1] in ['r300', 'r600', 'radeonsi'], 'radeon_drm_winsys_create'],
|
||||
|
|
@ -88,21 +92,19 @@ foreach x : pipe_loaders
|
|||
cur_pipe_loader_link_deps += pipe_sym
|
||||
endif
|
||||
|
||||
if x[0]
|
||||
shared_library(
|
||||
'pipe_@0@'.format(x[1]),
|
||||
'pipe_@0@.c'.format(x[1]),
|
||||
c_args : [pipe_loader_comp_args, '-DPIPE_LOADER_DYNAMIC=1'],
|
||||
cpp_args : [pipe_loader_comp_args],
|
||||
gnu_symbol_visibility : 'hidden',
|
||||
link_args : cur_pipe_loader_link_args,
|
||||
link_depends : cur_pipe_loader_link_deps,
|
||||
include_directories : pipe_loader_incs,
|
||||
link_with : [pipe_loader_link_with, x[3]],
|
||||
dependencies : [idep_mesautil, idep_nir, dep_thread, x[2]],
|
||||
name_prefix : '',
|
||||
install : true,
|
||||
install_dir : pipe_loader_install_dir,
|
||||
)
|
||||
endif
|
||||
shared_library(
|
||||
'pipe_@0@'.format(x[1]),
|
||||
'pipe_@0@.c'.format(x[1]),
|
||||
c_args : [pipe_loader_comp_args, '-DPIPE_LOADER_DYNAMIC=1'],
|
||||
cpp_args : [pipe_loader_comp_args],
|
||||
gnu_symbol_visibility : 'hidden',
|
||||
link_args : cur_pipe_loader_link_args,
|
||||
link_depends : cur_pipe_loader_link_deps,
|
||||
include_directories : pipe_loader_incs,
|
||||
link_with : [pipe_loader_link_with, x[3]],
|
||||
dependencies : [idep_mesautil, idep_nir, dep_thread, x[2]],
|
||||
name_prefix : '',
|
||||
install : true,
|
||||
install_dir : pipe_loader_install_dir,
|
||||
)
|
||||
endforeach
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue