gstreamer/sys/shm/meson.build

32 lines
640 B
Meson
Raw Normal View History

2017-06-21 17:45:04 +00:00
shm_sources = [
'shmpipe.c',
'shmalloc.c',
'gstshm.c',
'gstshmsrc.c',
'gstshmsink.c',
]
2017-06-21 19:15:37 +00:00
shm_enabled = false
shm_deps = []
2017-06-21 17:45:04 +00:00
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())
2017-06-21 19:15:37 +00:00
shm_enabled = true
shm_deps = [gstbase_dep]
2017-06-21 17:45:04 +00:00
if rt_dep.found()
2017-06-21 19:15:37 +00:00
shm_deps += [rt_dep]
2017-06-21 17:45:04 +00:00
endif
gstshm = library('gstshm',
shm_sources,
c_args : gst_plugins_bad_args + ['-DSHM_PIPE_USE_GLIB'],
include_directories : [configinc],
2017-06-21 19:15:37 +00:00
dependencies : shm_deps,
2017-06-21 17:45:04 +00:00
install : true,
install_dir : plugins_install_dir,
)
endif