-
Notifications
You must be signed in to change notification settings - Fork 1
/
Build.PL
30 lines (25 loc) · 911 Bytes
/
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
use 5.010;
use Module::Build::WithXSpp;
use Devel::CheckLib;
check_lib_or_exit(lib => 'pthread', header => "pthread.h");
unless (check_lib(lib => [qw(icuuc icuio icudata icui18n)])) {
warn "unable to find ICU libraries. Please install them in your system path before proceeding";
exit(0);
}
my $build = Module::Build::WithXSpp->new(
configure_requires => {
'Devel::CheckLib' => '0.01',
'Module::Build::WithXSpp' => '0.01',
},
build_requires => {
'ExtUtils::Typemaps::Default' => '0.01',
},
module_name => 'URL::Google::GURL',
license => 'perl',
extra_typemap_modules => {
'ExtUtils::Typemaps::Default' => '0.01',
},
extra_linker_flags => '-licuuc -licuio -licudata -licui18n -lpthread',
extra_compiler_flags => '-I. -I.. -I./src/googleurl -I./src/googleurl/base -I./src/googleurl/src',
);
$build->create_build_script;