• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1ipcpipeline_sources = [
2  'gstipcpipeline.c',
3  'gstipcpipelinecomm.c',
4  'gstipcpipelinesink.c',
5  'gstipcpipelinesrc.c',
6  'gstipcslavepipeline.c'
7]
8
9if get_option('ipcpipeline').disabled()
10  subdir_done()
11endif
12
13have_socket_h = cc.has_header('sys/socket.h')
14if not have_socket_h and get_option('ipcpipeline').enabled()
15  error('ipcpipeline plugin enabled but socket.h not found')
16endif
17have_pipe = cc.has_function('pipe')
18if not have_pipe and get_option('ipcpipeline').enabled()
19  error('ipcpipeline plugin enabled but pipe() not found')
20endif
21have_socketpair = cc.has_function('socketpair')
22if not have_socketpair and get_option('ipcpipeline').enabled()
23  error('ipcpipeline plugin enabled but socketpair() not found')
24endif
25
26build_ipcpipeline = have_socket_h and have_pipe and have_socketpair
27if build_ipcpipeline
28  gstipcpipeline = library('gstipcpipeline',
29    ipcpipeline_sources,
30    c_args : gst_plugins_bad_args,
31    include_directories : [configinc],
32    dependencies : [gstbase_dep],
33    install : true,
34    install_dir : plugins_install_dir,
35  )
36  pkgconfig.generate(gstipcpipeline, install_dir : plugins_pkgconfig_install_dir)
37endif
38