mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-08 13:30:08 -05:00
Since meson 0.59.0, a feature object has an `allowed()` method which returns true when the feature is set to 'enabled' or 'auto'. Utilize that instead of the previously used not feature.disabled()
33 lines
791 B
Meson
33 lines
791 B
Meson
pipewire_gst_sources = [
|
|
'gstpipewire.c',
|
|
'gstpipewirecore.c',
|
|
'gstpipewireclock.c',
|
|
'gstpipewireformat.c',
|
|
'gstpipewirepool.c',
|
|
'gstpipewiresink.c',
|
|
'gstpipewiresrc.c',
|
|
]
|
|
|
|
if get_option('gstreamer-device-provider').allowed()
|
|
pipewire_gst_sources += [ 'gstpipewiredeviceprovider.c' ]
|
|
endif
|
|
|
|
pipewire_gst_headers = [
|
|
'gstpipewireclock.h',
|
|
'gstpipewirecore.h',
|
|
'gstpipewiredeviceprovider.h',
|
|
'gstpipewireformat.h',
|
|
'gstpipewirepool.h',
|
|
'gstpipewiresink.h',
|
|
'gstpipewiresrc.h',
|
|
]
|
|
|
|
pipewire_gst = shared_library('gstpipewire',
|
|
pipewire_gst_sources,
|
|
include_directories : [ configinc ],
|
|
dependencies : [ spa_dep, gst_dep, pipewire_dep ],
|
|
install : true,
|
|
install_dir : '@0@/gstreamer-1.0'.format(get_option('libdir')),
|
|
)
|
|
|
|
plugins = [pipewire_gst]
|