gplugin/gplugin
Clone
Summary
Browse
Changes
Graph
Update the spec file for the readme rename
bugfix/docs-cleanup
2019-08-15, Gary Kramlich
40c577e88f51
Update the spec file for the readme rename
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