Skip to content

Commit

Permalink
build: install scripts into bindir provided by meson
Browse files Browse the repository at this point in the history
This will use --bindir value to install additional scripts into the same location
as compton binary (current behavior: hardcoded $prefix/bin).
Useful for custom installations and/or cross-compiling.
  • Loading branch information
kapsh committed Jun 23, 2019
1 parent 5a034ea commit 87aafc1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ test_h_dep = subproject('test.h').get_variable('test_h_dep')
subdir('src')
subdir('man')

install_subdir('bin', install_dir: '')
install_data(['bin/compton-convgen.py', 'bin/compton-trans'],
install_dir: get_option('bindir'))
install_data('compton.desktop', install_dir: 'share/applications')
install_data('media/icons/48x48/compton.png',
install_dir: 'share/icons/hicolor/48x48/apps')
Expand Down

0 comments on commit 87aafc1

Please sign in to comment.