logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git

libdecor-0.1.0_demo_install.patch (1652B)


  1. From 7106f5e32986e2773df8199a194b152a2a2c0cab Mon Sep 17 00:00:00 2001
  2. From: Simon McVittie <smcv@debian.org>
  3. Date: Wed, 11 Aug 2021 13:20:31 +0100
  4. Subject: [PATCH] build: Optionally install the demo programs
  5. This makes it possible to test packages in their "as-installed" state
  6. without relying on having a version of SDL with libdecor support.
  7. Signed-off-by: Simon McVittie <smcv@debian.org>
  8. ---
  9. demo/meson.build | 6 +++---
  10. meson_options.txt | 2 ++
  11. 2 files changed, 5 insertions(+), 3 deletions(-)
  12. diff --git a/demo/meson.build b/demo/meson.build
  13. index 0cadb3f..a65125b 100644
  14. --- a/demo/meson.build
  15. +++ b/demo/meson.build
  16. @@ -47,7 +47,7 @@ executable('libdecor-demo',
  17. wayland_cursor_dep,
  18. cursor_settings_dep,
  19. xkb_dep],
  20. - install: false,
  21. + install: get_option('install_demo'),
  22. )
  23. executable('libdecor-egl',
  24. @@ -59,7 +59,7 @@ executable('libdecor-egl',
  25. egl_dep,
  26. gl_dep,
  27. math_dep],
  28. - install: false,
  29. + install: get_option('install_demo'),
  30. )
  31. executable('libdecor-c++-demo',
  32. @@ -79,5 +79,5 @@ executable('libdecor-c++-demo',
  33. wayland_cursor_dep,
  34. cursor_settings_dep,
  35. xkb_dep],
  36. - install: false,
  37. + install: get_option('install_demo'),
  38. )
  39. diff --git a/meson_options.txt b/meson_options.txt
  40. index 52fa154..b4911da 100644
  41. --- a/meson_options.txt
  42. +++ b/meson_options.txt
  43. @@ -1,3 +1,5 @@
  44. option('demo', type: 'boolean', value: true, description: 'build cairo and EGL client examples')
  45. option('dbus', type: 'feature', value: 'enabled', description: 'use D-Bus to fetch cursor settings')
  46. +
  47. +option('install_demo', type: 'boolean', value: false, description: 'install demo programs')
  48. --
  49. GitLab