SPVM::Builder::Util::API - Defining Public Functions of SPVM::Builder::Util
The SPVM::Builder::Util::API class defines the public functions of the SPVM::Builder::Util class.
my $native_make_rule = SPVM::Builder::Util::API::create_make_rule_native('Foo'); my $precompile_make_rule = SPVM::Builder::Util::API::create_make_rule_precompile('Foo');
my $make_rule = SPVM::Builder::Util::API::create_make_rule_native($class_name);
Creates a rule written by make commands to generate a dynamic library for the class $class_name that contains native methods, and returns the rule.
make
Examples:
# Makefile.PL sub MY::postamble { my $make_rule = ''; # Native compile make rule $make_rule .= SPVM::Builder::Util::API::create_make_rule_native('Foo'); return $make_rule; }
my $make_rule = SPVM::Builder::Util::API::create_make_rule_precompile($class_name);
Creates a rule written by make commands to generate a dynamic library for the class $class_name that contains precompiled methods, and returns the rule.
# Makefile.PL sub MY::postamble { my $make_rule = ''; # Precompile make rule $make_rule .= SPVM::Builder::Util::API::create_make_rule_precompile('Foo'); return $make_rule; }
my $config = SPVM::Builder::Util::API::create_default_config();
Creates a default config, and returns it. The config is a SPVM::Builder::Config object.
The current implementation is the following one.
my $config = SPVM::Builder::Config->new_c99(file_optional => 1);
Copyright (c) 2023 Yuki Kimoto
MIT License
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.