Skip to content

Commit

Permalink
build: Always install lddtree.sh and create symlink to chosen variant
Browse files Browse the repository at this point in the history
Don't install lddtree.py unconditionally because it has additional
dependencies.
  • Loading branch information
chewi committed Aug 27, 2024
1 parent 7836af4 commit a871611
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -116,18 +116,25 @@ executable('scanmacho',
install : true
)

install_data('lddtree.sh',
install_dir : get_option('bindir')
)
lddtree_impl = get_option('lddtree_implementation')
if lddtree_impl != 'none'
if lddtree_impl == 'python'
install_data('lddtree.py',
install_dir : get_option('bindir')
)
suffix = '.py'
else
suffix = '.sh'
endif
install_data('lddtree' + suffix,
rename : 'lddtree',
install_symlink('lddtree',
pointing_to : 'lddtree' + suffix,
install_dir : get_option('bindir')
)
endif

install_data('symtree.sh',
rename : 'symtree',
install_dir : get_option('bindir')
Expand Down

0 comments on commit a871611

Please sign in to comment.