Wx::build::MakeMaker - ExtUtils::MakeMaker specialisation for wxPerl modules
use Wx::build::MakeMaker;
wxWriteMakefile( NAME => 'My::Module', VERSION_FROM => 'Module.pm' );
wxWriteMakefile( arameter => value, ... );
This functions is meant to be used exactly as ExtUtils::MakeMaker::WriteMakefile (see). It accepts all WriteMakefile's parameters, plus:
WX_LIB
WX_LIB => '-lxrc'
Link additional libraries from wxWindows' contrib directory.
REQUIRE_WX
REQUIRE_WX => 2.003002 # wxWindows 2.3.2
Do not build this module if wxWindows' version is lower than the version specified.
NO_WX_PLATFORMs
NO_WX_PLATFORMS => [ 'x11', 'msw' ]
Do not build this module on the specified platform(s).
ON_WX_PLATFORMs
ON_WX_PLATFORMS => [ 'gtk' ]
only build this module on the specified platform(s).
These functions are here for reference, do not use them.
if( is_core ) { ... }
True if it is building the wxPerl core (Wx.dll), false otherwise.
if( is_wxPerl_tree ) { ... }
True if it is building any part of wxPerl, false otherwise.
Wx::build::MakeMaker::set_hook_package( 'package_name' );
Package to be hooked into the MakeMaker inheritance chain.
my $cfg = $this->wx_config();
Get the appropriate Wx::build::Config object.
Wx::build::Config
To install Wx, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Wx
CPAN shell
perl -MCPAN -e shell install Wx
For more information on module installation, please visit the detailed CPAN module installation guide.