1resindvd_sources = [
2  'gstmpegdemux.c',
3  'gstmpegdesc.c',
4  'gstpesfilter.c',
5  'plugin.c',
6  'resindvdbin.c',
7  'resindvdsrc.c',
8  'rsndec.c',
9  'rsninputselector.c',
10  'rsnparsetter.c',
11]
12
13dvdnav_dep = dependency('dvdnav', version : '>= 4.1.2', required : get_option('resindvd'))
14dvdread_dep = dependency('dvdread', version : '>= 4.1.2', required : get_option('resindvd'))
15
16if dvdnav_dep.found() and dvdread_dep.found()
17  gstresindvd = library('gstresindvd',
18    resindvd_sources,
19    c_args : gst_plugins_bad_args,
20    link_args : noseh_link_args,
21    include_directories : [configinc, libsinc],
22    dependencies : [gstvideo_dep, gstpbutils_dep, gsttag_dep,
23                    dvdnav_dep, dvdread_dep, gmodule_dep],
24    install : true,
25    install_dir : plugins_install_dir,
26  )
27  pkgconfig.generate(gstresindvd, install_dir : plugins_pkgconfig_install_dir)
28endif
29