Re: Patch for typgen, adding -x option

Sylvain Joyeux <[email protected]>
Newsgroups gmane.science.robotics.orocos.devel
Message-ID <[email protected]>
On 02/01/2013 12:19 PM, Peter Soetens wrote:
> I wanted to pass typegen an option that informs it for which
> OROCOS_TARGET it needs to find the .pc files, while still keeping the
> 'normal' name for looking up the .tlb files.
>
> The minor patch in attachment adds such an option, -x <target>
>
> Ok to apply ?
You should create a toplevel imports array, gather all the -i options 
and resolve them at once after the call to parser.parse. Otherwise, the 
place of the -x option will matter.

Moreover, there is already an Orocos::Generation.orocos_target attribute 
that picks up the OROCOS_TARGET envvar automatically. You should 
probably use that by default, and set it within the -x option.

Sylvain
-- 
Orocos-Dev mailing list
[email protected]
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.