# This Makefile.PL for Thrift-XS was generated by
# Dist::Zilla::Plugin::MakeMaker::Awesome 0.49.
# Don't edit it but the dist.ini and plugins used to construct it.

use strict;
use warnings;

use 5.010;
use ExtUtils::MakeMaker;

my %args;
my (@INC, @LIBPATH, @LIBS);

my $DEFINES = '-O2';
$DEFINES .= ' -Wall' unless $^O =~ /sun|solaris/i;
$DEFINES .= ' -Wno-unused-value -Wno-format-security' unless $^O =~ /Win32|sun|solaris/i;

unshift @INC, '-Isrc';

my $inc_files = join(' ', glob 'src/*.h');
my $src_files = join(' ', glob 'src/*.c');
my $xs_files  = join(' ', glob '*.xs');

$args{INC} = join(' ', @INC);
$args{LIBS} = [ join(' ', @LIBPATH, @LIBS) ];
$args{DEFINE} = $DEFINES;
$args{depend} = { 'XS.c' => "$inc_files $src_files $xs_files" };

my %WriteMakefileArgs = (
  "ABSTRACT" => "Faster Thrift binary protocol encoding and decoding",
  "AUTHOR" => "Andy Grundman <andy\@hybridized.org>",
  "CONFIGURE_REQUIRES" => {
    "ExtUtils::MakeMaker" => 0
  },
  "DISTNAME" => "Thrift-XS",
  "LICENSE" => "apache",
  "MIN_PERL_VERSION" => "5.010",
  "NAME" => "Thrift::XS",
  "PREREQ_PM" => {
    "Bit::Vector" => 0,
    "Encode" => 0,
    "HTTP::Request" => 0,
    "IO::Select" => 0,
    "IO::Socket::INET" => 0,
    "IO::String" => 0,
    "LWP::UserAgent" => 0,
    "Thrift" => "v0.22.0"
  },
  "TEST_REQUIRES" => {
    "File::Spec" => 0,
    "FindBin" => 0,
    "Test::BinaryData" => 0,
    "Test::More" => 0,
    "Test::Perl::Critic" => 0
  },
  "VERSION" => "1.10",
  "test" => {
    "TESTS" => "t/*.t"
  }
);

%WriteMakefileArgs = (
    %WriteMakefileArgs,
    %args,
);

my %FallbackPrereqs = (
  "Bit::Vector" => 0,
  "Encode" => 0,
  "File::Spec" => 0,
  "FindBin" => 0,
  "HTTP::Request" => 0,
  "IO::Select" => 0,
  "IO::Socket::INET" => 0,
  "IO::String" => 0,
  "LWP::UserAgent" => 0,
  "Test::BinaryData" => 0,
  "Test::More" => 0,
  "Test::Perl::Critic" => 0,
  "Thrift" => "0.22.0"
);

unless ( eval { ExtUtils::MakeMaker->VERSION('6.63_03') } ) {
  delete $WriteMakefileArgs{TEST_REQUIRES};
  delete $WriteMakefileArgs{BUILD_REQUIRES};
  $WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs;
}

delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
  unless eval { ExtUtils::MakeMaker->VERSION(6.52) };

WriteMakefile(%WriteMakefileArgs);
