--- a/perl/meson.build Fri Feb 28 10:34:51 2020 -0600
+++ b/perl/meson.build Sat Feb 29 03:15:40 2020 -0500
@@ -30,9 +30,19 @@
link_args : run_command(PERL, '-MExtUtils::Embed', '-e', 'ldopts', check : true).stdout().split(),
+ perl_arch = run_command(PERL, '-MConfig', '-e', 'print "$Config{vendorarch}"', check : true).stdout().split() + glib_perl_incdir = '-I@0@/Glib/Install'.format(perl_arch[0]) + glib_perl_libdir = '@0@/auto/Glib/'.format(perl_arch[0]) + glib_perl_dep = compiler.find_library( + dirs : glib_perl_libdir, + has_headers : 'gperl.h', + header_args : glib_perl_incdir glib_perl_dep = declare_dependency(
- compile_args : run_command(PERL, '-MConfig', '-e', 'print "-I$Config{vendorarch}/Glib/Install"', check : true).stdout().split(),
- link_args : run_command(PERL, '-MConfig', '-e', 'print "$Config{vendorarch}/auto/Glib/Glib.so"', check : true).stdout().split(),
+ dependencies : glib_perl_dep, + # Annoyingly, this is not transferred over from the header_args. + compile_args : glib_perl_incdir shared_library('gplugin-perl',