SPVM::Builder::API - Defining Public Functions of SPVM::Builder
The SPVM::Builder::API class defines the public methods of the SPVM::Builder class.
my $builder = SPVM::Builder::API->new( build_dir => '.spvm_build', ); $builder->build_dynamic_lib_dist_precompile('MyClass'); $builder->build_dynamic_lib_dist_native('MyClass');
my $builder = SPVM::Builder::API->new(%options);
Creates a new SPVM::Builder::API object.
Options:
build_dir
The building directory.
$builder->build_dynamic_lib_dist_precompile($basic_type_name)
Generates a dynamic library for a class $basic_type_name that has precompile methods, and copies it to the blib/lib directory.
precompile
blib/lib
$builder->build_dynamic_lib_dist_native($basic_type_name)
Generates a dynamic library for a class $basic_type_name that has native methods, and copies it to the blib/lib directory.
native
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.