mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
meson: adds post meson setup/--reconfigure summary for auto features
As suggested by George Kiagiadakis, adds calls to summary() function for each feature that is by default set to auto, so that an overview of their effective state is printed at the end of meson setup or meson --reconfigure command. Currently ordering is a bit messy but tidying it up would detach the summary() functions from the dependencies they rely on and could be done later along with meson_options.txt re-ordering so that the two match as much as possible.
This commit is contained in:
parent
243d534476
commit
71d39e90ed
6 changed files with 34 additions and 1 deletions
17
meson.build
17
meson.build
|
|
@ -288,6 +288,8 @@ endif
|
|||
|
||||
systemd = dependency('systemd', required: get_option('systemd'))
|
||||
systemd_dep = dependency('libsystemd',required: get_option('systemd'))
|
||||
summary({'systemd conf data': systemd.found()}, bool_yn: true)
|
||||
summary({'libsystemd': systemd_dep.found()}, bool_yn: true)
|
||||
if systemd.found() and systemd_dep.found()
|
||||
cdata.set('HAVE_SYSTEMD', 1)
|
||||
endif
|
||||
|
|
@ -317,12 +319,18 @@ dl_lib = cc.find_library('dl', required : false)
|
|||
pthread_lib = dependency('threads')
|
||||
dbus_dep = dependency('dbus-1')
|
||||
sdl_dep = dependency('sdl2', required : get_option('sdl2'))
|
||||
summary({'SDL 2': sdl_dep.found()}, bool_yn: true, section: 'Misc dependencies')
|
||||
ncurses_dep = dependency('ncursesw', required : false)
|
||||
sndfile_dep = dependency('sndfile', version : '>= 1.0.20', required : get_option('sndfile'))
|
||||
summary({'sndfile': sndfile_dep.found()}, bool_yn: true, section: 'pw-cat/pw-play/pw-dump tool')
|
||||
pulseaudio_dep = dependency('libpulse', required : get_option('libpulse'))
|
||||
summary({'libpulse': pulseaudio_dep.found()}, bool_yn: true, section: 'Streaming between daemons')
|
||||
avahi_dep = dependency('avahi-client', required : get_option('avahi'))
|
||||
summary({'Avahi DNS-SD (Zeroconf)': avahi_dep.found()}, bool_yn: true,
|
||||
section: 'Streaming between daemons')
|
||||
|
||||
libusb_dep = dependency('libusb-1.0', required : get_option('libusb'))
|
||||
summary({'libusb (Bluetooth quirks)': libusb_dep.found()}, bool_yn: true, section: 'Backend')
|
||||
if libusb_dep.found()
|
||||
cdata.set('HAVE_LIBUSB', 1)
|
||||
endif
|
||||
|
|
@ -349,7 +357,9 @@ gst_deps_def = {
|
|||
gst_dep = []
|
||||
foreach depname, kwargs: gst_deps_def
|
||||
dep = dependency(depname, required: gst_option, kwargs: kwargs)
|
||||
summary({depname: dep.found()}, bool_yn: true, section: 'GStreamer modules')
|
||||
if not dep.found()
|
||||
# Beware, there's logic below depending on the array clear here!
|
||||
gst_dep = []
|
||||
if get_option('gstreamer-device-provider').enabled()
|
||||
error('`gstreamer-device-provider` is enabled but `@0@` was not found.'.format(depname))
|
||||
|
|
@ -359,6 +369,10 @@ foreach depname, kwargs: gst_deps_def
|
|||
gst_dep += [dep]
|
||||
endforeach
|
||||
|
||||
# This code relies on the array being empty if any dependency was not found
|
||||
gst_dp_found = gst_dep.length() > 0
|
||||
summary({'gstreamer-device-provider': gst_dp_found}, bool_yn: true, section: 'Backend')
|
||||
|
||||
if not get_option('gstreamer-device-provider').disabled()
|
||||
cdata.set('HAVE_GSTREAMER_DEVICE_PROVIDER', 1)
|
||||
endif
|
||||
|
|
@ -366,6 +380,7 @@ endif
|
|||
webrtc_dep = dependency('webrtc-audio-processing',
|
||||
version : ['>= 0.2', '< 1.0'],
|
||||
required : get_option('echo-cancel-webrtc'))
|
||||
summary({'WebRTC Echo Canceling': webrtc_dep.found()}, bool_yn: true, section: 'Misc dependencies')
|
||||
|
||||
if webrtc_dep.found()
|
||||
cdata.set('HAVE_WEBRTC', 1)
|
||||
|
|
@ -384,6 +399,7 @@ libinotify_dep = (build_machine.system() == 'freebsd'
|
|||
libintl_dep = cc.find_library('intl', required: false)
|
||||
|
||||
alsa_dep = dependency('alsa', version : '>=1.1.7', required: get_option('pipewire-alsa'))
|
||||
summary({'pipewire-alsa': alsa_dep.found()}, bool_yn: true)
|
||||
|
||||
installed_tests_metadir = pipewire_datadir / 'installed-tests' / pipewire_name
|
||||
installed_tests_execdir = pipewire_libexecdir / 'installed-tests' / pipewire_name
|
||||
|
|
@ -421,6 +437,7 @@ if doxygen.found()
|
|||
endif
|
||||
|
||||
xmltoman = find_program('xmltoman', required : get_option('man'))
|
||||
summary({'Manpage generation': xmltoman.found()}, bool_yn: true)
|
||||
if xmltoman.found()
|
||||
subdir('man')
|
||||
endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue