Version française
Home     About     Download     Resources     Contact us    
Browse thread
oasis
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Anastasia Gornostaeva <ermine@e...>
Subject: Re: [Caml-list] Re: oasis
On Sat, Nov 27, 2010 at 10:20:38AM +0000, Sylvain Le Gall wrote:
> Hi,
> 
> On 26-11-2010, Anastasia Gornostaeva <ermine@ermine.pp.ru> wrote:
> > Hello.
> >
> > How can I substitute in setup.ml (not in _oasis file) values for
> > CCOpt and CCLib fields? I think it is better to substitute them from 
> > setup.data, if I could to put proper values to setup.data.
> > For example:
> >   CCOpt: $freetype_ccopt
> > and put to setup.data output of `freetype-config --clib` for field 
> > freetype_ccopt.
> 
> As I answer you in private: there will be pkg-config support in 0.3.0.
> This will solve this issue, at least.
> (e.g. you will be able to define:
> BuildDepends: freetype2 (pkg-config), oUnit, ...)

Sorry, but i didnt receive your mail..
And pkg-config probably is not best solution on bsd and macosx systems because
it does not guarante nothing.
The best (and common) solution is CFLAGS and LIBS env variables. :-)
Or this pkg-config will allow custom paths for those C librares that do not
depend on pkg-config at concrete systems?

[...]

> > I need a way to substitute paths.
> >
> 
> A last solution, you can apply right now, is to override this call:
> let () = setup ();;
> (last line of setup.ml)
> 
> by 
> 
> let f pkg = 
>   (* Call freetype-config and add flags where 
>      needed in pkg
>    *)
>   ...
> 
> let () = BaseSetup.setup (f setup_t);;

Interesting way. Thanks, I'll ckeck it right how.

Thanks.

ermine