line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Alien::SDL3 0.01 { |
2
|
1
|
|
|
1
|
|
694
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
28
|
|
3
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
23
|
|
4
|
1
|
|
|
1
|
|
2110
|
use File::ShareDir; |
|
1
|
|
|
|
|
42188
|
|
|
1
|
|
|
|
|
48
|
|
5
|
1
|
|
|
1
|
|
1083
|
use Path::Tiny; |
|
1
|
|
|
|
|
12980
|
|
|
1
|
|
|
|
|
69
|
|
6
|
1
|
|
|
1
|
|
7
|
use Config; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
273
|
|
7
|
|
|
|
|
|
|
# |
8
|
|
|
|
|
|
|
sub dynamic_libs { |
9
|
|
|
|
|
|
|
my $files = path( File::ShareDir::dist_dir('Alien-SDL3') )->visit( |
10
|
|
|
|
|
|
|
sub { |
11
|
895
|
|
|
895
|
|
76923
|
my ( $path, $state ) = @_; |
12
|
895
|
100
|
|
|
|
6370
|
$state->{$path}++ if $path =~ m[\.$Config{so}$]; |
13
|
|
|
|
|
|
|
}, |
14
|
1
|
|
|
1
|
0
|
1281
|
{ recurse => 1 } |
15
|
|
|
|
|
|
|
); |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub features { |
19
|
4
|
|
|
4
|
0
|
7300
|
require Alien::SDL3::ConfigData; |
20
|
4
|
|
|
|
|
15
|
my %features = map { $_ => Alien::SDL3::ConfigData->feature($_) } |
|
16
|
|
|
|
|
35
|
|
21
|
|
|
|
|
|
|
qw[SDL3 SDL3_image SDL3_mixer SDL3_ttf]; |
22
|
4
|
50
|
|
|
|
12
|
return $features{ $_[1] } if defined $_[1]; |
23
|
4
|
|
|
|
|
46
|
\%features; |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
1; |
27
|
|
|
|
|
|
|
__END__ |