2011-10-02 09:57:47 +00:00
|
|
|
use Module::Build;
|
|
|
|
|
|
|
|
my $build = Module::Build->new(
|
|
|
|
module_name => 'Slic3r',
|
2012-04-09 09:04:32 +00:00
|
|
|
dist_abstract => 'G-code generator for 3D printers',
|
2011-10-02 09:57:47 +00:00
|
|
|
dist_author => 'Alessandro Ranellucci <aar@cpan.org>',
|
|
|
|
dist_version => '0.1',
|
2012-06-27 06:15:30 +00:00
|
|
|
license => 'perl',
|
2011-10-02 09:57:47 +00:00
|
|
|
requires => {
|
2013-04-09 12:03:24 +00:00
|
|
|
'Boost::Geometry::Utils' => '0.08',
|
2013-01-13 09:18:34 +00:00
|
|
|
'Encode::Locale' => '0',
|
2011-10-03 09:55:32 +00:00
|
|
|
'File::Basename' => '0',
|
2012-08-01 18:22:58 +00:00
|
|
|
'File::Spec' => '0',
|
2011-10-02 09:57:47 +00:00
|
|
|
'Getopt::Long' => '0',
|
2013-01-17 10:11:22 +00:00
|
|
|
'Math::Clipper' => '1.17',
|
2012-10-22 13:29:54 +00:00
|
|
|
'Math::ConvexHull::MonotoneChain' => '0.01',
|
2011-12-30 16:17:37 +00:00
|
|
|
'Math::Geometry::Voronoi' => '1.3',
|
2011-11-13 17:14:02 +00:00
|
|
|
'Math::PlanePath' => '53',
|
2012-06-23 21:27:57 +00:00
|
|
|
'Moo' => '0.091009',
|
2012-04-10 15:34:11 +00:00
|
|
|
'perl' => '5.10.0',
|
2012-05-19 18:30:46 +00:00
|
|
|
'Scalar::Util' => '0',
|
2011-10-02 09:57:47 +00:00
|
|
|
'Time::HiRes' => '0',
|
|
|
|
},
|
|
|
|
build_requires => {
|
|
|
|
'Test::More' => '0.10',
|
2012-11-23 17:45:29 +00:00
|
|
|
'IO::Scalar' => '0.10',
|
2011-10-02 09:57:47 +00:00
|
|
|
},
|
2012-04-10 15:32:16 +00:00
|
|
|
recommends => {
|
2013-03-13 00:29:45 +00:00
|
|
|
'Class::XSAccessor' => '0',
|
2012-04-10 15:32:16 +00:00
|
|
|
'Growl::GNTP' => '0.15',
|
2012-07-16 21:43:09 +00:00
|
|
|
'Net::DBus' => '0',
|
2012-10-24 18:36:32 +00:00
|
|
|
'XML::SAX::ExpatXS' => '0',
|
2012-04-10 15:32:16 +00:00
|
|
|
'Wx' => '0.9901',
|
|
|
|
},
|
2011-10-02 09:57:47 +00:00
|
|
|
script_files => ['slic3r.pl'],
|
|
|
|
);
|
2012-05-17 14:40:12 +00:00
|
|
|
|
|
|
|
if (not $ENV{SLIC3R_NO_AUTO})
|
|
|
|
{
|
|
|
|
$build->dispatch('installdeps');
|
|
|
|
$build->dispatch('test', verbose => 0);
|
|
|
|
}
|
2011-10-02 09:57:47 +00:00
|
|
|
|
|
|
|
$build->create_build_script;
|