Hey, Marvin
Thanks for your link. I think it might get handy.
My main problem is that I lack knowledge on building the xs code myself.
With luck I can take same of your code and learn...
Thanks
Alberto
On 13/02/2010 21:12, Marvin Humphrey wrote:
> On Sat, Feb 13, 2010 at 08:26:36PM +0000, Alberto Simões wrote:
>
>> But if I want to use c_source or xs_files and the build for these
>> elements depend on a build element, how can I force the order?
>
> Use Module::build's actions.
>
> sub ACTION_code {
> my $self = shift;
> $self->dispatch("configure");
> $self->SUPER::ACTION_code;
> }
>
> For what it's worth, KinoSearch has an involved multi-stage build process, and
> we avoid c_source altogether, preferring to create our own CBuilder objects
> directly. You might find it useful to take a look at our dev branch M::B
> subclass to see how we've handled things.
>
>
> http://cpansearch.perl.org/src/CREAMYG/KinoSearch-0.30_082/buildlib/KinoSearch/Build.pm
>
> Marvin Humphrey
>
--
Alberto Simões