diff --git a/sys/meson.build b/sys/meson.build index aee8fd87fa..101dc46222 100644 --- a/sys/meson.build +++ b/sys/meson.build @@ -16,7 +16,7 @@ subdir('kms') subdir('msdk') #subdir('nvenc') #subdir('opensles') -#subdir('shm') +subdir('shm') subdir('uvch264') #subdir('vcd') #subdir('vdpau') diff --git a/sys/shm/meson.build b/sys/shm/meson.build new file mode 100644 index 0000000000..2eba578c09 --- /dev/null +++ b/sys/shm/meson.build @@ -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