Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Ranellucci <aar@cpan.org>2014-01-12 00:46:22 +0400
committerAlessandro Ranellucci <aar@cpan.org>2014-01-12 00:46:22 +0400
commite7349622a2745fad1ea62337e9590d422886398c (patch)
tree1f3972529b06ff1fed59083d7837bcdd88654dc7 /Build.PL
parentc99b9d91db583d6ebe81bd751be411d44e273ee7 (diff)
Removed dependency on Storable; some fixes in Build.PL. #1693
Diffstat (limited to 'Build.PL')
-rw-r--r--Build.PL10
1 files changed, 5 insertions, 5 deletions
diff --git a/Build.PL b/Build.PL
index e5ad62ccd..25a37f93d 100644
--- a/Build.PL
+++ b/Build.PL
@@ -18,7 +18,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
@@ -29,7 +28,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
@@ -39,6 +39,8 @@ if ($gui) {
Wx::GLCanvas 0
OpenGL 0
);
+} elsif ($xs_only) {
+ %prereqs = %recommends = ();
}
my @missing_prereqs = ();
@@ -125,9 +127,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';
}