2017-06-23 22:50:00 +00:00
|
|
|
# Very much not going to implement all kinds of logic around aalib-config
|
2018-07-25 02:05:28 +00:00
|
|
|
|
|
|
|
have_aalib = false
|
|
|
|
|
|
|
|
# TODO: https://github.com/mesonbuild/meson/issues/3940
|
|
|
|
aalib_option = get_option('aalib')
|
|
|
|
if not aalib_option.disabled()
|
|
|
|
have_aalib = cc.has_header('aalib.h')
|
|
|
|
if not have_aalib and aalib_option.enabled()
|
|
|
|
error('aalib plugin enabled, but aalib.h not found')
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
if have_aalib
|
|
|
|
libaa_dep = cc.find_library('aa', required : aalib_option)
|
2017-06-23 22:50:00 +00:00
|
|
|
if libaa_dep.found()
|
2019-12-28 23:01:19 +00:00
|
|
|
gstaasink = library('gstaasink', ['gstaasink.c','gstaatv.c'],
|
2017-06-23 22:50:00 +00:00
|
|
|
c_args : gst_plugins_good_args,
|
|
|
|
link_args : noseh_link_args,
|
|
|
|
include_directories : [configinc],
|
|
|
|
dependencies : [gstvideo_dep, gstbase_dep, libaa_dep],
|
|
|
|
install : true,
|
2018-10-22 09:39:55 +00:00
|
|
|
install_dir : plugins_install_dir
|
|
|
|
)
|
2019-05-23 09:38:06 +00:00
|
|
|
pkgconfig.generate(gstaasink, install_dir : plugins_pkgconfig_install_dir)
|
2018-10-22 09:39:55 +00:00
|
|
|
plugins += [gstaasink]
|
2017-06-23 22:50:00 +00:00
|
|
|
endif
|
|
|
|
endif
|