Commit 6fb4e062 authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

winemaker: Improved check for libXML at runtime.

parent 1151546c
......@@ -873,8 +873,12 @@ sub source_scan_project_file($$$)
push @{@$project_settings[$T_DEFINES]},$prj_target_defines;
push @{@$project_settings[$T_LDFLAGS]},$prj_target_ldflags;
} elsif ($filename =~ /.vcproj$/i) {
# Import XML::LibXML, you need the libxml package (deb: libxml-libxml-perl, rpm: perl-libxml-perl)
require XML::LibXML;
eval {
require XML::LibXML;
};
if ($@) {
die "Error: You need the libxml package (deb: libxml-libxml-perl, rpm: perl-libxml-perl)";
}
my $xmlparser = XML::LibXML->new();
my $project_xml = $xmlparser->parse_file($filename);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment