-
Notifications
You must be signed in to change notification settings - Fork 5
/
Build.PL
35 lines (34 loc) · 1.12 KB
/
Build.PL
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
use Module::Build;
use Alien::Base::Wrapper qw/Alien::LibJQ !export/;
use Alien::LibJQ;
my $build = Module::Build->new(
module_name => 'JSON::JQ',
dist_abstract => 'jq (https://stedolan.github.io/jq/) library binding',
dist_author => 'Dongxu Ma <dongxu _dot_ ma _at_ gmail.com>',
license => 'mit',
configure_requires => {
'Alien::Base::Wrapper' => '0',
'Alien::LibJQ' => '>= 0.04',
'Module::Build' => '0.42',
},
test_requires => {
'Test::Number::Delta' => '0',
},
requires => {
'Alien::LibJQ' => '>= 0.04',
'JSON' => '0',
'Path::Tiny' => '0',
'enum' => '0',
},
needs_compiler => 1,
include_dirs => [ '.' ], # for ppport.h
#c_source => 'src', # could be list too
meta_merge => {
resources => {
repository => 'https://github.com/dxma/perl5-json-jq',
bugtracker => 'https://github.com/dxma/perl5-json-jq/issues',
},
},
Alien::Base::Wrapper->mb_args,
);
$build->create_build_script;