Want to run configure to generate header

View: New views
3 Messages — Rating Filter:   Alert me  

Want to run configure to generate header

by Daniel Lidström :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I have a project that needs to run configure before being built. This should generate the header config.h.
Here's how I tried to solve this:

alias config-header
    : config.h
    ;

make config.h
    :
    : make-configure
    ;

actions make-configure
{
    ./configure
}

lib sbg_fltk
    : config-header
      src/Fl_Double_Window.cxx
      .
      .
      .
    ;

This doesn't run configure though, and Fl_Double_Window.cxx fails to compile.
Any ideas on what I should do?

Thanks in advance!

/Daniel Lidström
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

Re: Want to run configure to generate header

by Vladimir Prus-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Daniel Lidström wrote:

> Hello,
>
> I have a project that needs to run configure before being built. This should generate the header
> config.h. Here's how I tried to solve this:
>
> alias config-header
>     : config.h
>     ;
>
> make config.h
>     :
>     : make-configure
>     ;
>
> actions make-configure
> {
>     ./configure
> }
>
> lib sbg_fltk
>     : config-header
>       src/Fl_Double_Window.cxx
>       .
>       .
>       .
>     ;
>
> This doesn't run configure though, and Fl_Double_Window.cxx fails to compile.
> Any ideas on what I should do?

Daniel,
try

        <implicit-dependency>config-header

in requirements. Because '.h' files are not actually used when building 'lib'
at all, the 'config-header' in sources is ignored.

HTH,
Volodya


_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

Re: Want to run configure to generate header

by Daniel Lidström :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> Daniel,
> try
>
>         <implicit-dependency>config-header
>
> in requirements. Because '.h' files are not actually used
> when building 'lib'
> at all, the 'config-header' in sources is ignored.

Thank you Volodya, this worked for me.

/Daniel
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build