summaryrefslogtreecommitdiff
path: root/ext/srt/meson.build
blob: d9ca1d503f7bd3ad9fa95b948b6444a9a3fb34c0 (plain)
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
srt_sources = [
  'gstsrt.c',
  'gstsrtbasesrc.c',
  'gstsrtclientsrc.c',
  'gstsrtserversrc.c',
  'gstsrtbasesink.c',
  'gstsrtclientsink.c',
  'gstsrtserversink.c',
]

srt_dep = dependency('srt', required : false)

if not srt_dep.found() and cc.has_header_symbol('srt/srt.h', 'srt_startup')
  srt_dep = cc.find_library('srt', required : false)
endif

if srt_dep.found()
  gstsrt = library('gstsrt',
    srt_sources,
    c_args : gst_plugins_bad_args,
    link_args : noseh_link_args,
    include_directories : [configinc, libsinc],
    dependencies : [gstbase_dep, gio_dep, srt_dep],
    install : true,
    install_dir : plugins_install_dir,
  )
  pkgconfig.generate(gstsrt, install_dir : plugins_pkgconfig_install_dir)
endif