mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
make gstreamer elements optional
This commit is contained in:
parent
7204f3e047
commit
7a7c011b00
3 changed files with 26 additions and 14 deletions
31
meson.build
31
meson.build
|
|
@ -137,21 +137,14 @@ configure_file(input : 'Makefile.in',
|
||||||
configuration : makedata)
|
configuration : makedata)
|
||||||
|
|
||||||
# Find dependencies
|
# Find dependencies
|
||||||
glib_dep = dependency('glib-2.0', version : '>=2.32.0')
|
mathlib = cc.find_library('m', required : true)
|
||||||
gobject_dep = dependency('gobject-2.0')
|
rt_lib = cc.find_library('rt', required : true) # clock_gettime
|
||||||
gmodule_dep = dependency('gmodule-2.0')
|
dl_lib = cc.find_library('dl', required : true)
|
||||||
gio_dep = [dependency('gio-2.0'), dependency('gio-unix-2.0')]
|
|
||||||
jack_dep = dependency('jack', version : '>= 1.9.10', required : false)
|
|
||||||
mathlib = cc.find_library('m', required : false)
|
|
||||||
rt_lib = cc.find_library('rt', required : false) # clock_gettime
|
|
||||||
dl_lib = cc.find_library('dl', required : false)
|
|
||||||
pthread_lib = cc.find_library('pthread', required : true)
|
pthread_lib = cc.find_library('pthread', required : true)
|
||||||
dbus_dep = dependency('dbus-1')
|
dbus_dep = dependency('dbus-1')
|
||||||
gst_dep = [dependency('gstreamer-1.0'),
|
|
||||||
dependency('gstreamer-plugins-base-1.0'),
|
#optional dependencies
|
||||||
dependency('gstreamer-video-1.0'),
|
jack_dep = dependency('jack', version : '>= 1.9.10', required : false)
|
||||||
dependency('gstreamer-audio-1.0'),
|
|
||||||
dependency('gstreamer-allocators-1.0'),]
|
|
||||||
|
|
||||||
subdir('spa')
|
subdir('spa')
|
||||||
subdir('src')
|
subdir('src')
|
||||||
|
|
@ -170,3 +163,15 @@ if get_option('enable_man')
|
||||||
subdir('man')
|
subdir('man')
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if get_option('enable_gstreamer')
|
||||||
|
glib_dep = dependency('glib-2.0', version : '>=2.32.0')
|
||||||
|
gobject_dep = dependency('gobject-2.0')
|
||||||
|
gmodule_dep = dependency('gmodule-2.0')
|
||||||
|
gio_dep = [dependency('gio-2.0'), dependency('gio-unix-2.0')]
|
||||||
|
gst_dep = [dependency('gstreamer-1.0'),
|
||||||
|
dependency('gstreamer-plugins-base-1.0'),
|
||||||
|
dependency('gstreamer-video-1.0'),
|
||||||
|
dependency('gstreamer-audio-1.0'),
|
||||||
|
dependency('gstreamer-allocators-1.0'),]
|
||||||
|
endif
|
||||||
|
|
|
||||||
|
|
@ -6,3 +6,7 @@ option('enable_man',
|
||||||
description: 'Build manpages',
|
description: 'Build manpages',
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
value: false)
|
value: false)
|
||||||
|
option('enable_gstreamer',
|
||||||
|
description: 'Build GStreamer plugins',
|
||||||
|
type: 'boolean',
|
||||||
|
value: false)
|
||||||
|
|
|
||||||
|
|
@ -4,5 +4,8 @@ subdir('extensions')
|
||||||
subdir('daemon')
|
subdir('daemon')
|
||||||
subdir('tools')
|
subdir('tools')
|
||||||
subdir('modules')
|
subdir('modules')
|
||||||
subdir('gst')
|
|
||||||
subdir('examples')
|
subdir('examples')
|
||||||
|
|
||||||
|
if get_option('enable_gstreamer')
|
||||||
|
subdir('gst')
|
||||||
|
endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue