diff options
author | Alessandro Ranellucci <aar@cpan.org> | 2014-03-03 01:36:20 +0400 |
---|---|---|
committer | Alessandro Ranellucci <aar@cpan.org> | 2014-03-03 01:36:20 +0400 |
commit | eadffe4a9ea2c8ab9784bfc6c03b21b413a4c5dc (patch) | |
tree | 0d07ba757991006219334127f20d522a7856ea16 /Build.PL | |
parent | bc832f1a6d418bdd15781aac6839a796396b8564 (diff) | |
parent | bc44611f241a5f1d7ab66f14ffc0b1f3d563fc59 (diff) |
Merge branch 'master' into boost-medialaxis
Conflicts:
lib/Slic3r/Layer/Region.pm
xs/src/ExPolygon.cpp
xs/src/Point.cpp
xs/src/Point.hpp
xs/src/TriangleMesh.cpp
xs/t/01_trianglemesh.t
Diffstat (limited to 'Build.PL')
-rw-r--r-- | Build.PL | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -17,7 +17,6 @@ my %prereqs = qw( Module::Build::WithXSpp 0.14 Moo 1.003001 Scalar::Util 0 - Storable 0 Test::Harness 0 Test::More 0 IO::Scalar 0 @@ -28,7 +27,8 @@ my %recommends = qw( XML::SAX::ExpatXS 0 ); -my $gui = defined $ARGV[0] && $ARGV[0] eq '--gui'; +my $gui = grep { $_ eq '--gui' } @ARGV; +my $xs_only = grep { $_ eq '--xs' } @ARGV; if ($gui) { %prereqs = qw( Wx 0.9918 @@ -38,6 +38,8 @@ if ($gui) { Wx::GLCanvas 0 OpenGL 0 ); +} elsif ($xs_only) { + %prereqs = %recommends = (); } my @missing_prereqs = (); @@ -124,9 +126,7 @@ EOF # with current perl binary if (-e './xs/Build') { if ($^O eq 'MSWin32') { - system 'cd', 'xs'; - system 'Build', 'distclean'; - system 'cd', '..'; + system '.\xs\Build', 'distclean'; } else { system './xs/Build', 'distclean'; } |