Márton Papp > Upp-Reader-0.1 > Upp::Reader

Download:
Upp-Reader-0.1.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.1   Source  

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:

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.

sub make_compilation ( $filelist, $options, $link, $target, $compiler_exe, $linker_exe, $compiler_flags, $link_flags )

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.

syntax highlighting: