gplugin/gplugin
Clone
Summary
Browse
Changes
Graph
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/
if
get_option
(
'vapi'
)
e
=
executable
(
'test-vala-loading'
,
'test-vala-loading.c'
,
include_directories
:
include_directories
(
'.'
),
c_args
:
[
'-DVALA_PLUGIN_DIR="@0@/plugins"'
.
format
(
meson
.
current_build_dir
()),
],
link_with
:
gplugin_loader_tests
,
dependencies
:
[
GLIB
,
GOBJECT
,
gplugin_dep
])
test
(
'Vala loading'
,
e
)
e
=
executable
(
'test-genie-loading'
,
'test-genie-loading.c'
,
include_directories
:
include_directories
(
'.'
),
c_args
:
[
'-DGENIE_PLUGIN_DIR="@0@/genie-plugins"'
.
format
(
meson
.
current_build_dir
()),
],
link_with
:
gplugin_loader_tests
,
dependencies
:
[
GLIB
,
GOBJECT
,
gplugin_dep
])
test
(
'Genie loading'
,
e
)
subdir
(
'genie-plugins'
)
subdir
(
'plugins'
)
endif
# vapi