Module::Build::Pluggable::XSUtil - Utility for XS
use Module::Build::Pluggable ( 'XSUtil' => { cc_warnings => 1, ppport => 1, xshelper => 1, 'c++' => 1, 'c99' => 1, }, );
Module::Build::Pluggable::XSUtil is a utility for XS library.
This library is port of Module::Install::XSUtil
use Module::Build::Pluggable ( 'XSUtil' => { 'c++' => 1, }, );
This option checks C++ compiler's availability. If it's not available, Build.PL exits by 0.
use Module::Build::Pluggable ( 'XSUtil' => { 'c99' => 1, }, );
This option checks C99 compiler's availability. If it's not available, Build.PL exits by 0.
use Module::Build::Pluggable ( 'XSUtil' => { 'ppport' => 1, }, );
Generate ppport.h automatically. If you want to specify the path for ppport.h, use following form:
use Module::Build::Pluggable ( 'XSUtil' => { 'ppport' => 'lib/My/ppport.h', }, );
If you want to specify the version of ppport.h, use configure_requires in Module::Build::Pluggable->new.
Module::Build::Pluggable->new
use Module::Build::Pluggable ( 'XSUtil' => { 'xshelper' => 1, }, );
XSUtil generates xshelper.h. If you want to specify the path for xsutil.h, use following form:
use Module::Build::Pluggable ( 'XSUtil' => { 'xshelper' => 'lib/My/xshelper.h', }, );
XSUtil generates ppport.h to same directory(xshelper.h depend to ppport.h).
use Module::Build::Pluggable ( 'XSUtil' => { 'cc_warnings' => 1, }, );
This option enables warnings flag for compiler.
Under the control of this module, Build.PL accepts -g option, which sets Module::Build's extra_compiler_flags -g (or something like). It will disable optimization and enable some debugging features.
-g
Module::Build
extra_compiler_flags
Goro Fuji, is original author of Module::Install::XSUtil.
Tokuhiro Matsuno <tokuhirom AAJKLFJEF@ GMAIL COM>
Module::Install::XSUtil, Module::Build::Pluggable
Copyright (C) Tokuhiro Matsuno
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Module::Build::Pluggable::XSUtil, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Module::Build::Pluggable::XSUtil
CPAN shell
perl -MCPAN -e shell install Module::Build::Pluggable::XSUtil
For more information on module installation, please visit the detailed CPAN module installation guide.