Skip to content

Commit b74f9d7

Browse files
committed
meson: Allow building without compton compat.
1 parent 0b37753 commit b74f9d7

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

meson.build

+9-6
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,14 @@ subdir('src')
7070
subdir('man')
7171

7272
install_data('bin/picom-trans', install_dir: get_option('bindir'))
73-
install_data('compton.desktop', install_dir: 'share/applications')
7473
install_data('picom.desktop', install_dir: 'share/applications')
75-
install_data('media/icons/48x48/compton.png',
76-
install_dir: 'share/icons/hicolor/48x48/apps')
77-
install_data('media/compton.svg',
78-
install_dir: 'share/icons/hicolor/scalable/apps')
7974

80-
meson.add_install_script('meson/install.sh')
75+
if get_option('compton')
76+
install_data('compton.desktop', install_dir: 'share/applications')
77+
install_data('media/icons/48x48/compton.png',
78+
install_dir: 'share/icons/hicolor/48x48/apps')
79+
install_data('media/compton.svg',
80+
install_dir: 'share/icons/hicolor/scalable/apps')
81+
82+
meson.add_install_script('meson/install.sh')
83+
endif

meson_options.txt

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ option('dbus', type: 'boolean', value: true, description: 'Enable support for D-
99

1010
option('xrescheck', type: 'boolean', value: false, description: 'Enable X resource leak checker (for debug only)')
1111

12+
option('compton', type: 'boolean', value: true, description: 'Install backwards compat with compton')
13+
1214
option('with_docs', type: 'boolean', value: false, description: 'Build documentation and man pages')
1315

1416
option('modularize', type: 'boolean', value: false, description: 'Build with clang\'s module system')

0 commit comments

Comments
 (0)