gplugin/gplugin

Fix plugin search with GLib 2.69.

2021-07-30, Elliott Sales de Andrade
fd4bb8956d03
Fix plugin search with GLib 2.69.

Named groups in `GRegex` with GLib 2.69 appear to return empty, not `NULL` strings, so handle that when running version comparison.

This is actually what GLib documents should happen, but I guess didn't work right before.

Testing Done:
Compiled and ran tests on Fedora Rawhide with GLib 2.69.

Reviewed at https://reviews.imfreedom.org/r/856/
DOC_MODULE = 'gplugin-gtk'
# Header files or dirs to ignore when scanning. Use base file/dir names
ignore_hfiles = [
'gplugin-gtk.h',
'gplugin-gtk-resources.h',
]
ignore_hfiles += GPLUGIN_GTK_PRIVATE_HEADERS
# Extra options to supply to gtkdoc-scan.
scan_args = [
'--deprecated-guards=GPLUGIN_GTK_DISABLE_DEPRECATED',
'--rebuild-types',
'--rebuild-sections',
]
fixxref_args = [
'--extra-dir=' + (meson.project_build_root() / 'gplugin/reference/')
]
gplugin_gtk_version_xml = configure_file(
input : 'version.xml.in',
output : 'version.xml',
configuration : version_conf)
content_files = [
]
content_files += gplugin_doc
gplugin_gtk_doc = gnome.gtkdoc(DOC_MODULE,
main_xml : DOC_MODULE + '-docs.xml',
namespace : 'gplugin_gtk',
src_dir : gplugin_gtk_inc,
dependencies : gplugin_gtk_dep,
ignore_headers : ignore_hfiles,
install : true,
scan_args : scan_args,
gobject_typesfile : DOC_MODULE + '.types',
content_files : content_files,
fixxref_args : fixxref_args,
)