compton.patch 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. From b74f9d7616641fed35cd8475accdfdc26e64e901 Mon Sep 17 00:00:00 2001
  2. From: orbea <orbea@riseup.net>
  3. Date: Thu, 28 May 2020 07:03:33 -0700
  4. Subject: [PATCH] meson: Allow building without compton compat.
  5. ---
  6. meson.build | 15 +++++++++------
  7. meson_options.txt | 2 ++
  8. 2 files changed, 11 insertions(+), 6 deletions(-)
  9. diff --git a/meson.build b/meson.build
  10. index 619e219d..c8bdb24e 100644
  11. --- a/meson.build
  12. +++ b/meson.build
  13. @@ -70,11 +70,14 @@ subdir('src')
  14. subdir('man')
  15. install_data('bin/picom-trans', install_dir: get_option('bindir'))
  16. -install_data('compton.desktop', install_dir: 'share/applications')
  17. install_data('picom.desktop', install_dir: 'share/applications')
  18. -install_data('media/icons/48x48/compton.png',
  19. - install_dir: 'share/icons/hicolor/48x48/apps')
  20. -install_data('media/compton.svg',
  21. - install_dir: 'share/icons/hicolor/scalable/apps')
  22. -meson.add_install_script('meson/install.sh')
  23. +if get_option('compton')
  24. + install_data('compton.desktop', install_dir: 'share/applications')
  25. + install_data('media/icons/48x48/compton.png',
  26. + install_dir: 'share/icons/hicolor/48x48/apps')
  27. + install_data('media/compton.svg',
  28. + install_dir: 'share/icons/hicolor/scalable/apps')
  29. +
  30. + meson.add_install_script('meson/install.sh')
  31. +endif
  32. diff --git a/meson_options.txt b/meson_options.txt
  33. index a53e35a2..9c3b0da1 100644
  34. --- a/meson_options.txt
  35. +++ b/meson_options.txt
  36. @@ -9,6 +9,8 @@ option('dbus', type: 'boolean', value: true, description: 'Enable support for D-
  37. option('xrescheck', type: 'boolean', value: false, description: 'Enable X resource leak checker (for debug only)')
  38. +option('compton', type: 'boolean', value: true, description: 'Install backwards compat with compton')
  39. +
  40. option('with_docs', type: 'boolean', value: false, description: 'Build documentation and man pages')
  41. option('modularize', type: 'boolean', value: false, description: 'Build with clang\'s module system')