| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
1
|
|
|
1
|
|
191598
|
use alienfile; |
|
|
1
|
|
|
|
|
3
|
|
|
|
1
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
probe sub { $_[0]->runtime_prop->{ffi_name} = 'onnxruntime' }; |
|
4
|
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
share { |
|
6
|
|
|
|
|
|
|
plugin qw'Download::GitHub github_user microsoft github_repo onnxruntime asset 1', |
|
7
|
|
|
|
|
|
|
asset_name => qr/onnxruntime-linux-x64-\d+.\d+.\d+.tgz/a; |
|
8
|
|
|
|
|
|
|
plugin 'Extract' => 'tgz'; |
|
9
|
|
|
|
|
|
|
plugin 'Build::Copy'; |
|
10
|
|
|
|
|
|
|
plugin 'Gather::IsolateDynamic'; |
|
11
|
|
|
|
|
|
|
gather sub { |
|
12
|
|
|
|
|
|
|
my ($build) = @_; |
|
13
|
|
|
|
|
|
|
my $prefix = $build->runtime_prop->{prefix}; |
|
14
|
|
|
|
|
|
|
$build->runtime_prop->{cflags} = "-I$prefix/include "; |
|
15
|
|
|
|
|
|
|
$build->runtime_prop->{libs} = "-L$prefix/lib -lonnxruntime "; |
|
16
|
|
|
|
|
|
|
} |
|
17
|
|
|
|
|
|
|
}; |