mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 16:21:17 +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',
|
'gstshmsink.c',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
shm_enabled = false
|
||||||
rt_dep = cc.find_library ('rt', required: false)
|
rt_dep = cc.find_library ('rt', required: false)
|
||||||
|
|
||||||
if cc.has_header ('sys/socket.h') and (host_system == 'osx' or
|
if cc.has_header ('sys/socket.h') and (host_system == 'osx' or
|
||||||
host_system == 'bsd' or rt_dep.found())
|
host_system == 'bsd' or rt_dep.found())
|
||||||
|
|
||||||
deps = [gstbase_dep]
|
shm_enabled = true
|
||||||
|
shm_deps = [gstbase_dep]
|
||||||
|
|
||||||
if rt_dep.found()
|
if rt_dep.found()
|
||||||
deps += [rt_dep]
|
shm_deps += [rt_dep]
|
||||||
endif
|
endif
|
||||||
|
|
||||||
gstshm = library('gstshm',
|
gstshm = library('gstshm',
|
||||||
shm_sources,
|
shm_sources,
|
||||||
c_args : gst_plugins_bad_args + ['-DSHM_PIPE_USE_GLIB'],
|
c_args : gst_plugins_bad_args + ['-DSHM_PIPE_USE_GLIB'],
|
||||||
include_directories : [configinc],
|
include_directories : [configinc],
|
||||||
dependencies : deps,
|
dependencies : shm_deps,
|
||||||
install : true,
|
install : true,
|
||||||
install_dir : plugins_install_dir,
|
install_dir : plugins_install_dir,
|
||||||
)
|
)
|
||||||
|
|
|
@ -47,6 +47,7 @@ base_tests = [
|
||||||
[['elements/pcapparse.c']],
|
[['elements/pcapparse.c']],
|
||||||
[['elements/pnm.c']],
|
[['elements/pnm.c']],
|
||||||
[['elements/schroenc.c'], not schro_dep.found(), [schro_dep]],
|
[['elements/schroenc.c'], not schro_dep.found(), [schro_dep]],
|
||||||
|
[['elements/shm.c'], not shm_enabled, shm_deps],
|
||||||
[['elements/rtponvifparse.c']],
|
[['elements/rtponvifparse.c']],
|
||||||
[['elements/rtponviftimestamp.c']],
|
[['elements/rtponviftimestamp.c']],
|
||||||
[['elements/videoframe-audiolevel.c']],
|
[['elements/videoframe-audiolevel.c']],
|
||||||
|
|
Loading…
Reference in a new issue