Re: build inline program with pp

[email protected] (David Oswald)
Newsgroups perl.inline
Message-ID <CAKTcQ94unCvBrwb1Q0cmBhdP45wXnZyMMpLYee0FAu4CJjJuJA@mail.gmail.com>
On Thu, Apr 19, 2012 at 7:37 PM, Sisyphus <[email protected]> wrote:
>
> ----- Original Message ----- From: "Xiao Yafeng" <[email protected]>

> c2xs --m=XYZ --write_makefile_pl=1 --inc=-I/here -I/there --write_pm=1
> would equate to:
> c2xs('XYZ', 'XYZ', '.', {WRITE_MAKEFILE_PL=>1, INC=>'-I/here -I/there',
> WRITE_PM=>1});
>
> Would that be ok ? If not, let me know - I don't have any definite rules
> about this. (Error checking would be built in, of course.)

...while you're at it... (I'm sure you know what will come next):
InlineX::CPP2XS would benefit from similar treatment.

Would it make sense for the command-line version to exist within the
App:: namespace?  App::InlineX::CPP2XS, for example.

As for how it should be invoked... sane defaults, easily overridden
from the command line (my vote).

-- 

David Oswald
[email protected]
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.