mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-29 19:50:40 +00:00
meson: Enable shm unit test
This commit is contained in:
parent
af338de2b8
commit
eab6cd8d6d
2 changed files with 6 additions and 3 deletions
|
@ -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,
|
||||
)
|
||||
|
|
|
@ -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']],
|
||||
|
|
Loading…
Reference in a new issue