mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
meson: Use feature options everywhere it makes sense
This commit is contained in:
parent
98bedb3895
commit
485bae5eb0
20 changed files with 211 additions and 224 deletions
|
|
@ -77,9 +77,9 @@ executable('pipewire-pulse',
|
|||
# )
|
||||
#endif
|
||||
|
||||
if get_option('media-session')
|
||||
if not get_option('media-session').disabled()
|
||||
subdir('media-session.d')
|
||||
endif
|
||||
if get_option('systemd') and systemd.found()
|
||||
if systemd.found()
|
||||
subdir('systemd')
|
||||
endif
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
if get_option('systemd-system-service')
|
||||
if not get_option('systemd-system-service').disabled()
|
||||
subdir('system')
|
||||
endif
|
||||
if get_option('systemd-user-service')
|
||||
if not get_option('systemd-user-service').disabled()
|
||||
subdir('user')
|
||||
endif
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ configure_file(input : 'pipewire.service.in',
|
|||
configuration : systemd_config,
|
||||
install_dir : systemd_system_services_dir)
|
||||
|
||||
if get_option('media-session')
|
||||
if not get_option('media-session').disabled()
|
||||
configure_file(input : 'pipewire-media-session.service.in',
|
||||
output : 'pipewire-media-session.service',
|
||||
configuration : systemd_config,
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ configure_file(input : 'pipewire-pulse.service.in',
|
|||
configuration : systemd_config,
|
||||
install_dir : systemd_user_services_dir)
|
||||
|
||||
if get_option('media-session')
|
||||
if not get_option('media-session').disabled()
|
||||
configure_file(input : 'pipewire-media-session.service.in',
|
||||
output : 'pipewire-media-session.service',
|
||||
configuration : systemd_config,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue