diff options
author | Alessandro Ranellucci <aar@cpan.org> | 2014-01-12 00:46:22 +0400 |
---|---|---|
committer | Alessandro Ranellucci <aar@cpan.org> | 2014-01-12 00:46:22 +0400 |
commit | e7349622a2745fad1ea62337e9590d422886398c (patch) | |
tree | 1f3972529b06ff1fed59083d7837bcdd88654dc7 /Build.PL | |
parent | c99b9d91db583d6ebe81bd751be411d44e273ee7 (diff) |
Removed dependency on Storable; some fixes in Build.PL. #1693
Diffstat (limited to 'Build.PL')
-rw-r--r-- | Build.PL | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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'; } |