From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id 97ABDBBAF for ; Sat, 27 Nov 2010 11:20:54 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AokFAFpq8ExQW+UMgWdsb2JhbACVC44BFgEWIiK9eIVHBIph X-IronPort-AV: E=Sophos;i="4.59,265,1288566000"; d="scan'208";a="89478569" Received: from lo.gmane.org ([80.91.229.12]) by mail1-smtp-roc.national.inria.fr with ESMTP; 27 Nov 2010 11:20:54 +0100 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PMHth-0006tT-5k for caml-list@inria.fr; Sat, 27 Nov 2010 11:20:49 +0100 Received: from avelizy-155-1-41-182.w83-204.abo.wanadoo.fr ([83.204.200.182]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 27 Nov 2010 11:20:49 +0100 Received: from sylvain by avelizy-155-1-41-182.w83-204.abo.wanadoo.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 27 Nov 2010 11:20:49 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: caml-list@inria.fr From: Sylvain Le Gall Subject: Re: oasis Date: Sat, 27 Nov 2010 10:20:38 +0000 (UTC) Message-ID: References: <20101126183832.GA10787@ermine.home> X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: avelizy-155-1-41-182.w83-204.abo.wanadoo.fr User-Agent: slrn/pre1.0.0-18 (Linux) X-Spam: no; 0.00; le-gall:01 freetype:01 freetype:01 ocaml:01 runtime:01 ocamlc:01 ocamlopt:01 flags:01 wrote:01 data:02 data:02 define:02 defined:02 variables:02 output:02 Hi, On 26-11-2010, Anastasia Gornostaeva 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