From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id p2IDVqfL016128 for ; Fri, 18 Mar 2011 14:31:53 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AmkHAHL7gk1QW+UMgWdsb2JhbACYdYx2FQEWJiWITbl2hWMEjGOGdg X-IronPort-AV: E=Sophos;i="4.63,205,1299452400"; d="scan'208";a="78646727" Received: from lo.gmane.org ([80.91.229.12]) by mail3-smtp-sop.national.inria.fr with ESMTP; 18 Mar 2011 14:31:47 +0100 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Q0ZmL-0006Nq-TM for caml-list@inria.fr; Fri, 18 Mar 2011 14:31:45 +0100 Received: from avelizy-155-1-93-116.w90-35.abo.wanadoo.fr ([90.35.88.116]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 18 Mar 2011 14:31:45 +0100 Received: from sylvain by avelizy-155-1-93-116.w90-35.abo.wanadoo.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 18 Mar 2011 14:31:45 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: caml-list@inria.fr From: Sylvain Le Gall Date: Fri, 18 Mar 2011 13:31:32 +0000 (UTC) Message-ID: References: <2D9A1F57-3F23-41C2-8B01-E7A394AEB808@gmail.com> X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: avelizy-155-1-93-116.w90-35.abo.wanadoo.fr User-Agent: slrn/pre1.0.0-18 (Linux) Subject: [Caml-list] Re: oasis and thrift On 18-03-2011, Joel Reymont wrote: > I have Thrift files like foo.thrift and need to run 'thrift -gen ocaml > -o foo.thrift' which will produce foo.ml and some other > files in the output directory. > > How do I integrate this into Oasis? > The best you can do is to integrate this into the generated myocamlbuild.ml. As far as you write something outside the OASIS_START/STOP section, it will be kept after regeneration of the matching file. See how ocamlify is integrated with myocamlbuild.ml here: http://darcs.ocamlcore.org/cgi-bin/darcsweb.cgi?r=oasis/oasis;a=headblob;f=/myocamlbuild.ml line 87 to 112 To trigger the generation, you'll have to depend in a way to foo.ml (e.g. if it is a library Modules: Foo or InternalModules: Foo) > > P.S. Oasis is awesome! > Thank you Cheers, Sylvain Le Gall -- My company: http://www.ocamlcore.com Linkedin: http://fr.linkedin.com/in/sylvainlegall Start an OCaml project here: http://forge.ocamlcore.org OCaml blogs: http://planet.ocamlcore.org