File: Makefile.PL

package info (click to toggle)
libpromise-xs-perl 0.20-1
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 908 kB
  • sloc: perl: 1,097; ansic: 355; makefile: 3
file content (51 lines) | stat: -rw-r--r-- 1,450 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
44
45
46
47
48
49
50
51
use strict;
use warnings;

use Config;

my $ASAN = $ENV{'PROMISE_XS_ASAN'};

my $lddlflags = $Config{'lddlflags'};

my $cflags = q<>;

if ($ASAN) {
    $cflags .= " -fsanitize=address";
    $lddlflags .= " -fsanitize=address";
}

use ExtUtils::MakeMaker::CPANfile;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
WriteMakefile(
    NAME              => 'Promise::XS',
    VERSION_FROM      => 'lib/Promise/XS.pm', # finds $VERSION
    ($] >= 5.005 ?     ## Add these new keywords supported since 5.005
      (ABSTRACT_FROM  => 'lib/Promise/XS.pm', # retrieve abstract from module
       AUTHOR         => [
            'Felipe Gasper (FELIPE)',
            'Tom van der Woerdt <tomvanderwoerdt@sd.apple.com>',
        ],
      ) : ()
    ),
    LIBS              => [''], # e.g., '-lm'
    DEFINE            => '', # e.g., '-DHAVE_SOMETHING'
    INC               => "-Wall -I. $cflags",
    LICENSE           => "perl_5",

    LDDLFLAGS => $lddlflags,

    META_MERGE => {
        'meta-spec' => { version => 2 },
        resources => {
            repository => {
                type => 'git',
                url => 'git://github.com/FGasper/p5-Promise-XS.git',
                web => 'https://github.com/FGasper/p5-Promise-XS',
            },
            bugtracker => {
                web => 'https://github.com/FGasper/p5-Promise-XS/issues',
            },
        },
    },
);