line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# Copyright (c) 2023 Yuki Kimoto |
2
|
|
|
|
|
|
|
# MIT License |
3
|
|
|
|
|
|
|
|
4
|
1
|
|
|
1
|
|
570452
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
44
|
|
5
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
50
|
|
6
|
1
|
|
|
1
|
|
6
|
use SPVM::Builder::Config; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
227
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
my $config = SPVM::Builder::Config->new_c99(file => __FILE__); |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
my $myuname = $Config{myuname}; |
11
|
|
|
|
|
|
|
$myuname = 'strawberry'; |
12
|
|
|
|
|
|
|
if ($myuname =~ /strawberry/i) { |
13
|
|
|
|
|
|
|
my $incpath = $Config{incpath}; |
14
|
|
|
|
|
|
|
my @incpath = split(/\s+/, $incpath); |
15
|
|
|
|
|
|
|
$config->add_include_dir(@incpath); |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
my $libpth = $Config{libpth}; |
18
|
|
|
|
|
|
|
my @libpth = split(/\s+/, $libpth); |
19
|
|
|
|
|
|
|
$config->add_lib_dir(@libpth); |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
$config->add_lib('ssl', 'crypto'); |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
$config; |