From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id q0H7mK1O001895 for ; Tue, 17 Jan 2012 08:48:21 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Au8AAKEmFU+GoCGhmWdsb2JhbABErDGBKAEBAQEBCAsLBxQlgXIBAQU4QAEQCxgJFg8JAwIBAgFFEwEHAQG+H4hyAQcFFAQBDgUBAQUDBA0FCwQCBAEFCAUEEQUBBgEBBgEFByUBAgEBBQMBAQEBAhYVAwEGDAcCAgMdAwEGCQIBDQEBAwsCCwILAwEBCYFCGiJAgxwEiDmMWIVRjH8 X-IronPort-AV: E=Sophos;i="4.71,522,1320620400"; d="scan'208";a="140047387" Received: from postman1.riken.jp (HELO postman.riken.jp) ([134.160.33.161]) by mail1-smtp-roc.national.inria.fr with ESMTP; 17 Jan 2012 08:48:14 +0100 Received: from postman.riken.jp (postman1.riken.jp [127.0.0.1]) by postman.riken.jp (Postfix) with SMTP id E7E9A32C01A8; Tue, 17 Jan 2012 16:48:11 +0900 (JST) Received: from [172.27.98.103] (rikad98.riken.jp [134.160.214.98]) by postman.riken.jp (Postfix) with ESMTPA id D55EE32A008B; Tue, 17 Jan 2012 16:48:11 +0900 (JST) Message-ID: <4F1527BB.1070509@riken.jp> Date: Tue, 17 Jan 2012 16:48:11 +0900 From: Francois Berenger User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111108 Thunderbird/3.1.16 MIME-Version: 1.0 To: caml-list@yquem.inria.fr CC: ocaml_beginners@yahoogroups.com References: <4F14E234.7000407@riken.jp> In-Reply-To: <4F14E234.7000407@riken.jp> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.6.0.2009776, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2012.1.17.72121 Subject: [Caml-list] Re: OASIS help : adding -pp camlp4of and camlp4.gramlib to the compilation flags On 01/17/2012 11:51 AM, Francois Berenger wrote: > Hello, > > I'd like to preprocess some source files. > Gabriel Scherer advised me to use the options > mentioned in the title of this e-mail. > > What should I modify in an oasis project in order to > add these compilation flags? > > I guess something should be added to the _oasis file. > I did not find anything in the oasis documentation about > using a preprocessor. > > Here is an example build command that works, issued > by a Makefile for the moment: > > ocamlfind ocamlopt -package camlp4.gramlib,batteries -linkpkg -o > test_logger -annot -g -pp camlp4of logger.ml test_logger.ml In fact, now I only need to use cppo to preprocess my source files. So the updated command is: ocamlfind ocamlopt -package batteries -linkpkg -o test_logger -annot -g -pp cppo logger.ml test_logger.ml How do I request oasis to preprocess all files using cppo? Thanks a lot, Francois.