Skip to content

Commit

Permalink
meson: Allow building without compton compat.
Browse files Browse the repository at this point in the history
  • Loading branch information
orbea committed May 28, 2020
1 parent 0b37753 commit b74f9d7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
15 changes: 9 additions & 6 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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')
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')
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
2 changes: 2 additions & 0 deletions meson_options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit b74f9d7

Please sign in to comment.