From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id q2G8JcCV001690 for ; Fri, 16 Mar 2012 09:19:38 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AkIEABz3Yk9QW+UDgWdsb2JhbABDtDyBdSIBARYmJ4IJAQEFgQkLGBwSECwbGYgOB7lrjVeDIgSSRIMeiUyJQQ X-IronPort-AV: E=Sophos;i="4.73,597,1325458800"; d="scan'208";a="136361555" Received: from plane.gmane.org ([80.91.229.3]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/AES256-SHA; 16 Mar 2012 09:19:33 +0100 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1S8SNn-0000MS-HJ for caml-list@inria.fr; Fri, 16 Mar 2012 09:19:31 +0100 Received: from ks368928.kimsufi.com ([94.23.39.26]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 16 Mar 2012 09:19:31 +0100 Received: from sylvain by ks368928.kimsufi.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 16 Mar 2012 09:19:31 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: caml-list@inria.fr From: Sylvain Le Gall Date: Fri, 16 Mar 2012 08:19:17 +0000 (UTC) Message-ID: References: <4F62D213.6090307@riken.jp> X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: ks368928.kimsufi.com User-Agent: slrn/pre1.0.0-18 (Linux) Subject: [Caml-list] Re: oasis help: what to put in the _oasis file so that files are preprocessed Hello, On 16-03-2012, Francois Berenger wrote: > Hello, > > Let's say I have this section in an _oasis file: > > --- > Executable "Toto" > Path: src > MainIs: toto.ml > BuildDepends: batteries > BuildTools: ocamlbuild > --- > > I'd like the .ml file to be preprocessed using: > -pp 'camlp4o -parser Camlp4MacroParser' > > What should I add in the _oasis file to do this? > > Thanks a lot, > F. > For now, there is no native support of syntax directly inside _oasis. However, you can add to _tags (outside OASIS_START/STOP section): "src/oasis/OASISGettext.ml": syntax_camlp4o, pkg_camlp4.macro (see http://darcs.ocamlcore.org/cgi-bin/darcsweb.cgi?r=oasis/oasis;a=headblob;f=/_tags) Cheers, Sylvain Le Gall -- Linkedin: http://fr.linkedin.com/in/sylvainlegall Start an OCaml project here: http://forge.ocamlcore.org OCaml blogs: http://planet.ocamlcore.org