Upp::Reader reads upp files
my ($filelist, $options, $link) = Upp::Reader::extract($content_of_upp_file);
my ($filelist, $options, $link) = Upp::Reader::read_upp($filename);
print Upp::Reader::make_compilation (Upp::Reader::read_upp($filename), 'GCC', 'gcc.exe','ld.exe', '-DRELEASE', '') ;
It can read Ultimate++ Ide project files and extract information contained in there. They have .upp extension.
These are extracted:
list of files in the project
list of options(compiler flags) for each file
general compiler flags which are used at each compilation
linker flags
There is a Limitation: used packages are not read.
e.g. my ($filelist, $options, $link) = Upp::Reader::extract($content);
$filelist is a referece to a array. It is the list of files with their compiler flags $options is a reference to a hash. $link is reference to a hash.
From the upp file contant it extracts project related information.
See make_compilation subroutine for data structure of $filelist, $options and $link
e.g. my ($filelist, $options, $link) = Upp::Reader::read_upp('sqlproject.upp');
From the upp file it extracts project related information.
First three parameter must come from read_upp or extract.
$compiler_exe itself $linker_exe itself $compiler_flags additional compiler flags $link_flags additional linker flags
It returns a string containing a list of commands separated by new line that can compile and link the project
Ultimate++ IDE homepage
$Revision: 0.1 $
CPAN
None
Marton Papp <equinox at atw dot hu>
Copyright (c) 2012 Marton Papp.
This script is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
1 POD Error
The following errors were encountered while parsing the POD:
You forgot a '=back' before '=head1'
To install Upp::Reader, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Upp::Reader
CPAN shell
perl -MCPAN -e shell install Upp::Reader
For more information on module installation, please visit the detailed CPAN module installation guide.