Skip to content

Commit

Permalink
Update meson.build
Browse files Browse the repository at this point in the history
Installation fix
  • Loading branch information
Saikatsaha1996 authored Apr 22, 2023
1 parent 7fb4c5e commit e1d7662
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions src/gallium/targets/dri/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -121,23 +121,23 @@ foreach d : [[with_gallium_kmsro, [
endif
endforeach

if meson.version().version_compare('>= 0.58')
# This only works on Unix-like oses, which is probably fine for dri
prog_ln = find_program('ln', required : false)
if prog_ln.found()
devenv.set('LIBGL_DRIVERS_PATH', meson.current_build_dir())

foreach d : gallium_dri_drivers
custom_target(
'devenv_@0@'.format(d),
input : libgallium_dri,
output : d,
command : [prog_ln, '-f', '@INPUT@', '@OUTPUT@'],
build_by_default : true,
)
endforeach
endif
endif


















meson.add_install_script(
install_megadrivers_py.path(),
Expand Down

0 comments on commit e1d7662

Please sign in to comment.