Algorithm-ConsistentHash-Ketama
view release on metacpan or search on metacpan
inc/Module/Install/XSUtil.pm view on Meta::CPAN
529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570
}
elsif
(
@_
== 1 &&
ref
(
$_
[0]) eq
'HASH'
){
$h_files
=
$_
[0];
}
else
{
$h_files
= +{
map
{
$_
=>
undef
}
@_
};
}
$self
->_xs_initialize();
my
@not_found
;
my
$h_map
=
$self
->{xsu_header_map} || {};
while
(
my
(
$ident
,
$path
) =
each
%{
$h_files
}){
$path
||=
$h_map
->{
$ident
} || File::Spec->
join
(
'.'
,
$ident
);
$path
= File::Spec->canonpath(
$path
);
unless
(
$path
&& -e
$path
){
push
@not_found
,
$ident
;
next
;
}
$ToInstall
{
$path
} = File::Spec->
join
(
'$(INST_ARCHAUTODIR)'
,
$ident
);
_verbose
"install: $path as $ident"
if
_VERBOSE;
my
@funcs
=
$self
->_extract_functions_from_header_file(
$path
);
if
(
@funcs
){
$self
->cc_append_to_funclist(
@funcs
);
}
}
if
(
@not_found
){
die
"Header file(s) not found: @not_found\n"
;
}
return
;
}
my
$home_directory
;
sub
_extract_functions_from_header_file{
my
(
$self
,
$h_file
) =
@_
;
( run in 0.505 second using v1.01-cache-2.11-cpan-87723dcf8b7 )