SPVM::Builder::API - SPVM Builder Public APIs
# Builder API my $api = SPVM::Builder::API->new( build_dir => '.spvm_build', ); $api->build_dynamic_lib_dist_precompile('MyClass'); $api->build_dynamic_lib_dist_native('MyClass');
SPVM::Builder::API is the public APIs of SPVM Builder.
SPVM::Builder is a private modules of SPVM.
The names and arguments of the methods are changed without warnings in the future release.
However, the methods is useful to get the information of SPVM modules.
SPVM::Builder::API provides the public APIs to call the methods. These APIs is public and stable.
# Builder API my $api = SPVM::Builder::API->new;
Create SPVM::Builder::API object.
Options:
build_dir
Build directory.
$api->build_dynamic_lib_dist_precompile($class_name)
Build a precompile dymamic library and copy it to blib/lib.
blib/lib
$api->build_dynamic_lib_dist_native($class_name)
Build a native dynamic library and copy it into blib/lib.
To install SPVM, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SPVM
CPAN shell
perl -MCPAN -e shell install SPVM
For more information on module installation, please visit the detailed CPAN module installation guide.