File: Build.PL

package info (click to toggle)
libcrypt-xxhash-perl 0.09-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 840 kB
  • sloc: ansic: 3,869; makefile: 518; perl: 20
file content (43 lines) | stat: -rw-r--r-- 1,075 bytes parent folder | download
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
41
42
43
package main;

use utf8;
use warnings;
use strict;
use Module::Build ();
use Config ();

my $build = Module::Build->new(
    module_name         => 'Crypt::xxHash',
    license             => 'bsd',
    create_readme       => 1,
    configure_requires  => {
        'Module::Build' => undef, # xs
    },
    build_requires       => {
        'File::Which'        => undef,
        'IPC::Run'           => undef,
        'ExtUtils::CBuilder' => undef,
        'Test::More'         => undef,
        'Math::Int64'        => undef # 32bit perl without int64
    },
    requires       => {
	},
    needs_compiler => 1,
    include_dirs   => ['src'],
    c_source       => ['src'],
    extra_linker_flags => ['-lxxhash'],
    xs_files       => {
        './xs/xxHash.xs' => './lib/Crypt/xxHash.xs' 
    },
    meta_merge     => {
        'resources' => {
            'bugtracker' => 'https://github.com/KalessinD/perl_crypt_xxhash/issues',
            'repository' => 'https://github.com/KalessinD/perl_crypt_xxhash',
        },
    }
);

$build->create_build_script;

1;
__END__