caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Sylvain Le Gall <sylvain@le-gall.net>
To: caml-list@inria.fr
Subject: Re: oasis
Date: Sat, 27 Nov 2010 10:20:38 +0000 (UTC)	[thread overview]
Message-ID: <slrnif1mrm.r67.sylvain@gallu.homelinux.org> (raw)
In-Reply-To: <20101126183832.GA10787@ermine.home>

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, ...)

>
> The expected alternative way:
>   $ocaml setup.ml -build --override 'library("library-name").CCOpt' `freetype-config --clib`
> does not work, too.

The override stuff only works for defined runtime variables (ocamlc,
ocamlopt...). 

>
> 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);;

Regards,
Sylvain Le Gall


  reply	other threads:[~2010-11-27 10:20 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-26 18:38 oasis Anastasia Gornostaeva
2010-11-27 10:20 ` Sylvain Le Gall [this message]
2010-11-27 13:10   ` [Caml-list] oasis Anastasia Gornostaeva
2010-11-28 17:17     ` oasis Sylvain Le Gall
2010-11-29 19:46       ` [Caml-list] oasis Anastasia Gornostaeva
2010-11-29 20:52         ` Sylvain Le Gall
2010-11-29 21:19           ` Anastasia Gornostaeva

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=slrnif1mrm.r67.sylvain@gallu.homelinux.org \
    --to=sylvain@le-gall.net \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).