# =========================================================================
# THIS FILE IS AUTOMATICALLY GENERATED BY MINILLA.
# DO NOT EDIT DIRECTLY.
# =========================================================================

use 5.008_001;

use strict;
use warnings;
use utf8;

use Module::Build::XSUtil;
use File::Basename;
use File::Spec;

my %args = (
    license              => 'perl_5',
    dynamic_config       => 0,

    configure_requires => {
        'Module::Build' => '0.4005',
    },

    requires => {
        'XSLoader' => '0.02',
        'parent' => '0',
        'perl' => '5.008001',
    },

    recommends => {
    },

    suggests => {
    },

    build_requires => {
        'Devel::PPPort' => '3.19',
        'ExtUtils::MakeMaker' => '6.59',
        'ExtUtils::ParseXS' => '3.18',
        'Module::Build' => '0',
        'Module::Build::XSUtil' => '0',
        'Test::More' => '0.88',
        'Test::Requires' => '0.03',
    },

    test_requires => {
    },

    name            => 'Data-Clone',
    module_name     => 'Data::Clone',
    allow_pureperl => 0,

    script_files => [glob('script/*'), glob('bin/*')],
    PL_files => {},

    test_files           => ((-d '.git' || $ENV{RELEASE_TESTING}) && -d 'xt') ? 't/ xt/' : 't/',
    recursive_test_files => 1,


    needs_compiler_c99 => 0,
    needs_compiler_cpp => 0,
    generate_ppport_h => 'lib/Data/ppport.h',
    generate_xshelper_h => 'lib/Data/xshelper.h',
    cc_warnings => 1,
);
if (-d 'share') {
    $args{share_dir} = 'share';
}

my $builder = Module::Build::XSUtil->subclass(
    class => 'MyBuilder',
    code => q{
        sub ACTION_distmeta {
            die "Do not run distmeta. Install Minilla and `minil install` instead.\n";
        }
        sub ACTION_installdeps {
            die "Do not run installdeps. Run `cpanm --installdeps .` instead.\n";
        }
    }
)->new(%args);
$builder->create_build_script();