mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-11-02 20:51:23 -07:00
New XS framework for C and C++ code
This commit is contained in:
parent
c88d8a5842
commit
9d27b5e4a7
18 changed files with 7889 additions and 0 deletions
41
xs/Build.PL
Normal file
41
xs/Build.PL
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
#!/usr/bin/perl -w
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
use Module::Build::WithXSpp;
|
||||
|
||||
my $build = Module::Build::WithXSpp->new(
|
||||
module_name => 'Slic3r::XS',
|
||||
dist_abstract => 'XS code for Slic3r',
|
||||
build_requires => {qw(
|
||||
ExtUtils::Typemaps::Default 0.05
|
||||
ExtUtils::XSpp 0.16
|
||||
Module::Build 0.3601
|
||||
Test::More 0
|
||||
)},
|
||||
configure_requires => {qw(
|
||||
ExtUtils::CppGuess 0.07
|
||||
Module::Build 0.38
|
||||
Module::Build::WithXSpp 0.10
|
||||
)},
|
||||
|
||||
# HAS_BOOL : stops Perl/lib/CORE/handy.h from doing "# define bool char" for MSVC
|
||||
extra_compiler_flags => [qw(-DHAS_BOOL)],
|
||||
|
||||
# Provides extra C typemaps that are auto-merged
|
||||
extra_typemap_modules => {
|
||||
'ExtUtils::Typemaps::Default' => '0.05',
|
||||
},
|
||||
|
||||
# for MSVC builds
|
||||
early_includes => [qw(
|
||||
cstring
|
||||
cstdlib
|
||||
ostream
|
||||
)]
|
||||
);
|
||||
|
||||
$build->create_build_script;
|
||||
|
||||
__END__
|
||||
Loading…
Add table
Add a link
Reference in a new issue