• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Very much not going to implement all kinds of logic around aalib-config
2
3have_aalib = false
4
5# TODO: https://github.com/mesonbuild/meson/issues/3940
6aalib_option = get_option('aalib')
7if not aalib_option.disabled()
8  have_aalib = cc.has_header('aalib.h')
9  if not have_aalib and aalib_option.enabled()
10    error('aalib plugin enabled, but aalib.h not found')
11  endif
12endif
13
14if have_aalib
15  libaa_dep = cc.find_library('aa', required : aalib_option)
16  if libaa_dep.found()
17    gstaasink = library('gstaasink', ['gstaasink.c','gstaatv.c', 'gstaaplugin.c'],
18      c_args : gst_plugins_good_args,
19      link_args : noseh_link_args,
20      include_directories : [configinc],
21      dependencies : [gstvideo_dep, gstbase_dep, libaa_dep],
22      install : true,
23      install_dir : plugins_install_dir
24    )
25    pkgconfig.generate(gstaasink, install_dir : plugins_pkgconfig_install_dir)
26    plugins += [gstaasink]
27  endif
28endif
29