SPVM::Builder::CompileInfo - Link Information
SPVM::Builder::CompileInfo is a compile information. This infromation is used by the compileer.
SPVM::Builder::CompileInfo
my $output_file = $compile_info->output_file; $compile_info->output_file($output_file);
Get and set the source file that is compiled.
my $cc = $compile_info->cc; $compile_info->cc($cc);
Get and set the compileer name.
my $ccflags = $compile_info->ccflags; $compile_info->ccflags($ccflags);
Get and set the compileer flags. The default value is [].
[]
my $optimize = $compile_info->optimize; $compile_info->optimize($optimize);
Get and set the optimize.
my $builder_include_dir = $compile_info->builder_include_dir; $compile_info->builder_include_dir($builder_include_dir);
Get and set the builder include directory.
my $include_dirs = $source_file->include_dirs; $source_file->include_dirs($include_dirs);
Get and set the include directories. The default is [].
my $source_file = $compile_info->source_file; $compile_info->source_file($source_file);
Get and set the source file.
my $class_name = $compile_info->class_name; $compile_info->class_name($class_name);
Get and set the class name.
my $config = $compile_info->config; $compile_info->config($config);
Get and set the config that is used to compile the source file.
my $compile_info = SPVM::Builder::CompileInfo->new;
Create a new SPVM::Builder::CompileInfo object.
my $merged_ccflags = $compile_info->create_merged_ccflags;
Get the merged ccflags as an array reference.
Examples:
[qw(-O2 -Iinclude_dir)]
my $compile_command = $compile_info->create_compile_command;
Get the compile command as an array reference.
[qw(cc -c -o foo.o -O2 -Iinclude_dir foo.c)]
my $string = $compile_info->to_string;
Get the string representaion of the compile command.
cc -c -O2 -Iinclude_dir -o foo.o foo.c
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.