doc: Port documentation to hotdoc
[platform/upstream/gstreamer.git] / ext / aalib / meson.build
1 # Very much not going to implement all kinds of logic around aalib-config
2
3 have_aalib = false
4
5 # TODO: https://github.com/mesonbuild/meson/issues/3940
6 aalib_option = get_option('aalib')
7 if 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
12 endif
13
14 if have_aalib
15   libaa_dep = cc.find_library('aa', required : aalib_option)
16   if libaa_dep.found()
17     gstaasink = library('gstaasink', 'gstaasink.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     plugins += [gstaasink]
26   endif
27 endif