2009-04-15 12:55:41 +09:00
|
|
|
use inc::Module::Install;
|
|
|
|
name 'Data-MessagePack';
|
|
|
|
all_from 'lib/Data/MessagePack.pm';
|
|
|
|
|
|
|
|
perl_version '5.008005';
|
|
|
|
license 'perl';
|
|
|
|
can_cc or die "This module requires a C compiler";
|
|
|
|
|
|
|
|
makemaker_args(
|
|
|
|
OBJECT => '$(O_FILES)',
|
|
|
|
LIBS => [''],
|
|
|
|
clean => {
|
|
|
|
FILES => q{
|
|
|
|
*.stackdump
|
|
|
|
*.gcov *.gcda *.gcno
|
|
|
|
*.out
|
|
|
|
nytprof
|
|
|
|
cover_db
|
|
|
|
},
|
|
|
|
},
|
|
|
|
);
|
|
|
|
|
|
|
|
tests 't/*.t';
|
|
|
|
author_tests('xt');
|
|
|
|
|
2009-07-01 18:20:14 +09:00
|
|
|
# copy modules
|
|
|
|
if ($Module::Install::AUTHOR && -d File::Spec->catfile('..', 'msgpack')) {
|
|
|
|
mkdir 'msgpack' unless -d 'msgpack';
|
|
|
|
require File::Copy;
|
|
|
|
for my $src (<../msgpack/*.h>) {
|
|
|
|
File::Copy::copy($src, 'msgpack/') or die "copy failed: $!";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2009-04-15 12:55:41 +09:00
|
|
|
auto_set_repository;
|
|
|
|
build_requires 'Test::More';
|
|
|
|
use_test_base;
|
|
|
|
auto_include;
|
|
|
|
WriteAll;
|
|
|
|
|