build: install scripts into bindir provided by meson

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.
This commit is contained in:
Alexander Kapshuna 2019-06-23 12:17:04 +03:00
parent 5a034ea169
commit 87aafc1738
1 changed files with 2 additions and 1 deletions

View File

@ -66,7 +66,8 @@ test_h_dep = subproject('test.h').get_variable('test_h_dep')
subdir('src') subdir('src')
subdir('man') 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('compton.desktop', install_dir: 'share/applications')
install_data('media/icons/48x48/compton.png', install_data('media/icons/48x48/compton.png',
install_dir: 'share/icons/hicolor/48x48/apps') install_dir: 'share/icons/hicolor/48x48/apps')