From eab6cd8d6d15cd0043216dad9af0d1dd52ac0196 Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Wed, 21 Jun 2017 15:15:37 -0400 Subject: [PATCH] meson: Enable shm unit test --- sys/shm/meson.build | 8 +++++--- tests/check/meson.build | 1 + 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sys/shm/meson.build b/sys/shm/meson.build index 2eba578c09..efa916a3a8 100644 --- a/sys/shm/meson.build +++ b/sys/shm/meson.build @@ -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, ) diff --git a/tests/check/meson.build b/tests/check/meson.build index 791193df02..114831f4e1 100644 --- a/tests/check/meson.build +++ b/tests/check/meson.build @@ -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']],