mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
meson: Enable building shm plugin
This commit is contained in:
parent
809d313493
commit
af338de2b8
2 changed files with 29 additions and 1 deletions
|
@ -16,7 +16,7 @@ subdir('kms')
|
|||
subdir('msdk')
|
||||
#subdir('nvenc')
|
||||
#subdir('opensles')
|
||||
#subdir('shm')
|
||||
subdir('shm')
|
||||
subdir('uvch264')
|
||||
#subdir('vcd')
|
||||
#subdir('vdpau')
|
||||
|
|
28
sys/shm/meson.build
Normal file
28
sys/shm/meson.build
Normal file
|
@ -0,0 +1,28 @@
|
|||
shm_sources = [
|
||||
'shmpipe.c',
|
||||
'shmalloc.c',
|
||||
'gstshm.c',
|
||||
'gstshmsrc.c',
|
||||
'gstshmsink.c',
|
||||
]
|
||||
|
||||
rt_dep = cc.find_library ('rt', required: false)
|
||||
|
||||
if cc.has_header ('sys/socket.h') and (host_system == 'osx' or
|
||||
host_system == 'bsd' or rt_dep.found())
|
||||
|
||||
deps = [gstbase_dep]
|
||||
|
||||
if rt_dep.found()
|
||||
deps += [rt_dep]
|
||||
endif
|
||||
|
||||
gstshm = library('gstshm',
|
||||
shm_sources,
|
||||
c_args : gst_plugins_bad_args + ['-DSHM_PIPE_USE_GLIB'],
|
||||
include_directories : [configinc],
|
||||
dependencies : deps,
|
||||
install : true,
|
||||
install_dir : plugins_install_dir,
|
||||
)
|
||||
endif
|
Loading…
Reference in a new issue