meson: Enable building shm plugin

This commit is contained in:
Nicolas Dufresne 2017-06-21 13:45:04 -04:00
parent 809d313493
commit af338de2b8
2 changed files with 29 additions and 1 deletions

View file

@ -16,7 +16,7 @@ subdir('kms')
subdir('msdk') subdir('msdk')
#subdir('nvenc') #subdir('nvenc')
#subdir('opensles') #subdir('opensles')
#subdir('shm') subdir('shm')
subdir('uvch264') subdir('uvch264')
#subdir('vcd') #subdir('vcd')
#subdir('vdpau') #subdir('vdpau')

28
sys/shm/meson.build Normal file
View 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