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_dir

    A build directory.

  • output_dir

    A output directory.

  • jobs

    The number of parallel jobs. The default value is the number of CPU cores.

  • config_global_file

    A 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_classes

    An array reference of native class names to be built.

  • native_classes_file

    A path to a text file containing native class names to be built. The file must contain one class name per line. If both native_classes and this option are specified, they are merged.

  • precompile_classes

    An array reference of precompile class names to be built.

  • precompile_classes_file

    A path to a text file containing precompile class names to be built. The file must contain one class name per line. If both precompile_classes and 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