SPVM::Builder::Resource - Resourceurations of Compile and Link of Native Sources
my $resource = SPVM::Builder::Resource->new( class_name => 'Resource::Zlib::V1_0_0', mode => 'prod', args => ['foo', 'bar'], );
SPVM::Builder::Resource is a resource that contains a set of C/C++ source files and the headers.
SPVM::Builder::Resource
C
C++
my $class_name = $resource->class_name; $resource->class_name($class_name);
Get and set the class name of the resource.
my $mode = $resource->mode; $resource->mode($mode);
Get and set the mode of the config file of the resource.
my $args = $resource->args; $resource->args($args);
Get and set the arguments of the config file of the resource.
my $config = $resource->config; $resource->config($config);
Get and set the config of the resource. The config is a SPVM::Builder::Config object.
my $resource = SPVM::Builder::Resource->new; my $resource = SPVM::Builder::Resource->new(%fields);
Create a SPVM::Builder::Resource object.
Examples:
my $string = $resource->to_string;
Get the string representation. This is the same as the value of /"class_name".
/"class_name"
SPVM::Builder::Resource overloads the following operators.
my $bool = !!$object_file_info;
Always true.
my $object_file_name = "$object_file_info";
Alias for "to_string".
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.