mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-13 03:21:49 +08:00
Removed dependency on XML::SAX::ExpatXS
This commit is contained in:
parent
22ba87c3b3
commit
46ea9c5066
10
Build.PL
10
Build.PL
@ -28,7 +28,6 @@ my %prereqs = qw(
|
||||
);
|
||||
my %recommends = qw(
|
||||
Class::XSAccessor 0
|
||||
XML::SAX::ExpatXS 0
|
||||
Test::Harness 0
|
||||
);
|
||||
|
||||
@ -130,15 +129,6 @@ EOF
|
||||
if $module =~ /^(?:OpenGL|Math::PlanePath|Test::Harness)$/;
|
||||
|
||||
push @cmd, "$module~$version";
|
||||
if ($module eq 'XML::SAX::ExpatXS' && $^O eq 'MSWin32') {
|
||||
my $mingw = 'C:\dev\CitrusPerl\mingw64';
|
||||
$mingw = 'C:\dev\CitrusPerl\mingw32' if !-d $mingw;
|
||||
if (!-d $mingw) {
|
||||
print "Could not find the MinGW directory at $mingw; skipping XML::SAX::ExpatXS (only needed for faster parsing of AMF files)\n";
|
||||
} else {
|
||||
push @cmd, sprintf('--configure-args="EXPATLIBPATH=%s\lib EXPATINCPATH=%s\include"', $mingw, $mingw);
|
||||
}
|
||||
}
|
||||
my $res = system @cmd;
|
||||
if ($res != 0) {
|
||||
if (exists $prereqs{$module}) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user