File: MyBuilder.pm

package info (click to toggle)
libdata-messagepack-stream-perl 1.04%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid
  • size: 228 kB
  • sloc: perl: 24; makefile: 3
file content (19 lines) | stat: -rw-r--r-- 391 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package builder::MyBuilder;
use strict;
use warnings;
use base 'Module::Build::XSUtil';

use File::Spec::Functions qw(catfile catdir);
use Config;

sub new {
    my ($class, %argv) = @_;
    $class->SUPER::new(
        %argv,
        extra_linker_flags => ['-lmsgpackc'],
        generate_ppport_h => catfile('lib', 'Data', 'MessagePack', 'ppport.h'),
        cc_warnings => 1,
    );
}

1;