meson: Allow building without compton compat.

This commit is contained in:
orbea 2020-05-28 07:03:33 -07:00
parent 0b377537ec
commit b74f9d7616
2 changed files with 11 additions and 6 deletions

View File

@ -70,11 +70,14 @@ subdir('src')
subdir('man')
install_data('bin/picom-trans', install_dir: get_option('bindir'))
install_data('compton.desktop', install_dir: 'share/applications')
install_data('picom.desktop', install_dir: 'share/applications')
if get_option('compton')
install_data('compton.desktop', install_dir: 'share/applications')
install_data('media/icons/48x48/compton.png',
install_dir: 'share/icons/hicolor/48x48/apps')
install_data('media/compton.svg',
install_dir: 'share/icons/hicolor/scalable/apps')
meson.add_install_script('meson/install.sh')
endif

View File

@ -9,6 +9,8 @@ option('dbus', type: 'boolean', value: true, description: 'Enable support for D-
option('xrescheck', type: 'boolean', value: false, description: 'Enable X resource leak checker (for debug only)')
option('compton', type: 'boolean', value: true, description: 'Install backwards compat with compton')
option('with_docs', type: 'boolean', value: false, description: 'Build documentation and man pages')
option('modularize', type: 'boolean', value: false, description: 'Build with clang\'s module system')