Re: [PATCH] EU::CBuilder compile supporting include_dirs as a string

2010-02-13 Thread David Golden
Alberto -- could you please send patches to the M::B RT queue? I've been using that aggressively to triage and stage issues and it's very helpful to make sure things don't get lost. I'm very supportive of your changes, but I'm only doing critical M::B patches at the moment as I'm very overloaded

Re: Forcing an order for build_elements

2010-02-13 Thread Marvin Humphrey
On Sat, Feb 13, 2010 at 09:16:44PM +, Alberto Simões wrote: > My main problem is that I lack knowledge on building the xs code myself. Take a look at the ACTION_compile_custom_xs method. It's basically a manual override for compiling and linking a multi-module C library into a single XS shar

Re: Forcing an order for build_elements

2010-02-13 Thread Eric Wilhelm
# 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->

Re: Forcing an order for build_elements

2010-02-13 Thread Alberto Simões
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 +, Albert

Re: Forcing an order for build_elements

2010-02-13 Thread Marvin Humphrey
On Sat, Feb 13, 2010 at 08:26:36PM +, 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->dispa

Forcing an order for build_elements

2010-02-13 Thread Alberto Simões
Hi As far as I could find out, add_build_elements add a build element to an array or so, and that order is maintained. 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? Thank you Alberto -- Alberto Simões

[PATCH] EU::CBuilder compile supporting include_dirs as a string

2010-02-13 Thread Alberto Simões
Hey David, hi MB fans, Accordingly with the documentation, ExtUtils::CBuilder compile method support 'include_dirs' as Specifies any additional directories in which to search for header files. May be given as a string indicating a single directory, or as a list reference indicating mu

[PATCH] Support multiple c_source directories

2010-02-13 Thread Alberto Simões
Hey This attach is a simple patch to support an anonymous array of directories where to search for C code. It got handy. Hope it can be applied, as I am already using it... O:-) Cheers ambs -- Alberto Simões Only in Module-Build-mine/: Build Only in Module-Build-mine/: MYMETA.yml Only in Module

Re: Help building a C library

2010-02-13 Thread Alberto Simões
On 13/02/2010 14:23, Michael G Schwern wrote: > Alberto Simões wrote: >> Hello. >> >> On 12/02/2010 22:26, David Golden wrote: >>> I have very little experience what what you describe, but I know the >>> M::B API reasonable well. :-) >> >> I think c_source will not be enough, but I will try to f

Re: Help building a C library

2010-02-13 Thread Michael G Schwern
Alberto Simões wrote: Hello. On 12/02/2010 22:26, David Golden wrote: I have very little experience what what you describe, but I know the M::B API reasonable well. :-) I think c_source will not be enough, but I will try to find out. A quick question: where can I add code (perl code) to be

Re: Help building a C library

2010-02-13 Thread Alberto Simões
Hello. On 12/02/2010 22:26, David Golden wrote: > I have very little experience what what you describe, but I know the > M::B API reasonable well. :-) I think c_source will not be enough, but I will try to find out. A quick question: where can I add code (perl code) to be run during the build p