• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1webrtc_sources = [
2  'gstwebrtc.c',
3  'gstwebrtcice.c',
4  'gstwebrtcstats.c',
5  'icestream.c',
6  'nicetransport.c',
7  'webrtcsctptransport.c',
8  'gstwebrtcbin.c',
9  'transportreceivebin.c',
10  'transportsendbin.c',
11  'transportstream.c',
12  'utils.c',
13  'webrtcsdp.c',
14  'webrtctransceiver.c',
15  'webrtcdatachannel.c',
16]
17
18libnice_dep = dependency('nice', version : '>=0.1.17', required : get_option('webrtc'),
19                         fallback : ['libnice', 'libnice_dep'],
20                         default_options: ['tests=disabled'])
21
22if libnice_dep.found()
23  gstwebrtc_plugin = library('gstwebrtc',
24    webrtc_sources,
25    c_args : gst_plugins_bad_args + ['-DGST_USE_UNSTABLE_API'],
26    include_directories : [configinc],
27    dependencies : [gio_dep, libnice_dep, gstbase_dep, gstsdp_dep,
28                    gstapp_dep, gstwebrtc_dep, gstsctp_dep, gstrtp_dep],
29    install : true,
30    install_dir : plugins_install_dir,
31  )
32  pkgconfig.generate(gstwebrtc_plugin, install_dir : plugins_pkgconfig_install_dir)
33  plugins += [gstwebrtc_plugin]
34endif
35