File: meson.build

package info (click to toggle)
gst-plugins-bad1.0 1.26.4-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 69,744 kB
  • sloc: ansic: 723,080; cpp: 277,142; objc: 3,556; xml: 3,351; sh: 1,035; python: 473; makefile: 175; java: 75
file content (53 lines) | stat: -rw-r--r-- 1,276 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
webrtc_sources = [
  'gstwebrtc.c',
  'gstwebrtcstats.c',
  'webrtcsctptransport.c',
  'gstwebrtcbin.c',
  'transportreceivebin.c',
  'transportsendbin.c',
  'transportstream.c',
  'utils.c',
  'webrtcsdp.c',
  'webrtctransceiver.c',
  'webrtcdatachannel.c',
]

webrtc_headers = [
  'transportstream.h',
  'gstwebrtcbin.h',
  'transportreceivebin.h',
  'fwd.h',
  'transportsendbin.h',
  'webrtcdatachannel.h',
  'webrtcsctptransport.h',
  'webrtctransceiver.h',
  'utils.h',
  'webrtcsdp.h',
  'gstwebrtcstats.h',
]

doc_sources = []
foreach s: webrtc_sources + webrtc_headers
  doc_sources += meson.current_source_dir() / s
endforeach

plugin_sources += {
  'webrtc': pathsep.join(doc_sources)
}

webrtc_option = get_option('webrtc').require(
  libgstwebrtcnice_dep.found(), error_message: 'webrtc plugin requires libgstwebrtcnice.')
if webrtc_option.disabled()
  subdir_done()
endif

gstwebrtc_plugin = library('gstwebrtc',
  webrtc_sources,
  c_args : gst_plugins_bad_args + ['-DGST_USE_UNSTABLE_API'],
  include_directories : [configinc],
  dependencies : [gstbase_dep, gstsdp_dep,
                  gstapp_dep, gstwebrtc_dep, gstsctp_dep, gstrtp_dep, gio_dep, libgstwebrtcnice_dep],
  install : true,
  install_dir : plugins_install_dir,
)
plugins += [gstwebrtc_plugin]