gstreamer/ext/aalib/meson.build
Nirbheek Chauhan 8f807477eb meson: Add feature options for all plugins
Checks for GL, Qt5, and C++ are still automagic. FIXMEs have been
added for these so they can be fixed later.

https://bugzilla.gnome.org/show_bug.cgi?id=795107
2018-07-27 18:42:54 +05:30

25 lines
766 B
Meson

# Very much not going to implement all kinds of logic around aalib-config
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)
if libaa_dep.found()
library('gstaasink', 'gstaasink.c',
c_args : gst_plugins_good_args,
link_args : noseh_link_args,
include_directories : [configinc],
dependencies : [gstvideo_dep, gstbase_dep, libaa_dep],
install : true,
install_dir : plugins_install_dir)
endif
endif