• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1avtp_sources = [
2  'gstavtp.c',
3  'gstavtpaafdepay.c',
4  'gstavtpaafpay.c',
5  'gstavtpcvfdepay.c',
6  'gstavtpcvfpay.c',
7  'gstavtpbasedepayload.c',
8  'gstavtpbasepayload.c',
9  'gstavtpsink.c',
10  'gstavtpsrc.c',
11  'gstavtpcrfutil.c',
12  'gstavtpcrfbase.c',
13  'gstavtpcrfsync.c',
14  'gstavtpcrfcheck.c',
15]
16
17avtp_dep = dependency('', required: false)
18avtp_option = get_option('avtp')
19
20if host_machine.system() != 'linux' or not cc.has_type('struct sock_txtime', prefix : '#include <linux/net_tstamp.h>')
21  if avtp_option.enabled()
22    error('avtp plugin enabled but host is not supported')
23  else
24    subdir_done()
25  endif
26endif
27
28avtp_dep = dependency('avtp', required: avtp_option,
29                      fallback: ['avtp', 'avtp_dep'])
30
31if avtp_dep.found()
32  gstavtp = library('gstavtp',
33    avtp_sources,
34    c_args : gst_plugins_bad_args,
35    include_directories : [configinc],
36    dependencies : [gstaudio_dep, gstvideo_dep, avtp_dep, libm],
37    install : true,
38    install_dir : plugins_install_dir,
39  )
40  pkgconfig.generate(gstavtp, install_dir : plugins_pkgconfig_install_dir)
41  plugins += [gstavtp]
42endif
43