logo

overlay

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

pipewire-0.3.10_pipewire_optionnal.patch (2637B)


  1. commit ae96087dc0141ebdaf463590aba08327abe8f28e
  2. Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
  3. Date: 2020-11-01T03:28:49 GMT
  4. Make DBus an optionnal dependency
  5. diff --git a/meson.build b/meson.build
  6. index adabcccf..893f4c6f 100644
  7. --- a/meson.build
  8. +++ b/meson.build
  9. @@ -290,7 +290,7 @@ mathlib = cc.find_library('m', required : false)
  10. rt_lib = cc.find_library('rt', required : false) # clock_gettime
  11. dl_lib = cc.find_library('dl', required : false)
  12. pthread_lib = dependency('threads')
  13. -dbus_dep = dependency('dbus-1')
  14. +dbus_dep = dependency('dbus-1', required : get_option('dbus'))
  15. sdl_dep = dependency('sdl2', required : false)
  16. sndfile_dep = dependency('sndfile', version : '>= 1.0.20', required : false)
  17. diff --git a/meson_options.txt b/meson_options.txt
  18. index f03033c3..87afbe3b 100644
  19. --- a/meson_options.txt
  20. +++ b/meson_options.txt
  21. @@ -131,3 +131,7 @@ option('pw-cat',
  22. option('udevrulesdir',
  23. type : 'string',
  24. description : 'Directory for udev rules (defaults to /lib/udev/rules.d)')
  25. +option('dbus',
  26. + description: 'Build support for DBus-based interfaces',
  27. + type: 'boolean',
  28. + value: true)
  29. diff --git a/spa/plugins/support/meson.build b/spa/plugins/support/meson.build
  30. index 5db32c89..d78a9dcc 100644
  31. --- a/spa/plugins/support/meson.build
  32. +++ b/spa/plugins/support/meson.build
  33. @@ -31,11 +31,13 @@ if get_option('evl')
  34. install_dir : join_paths(spa_plugindir, 'support'))
  35. endif
  36. -spa_dbus_sources = ['dbus.c']
  37. +if get_option('dbus')
  38. + spa_dbus_sources = ['dbus.c']
  39. -spa_dbus_lib = shared_library('spa-dbus',
  40. - spa_dbus_sources,
  41. - include_directories : [ spa_inc],
  42. - dependencies : [dbus_dep, ],
  43. - install : true,
  44. - install_dir : join_paths(spa_plugindir, 'support'))
  45. + spa_dbus_lib = shared_library('spa-dbus',
  46. + spa_dbus_sources,
  47. + include_directories : [ spa_inc],
  48. + dependencies : [dbus_dep, ],
  49. + install : true,
  50. + install_dir : join_paths(spa_plugindir, 'support'))
  51. +endif
  52. diff --git a/src/examples/meson.build b/src/examples/meson.build
  53. index 6af07bc1..7285c959 100644
  54. --- a/src/examples/meson.build
  55. +++ b/src/examples/meson.build
  56. @@ -65,7 +65,7 @@ executable('export-spa-device',
  57. dependencies : [pipewire_dep, mathlib],
  58. )
  59. -if alsa_dep.found()
  60. +if alsa_dep.found() and dbus_dep.found()
  61. executable('pipewire-media-session',
  62. 'media-session/access-flatpak.c',
  63. 'media-session/access-portal.c',
  64. @@ -91,7 +91,7 @@ if alsa_dep.found()
  65. c_args : [ '-D_GNU_SOURCE' ],
  66. install: true,
  67. dependencies : [dbus_dep, pipewire_dep, alsa_dep, mathlib],
  68. -)
  69. + )
  70. endif
  71. executable('bluez-session',