NAME

Upp::Reader reads upp files

SYNOPSIS

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', '') ;

DESCRIPTION

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.

Subroutines

-my ($filelist, $options, $link) = Upp::Reader::extract(content_of_upp_file)

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

my ($filelist, $options, $link) = Upp::Reader::read_upp(filename);

e.g. my ($filelist, $options, $link) = Upp::Reader::read_upp('sqlproject.upp');

$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 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

SEE ALSO

http://www.ultimatepp.org/

Ultimate++ IDE homepage

VERSION

$Revision: 0.1 $

SCRIPT CATEGORIES

CPAN

PREREQUISITES

None

AUTHOR

Marton Papp <equinox at atw dot hu>

COPYRIGHT

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:

Around line 290:

You forgot a '=back' before '=head1'