Re: Forcing an order for build_elements
Eric Wilhelm <[email protected]> Sat, 13 Feb 2010 13:32:46 -0800
| Newsgroups | gmane.comp.lang.perl.modules.module-build |
|---|---|
| Message-ID | <[email protected]> |
# from Marvin Humphrey
# on Saturday 13 February 2010 13:12:
>> 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;
> }
I believe depends_on() would be more appropriate there.
On a related note, wouldn't sprinkling some =head2 into M::B::API be
useful?
--Eric
--
We who cut mere stones must always be envisioning cathedrals.
--Quarry worker's creed
---------------------------------------------------
http://scratchcomputing.com
---------------------------------------------------