mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
5177f7c7ee
The cross file sets this value, and we use 'ios' in Cerbero.
42 lines
979 B
Meson
42 lines
979 B
Meson
shm_sources = [
|
|
'shmpipe.c',
|
|
'shmalloc.c',
|
|
'gstshm.c',
|
|
'gstshmsrc.c',
|
|
'gstshmsink.c',
|
|
]
|
|
|
|
if get_option('shm').disabled()
|
|
subdir_done()
|
|
endif
|
|
|
|
shm_deps = []
|
|
if ['darwin', 'ios'].contains(host_system) or host_system.endswith('bsd')
|
|
rt_dep = []
|
|
shm_enabled = true
|
|
else
|
|
rt_dep = cc.find_library ('rt', required: false)
|
|
shm_enabled = rt_dep.found()
|
|
endif
|
|
|
|
if shm_enabled
|
|
shm_enabled = cc.has_header('sys/socket.h')
|
|
elif get_option('shm').enabled()
|
|
error('shm plugin enabled but librt not found')
|
|
endif
|
|
|
|
if not shm_enabled and get_option('shm').enabled()
|
|
error('shm plugin enabled but socket.h not found')
|
|
endif
|
|
|
|
if shm_enabled
|
|
gstshm = library('gstshm',
|
|
shm_sources,
|
|
c_args : gst_plugins_bad_args + ['-DSHM_PIPE_USE_GLIB'],
|
|
include_directories : [configinc],
|
|
dependencies : [gstbase_dep, rt_dep],
|
|
install : true,
|
|
install_dir : plugins_install_dir,
|
|
)
|
|
pkgconfig.generate(gstshm, install_dir : plugins_pkgconfig_install_dir)
|
|
endif
|