-
Notifications
You must be signed in to change notification settings - Fork 0
/
alienfile
40 lines (36 loc) · 971 Bytes
/
alienfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
use alienfile;
plugin PkgConfig => 'liblz4';
if(0) { # not building lz4 for now
plugin 'Probe::CommandLine' => (
command => 'lz4',
args => [ '--version' ],
match => qr/LZ4 command line interface/,
secondary => 1,
);
}
share {
plugin 'Download::GitHub' => (
github_user => 'lz4',
github_repo => 'lz4',
);
plugin 'Build::CMake';
# Disable building `lz4` tool for now as it is dynamically linked by default
# by the CMake build.
my $build_tool = 0;
my $build_dir = '_build';
build [
['%{cmake}',
@{ meta->prop->{plugin_build_cmake}->{args} },
(
qw(-DLZ4_BUILD_CLI=ON), # tool
)x!!( $build_tool ),
qw(-DBUILD_STATIC_LIBS=ON), # xs
qw(-DBUILD_SHARED_LIBS=ON), # ffi
qw(-S), '%{.install.extract}/build/cmake',
qw(-B), $build_dir,
],
[ '%{make}', qw( -C ), $build_dir ],
[ '%{make}', qw( -C ), $build_dir, 'install' ],
];
plugin 'Gather::IsolateDynamic';
}