meson: Rework FFmpeg / tinycompress detection and add pw-cat-ffmpeg option

* Decouple FFmpeg integration in pw-cat from the ffmpeg option; if
  one wants to use Compress-Offload but not the ffmpeg SPA plugin,
  it is then possible to just pass -Dpw-cat-ffmpeg=enabled to meson.
  Likewise, this also makes it possible to build the ffmpeg plugin
  without extending pw-cat.
* tinycompress does not need to be detected in the root meson.build,
  since it is only needed by the alsa plugin.
This commit is contained in:
Carlos Rafael Giani 2022-11-23 16:22:30 +01:00 committed by Wim Taymans
parent e9a2c6aa34
commit 6284cf39c0
4 changed files with 29 additions and 12 deletions

View file

@ -188,6 +188,10 @@ option('pw-cat',
description: 'Build pw-cat/pw-play/pw-record',
type: 'feature',
value: 'auto')
option('pw-cat-ffmpeg',
description: 'Enable FFmpeg integration in pw-cat/pw-play/pw-record',
type: 'feature',
value: 'disabled')
option('udev',
description: 'Enable Udev integration',
type: 'feature',