• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1resindvd_opt = get_option('resindvd').require(gpl_allowed, error_message: '''
2  Plugin resindvd explicitly required via options but GPL-licensed plugins disabled via options.
3  Pass option -Dgpl=enabled to Meson to allow GPL-licensed plugins to be built.
4  ''')
5
6resindvd_sources = [
7  'gstmpegdemux.c',
8  'gstmpegdesc.c',
9  'gstpesfilter.c',
10  'plugin.c',
11  'resindvdbin.c',
12  'resindvdsrc.c',
13  'rsndec.c',
14  'rsninputselector.c',
15  'rsnparsetter.c',
16]
17
18dvdnav_dep = dependency('dvdnav', version : '>= 4.1.2', required : resindvd_opt)
19dvdread_dep = dependency('dvdread', version : '>= 4.1.2', required : resindvd_opt)
20
21if dvdnav_dep.found() and dvdread_dep.found()
22  gstresindvd = library('gstresindvd',
23    resindvd_sources,
24    c_args : gst_plugins_bad_args,
25    link_args : noseh_link_args,
26    include_directories : [configinc, libsinc],
27    dependencies : [gstvideo_dep, gstpbutils_dep, gsttag_dep,
28                    dvdnav_dep, dvdread_dep, gmodule_dep],
29    install : true,
30    install_dir : plugins_install_dir,
31  )
32  pkgconfig.generate(gstresindvd, install_dir : plugins_pkgconfig_install_dir)
33  plugins += [gstresindvd]
34endif
35