meson.build 1012 Bytes
Newer Older
1
2
srt_sources = [
  'gstsrt.c',
3
4
  'gstsrtelement.c',
  'gstsrtplugin.c',
5
6
7
  'gstsrtobject.c',
  'gstsrtsink.c',
  'gstsrtsrc.c'
8
]
9
10
11
12
srt_option = get_option('srt')
if srt_option.disabled()
  subdir_done()
endif
13

14
srt_dep = dependency('srt', version : '>=1.3.0', required : false)
15
16
17
if not srt_dep.found() and cc.has_header_symbol('srt/srt.h', 'srt_startup')
  srt_dep = cc.find_library('srt', required : false)
endif
18
19
20
if not srt_dep.found() and srt_option.enabled()
  error('srt plugin enabled, but srt library not found')
endif
21
22

if srt_dep.found()
23
24
25
26
27
  gstsrt_enums = gnome.mkenums_simple('gstsrt-enumtypes',
    sources: ['gstsrt-enums.h'],
    decorator : 'G_GNUC_INTERNAL',
    install_header: false)

28
  gstsrt = library('gstsrt',
29
    srt_sources, gstsrt_enums,
30
31
32
33
34
35
36
    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,
  )
37
  plugins += [gstsrt]
38
endif