package builder::MyBuilder;
use strict;
use warnings;
use base 'Module::Build::XSUtil';

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

my $MSGPACK_VERSION = '3.3.0';

sub new {
    my ($class, %argv) = @_;

    my $self = $class->SUPER::new(
        %argv,
        extra_linker_flags => ['-lmsgpack-c'],
        generate_ppport_h => catfile('lib', 'Data', 'MessagePack', 'ppport.h'),
        cc_warnings => 1,
    );
    $self;
}

1;
