12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- From b74f9d7616641fed35cd8475accdfdc26e64e901 Mon Sep 17 00:00:00 2001
- From: orbea <orbea@riseup.net>
- Date: Thu, 28 May 2020 07:03:33 -0700
- Subject: [PATCH] meson: Allow building without compton compat.
- ---
- meson.build | 15 +++++++++------
- meson_options.txt | 2 ++
- 2 files changed, 11 insertions(+), 6 deletions(-)
- diff --git a/meson.build b/meson.build
- index 619e219d..c8bdb24e 100644
- --- a/meson.build
- +++ b/meson.build
- @@ -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
- diff --git a/meson_options.txt b/meson_options.txt
- index a53e35a2..9c3b0da1 100644
- --- a/meson_options.txt
- +++ b/meson_options.txt
- @@ -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')
|