meson: Enable shm unit test

This commit is contained in:
Nicolas Dufresne 2017-06-21 15:15:37 -04:00
parent af338de2b8
commit eab6cd8d6d
2 changed files with 6 additions and 3 deletions

View file

@ -6,22 +6,24 @@ shm_sources = [
'gstshmsink.c',
]
shm_enabled = false
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]
shm_enabled = true
shm_deps = [gstbase_dep]
if rt_dep.found()
deps += [rt_dep]
shm_deps += [rt_dep]
endif
gstshm = library('gstshm',
shm_sources,
c_args : gst_plugins_bad_args + ['-DSHM_PIPE_USE_GLIB'],
include_directories : [configinc],
dependencies : deps,
dependencies : shm_deps,
install : true,
install_dir : plugins_install_dir,
)

View file

@ -47,6 +47,7 @@ base_tests = [
[['elements/pcapparse.c']],
[['elements/pnm.c']],
[['elements/schroenc.c'], not schro_dep.found(), [schro_dep]],
[['elements/shm.c'], not shm_enabled, shm_deps],
[['elements/rtponvifparse.c']],
[['elements/rtponviftimestamp.c']],
[['elements/videoframe-audiolevel.c']],