gplugin/gplugin

closing this branch as there is no demand for this
feature/ruby-loader
16 months ago, Gary Kramlich
d44bad5e041e
closing this branch as there is no demand for this
if get_option('perl')
if not get_option('gobject-introspection')
error('Perl plugin requires GObject Introspection.')
endif
GPLUGIN_PERL_SOURCES = [
'gplugin-perl-core.c',
'gplugin-perl-loader.c',
'gplugin-perl-plugin.c',
]
GPLUGIN_PERL_HEADERS = [
'gplugin-perl-loader.h',
'gplugin-perl-plugin.h',
]
PERL = find_program('perl')
PERL_CFLAGS = run_command(PERL, '-MExtUtils::Embed', '-e', 'ccopts').stdout()
PERL_LDFLAGS = run_command(PERL, '-MExtUtils::Embed', '-e', 'ldopts').stdout()
message('PERL_CFLAGS ' + PERL_CFLAGS)
message('PERL_LDFLAGS ' + PERL_LDFLAGS)
PERL_CFLAGS = PERL_CFLAGS.split()
PERL_LDFLAGS = PERL_LDFLAGS.split()
shared_library('gplugin-perl',
GPLUGIN_PERL_SOURCES,
GPLUGIN_PERL_HEADERS,
c_args : PERL_CFLAGS,
link_args : PERL_LDFLAGS,
name_prefix : '',
dependencies : [gplugin_dep],
install : true,
install_dir : join_paths(get_option('libdir'), 'gplugin')
)
endif # perl