Name
SPVM::Builder::API - Builder APIs
Description
SPVM::Builder::API class has the public methods to build SPVM native classes and SPVM precompilation classes.
Usage
SPVM::Builder::API::build_parallel({
build_dir => '.spvm_build',
native_classes => ['MyClass'],
precompile_classes => ['MyClass'],
});
Functions
build_parallel_dynamic_lib_dist
SPVM::Builder::API::build_parallel_dynamic_lib_dist($options);
Generates dynamic libraries for multiple native classes and precompile classes in parallel, and copies them into the blib/lib directory.
$options is a hash reference.
Options
build_dirA build directory.
output_dirA output directory.
jobsThe number of parallel jobs. The default value is the number of CPU cores.
config_global_fileA global configuration file path. If it is defined, the file is loaded as an SPVM::Builder::Config::Global object and applied globally during the build process.
native_classesAn array reference of native class names to be built.
native_classes_fileA path to a text file containing native class names to be built. The file must contain one class name per line. If both
native_classesand this option are specified, they are merged.precompile_classesAn array reference of precompile class names to be built.
precompile_classes_fileA path to a text file containing precompile class names to be built. The file must contain one class name per line. If both
precompile_classesand this option are specified, they are merged.
If this option is specified, it overrides the optimize option and sets appropriate flags for both the compiler and the linker to match CMake's behavior.
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 118:
=back without =over