mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-11-01 21:21:10 -06:00
Merge branch 'master' into dev
This commit is contained in:
commit
6400cec7ae
76 changed files with 3511 additions and 1897 deletions
23
xs/Build.PL
23
xs/Build.PL
|
|
@ -119,15 +119,19 @@ if (defined $ENV{BOOST_LIBRARYDIR}) {
|
|||
my $have_boost = 0;
|
||||
my @boost_libraries = qw(system thread log); # we need these
|
||||
|
||||
# check without explicit lib path (works on Linux)
|
||||
if (! $mswin) {
|
||||
$have_boost = 1
|
||||
if check_lib(
|
||||
lib => [ map "boost_${_}", @boost_libraries ],
|
||||
);
|
||||
if (!$ENV{SLIC3R_STATIC}) {
|
||||
# Dynamic linking of boost libraries.
|
||||
push @cflags, qw(-DBOOST_LOG_DYN_LINK);
|
||||
if (! $mswin) {
|
||||
# Check without explicit lib path (works on Linux and OSX).
|
||||
$have_boost = 1
|
||||
if check_lib(
|
||||
lib => [ map "boost_${_}", @boost_libraries ],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
if (!$ENV{SLIC3R_STATIC} && $have_boost) {
|
||||
if ($have_boost) {
|
||||
# The boost library was detected by check_lib on Linux.
|
||||
push @LIBS, map "-lboost_${_}", @boost_libraries;
|
||||
} else {
|
||||
|
|
@ -138,7 +142,6 @@ if (!$ENV{SLIC3R_STATIC} && $have_boost) {
|
|||
# Try to find the boost system library.
|
||||
my @files = glob "$path/${lib_prefix}system*$lib_ext";
|
||||
next if !@files;
|
||||
|
||||
if ($files[0] =~ /\Q${lib_prefix}system\E([^.]*)\Q$lib_ext\E$/) {
|
||||
# Suffix contains the version number, the build type etc.
|
||||
my $suffix = $1;
|
||||
|
|
@ -212,6 +215,10 @@ if ($cpp_guess->is_gcc) {
|
|||
}
|
||||
}
|
||||
|
||||
print "\n";
|
||||
print 'With @INC: ', join(', ', map "\"$_\"", @INC), "\n";
|
||||
print 'With @LIBS: ', join(', ', map "\"$_\"", @LIBS), "\n";
|
||||
|
||||
my $build = Module::Build::WithXSpp->new(
|
||||
module_name => 'Slic3r::XS',
|
||||
dist_abstract => 'XS code for Slic3r',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue