From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 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 1A213BBAF for ; Wed, 8 Apr 2009 11:59:46 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgECAAgS3EmB8ApGmWdsb2JhbACWHgEBAQEBCAsKBxG3QIN7Bg X-IronPort-AV: E=Sophos;i="4.38,431,1233529200"; d="scan'208";a="27275409" Received: from mail-forward1.uio.no ([129.240.10.70]) by mail1-smtp-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 08 Apr 2009 11:59:45 +0200 Received: from exim by mail-out1.uio.no with local-bsmtp (Exim 4.69) (envelope-from ) id 1LrUZM-0004WB-Td for caml-list@yquem.inria.fr; Wed, 08 Apr 2009 11:59:44 +0200 Received: from mail-mx3.uio.no ([129.240.10.44]) by mail-out1.uio.no with esmtp (Exim 4.69) (envelope-from ) id 1LrUZM-0004W8-SW for caml-list@yquem.inria.fr; Wed, 08 Apr 2009 11:59:44 +0200 Received: from fortran.simula.no ([129.240.229.254] helo=[192.168.100.135]) by mail-mx3.uio.no with esmtpsa (TLSv1:AES256-SHA:256) user hans (Exim 4.69) (envelope-from ) id 1LrUZM-0003HZ-JB for caml-list@yquem.inria.fr; Wed, 08 Apr 2009 11:59:44 +0200 Message-ID: <49DC757D.6080701@simula.no> Date: Wed, 08 Apr 2009 11:59:25 +0200 From: Hans Ole Rafaelsen User-Agent: Thunderbird 2.0.0.21 (X11/20090318) MIME-Version: 1.0 To: caml-list@yquem.inria.fr Subject: ocamlbuild and ocamlfind - using multiple grammars in a project Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-UiO-Spam-info: not spam, SpamAssassin (score=-5.0, required=5.0, autolearn=disabled, UIO_MAIL_IS_INTERNAL=-5, uiobl=NO, uiouri=NO) X-UiO-Scanned: EE80E4A19B189251EC6C5E129E28806203E0ED62 X-UiO-SPAM-Test: remote_host: 129.240.229.254 spam_score: -49 maxlevel 200 minaction 2 bait 0 mail/h: 4 total 11761 max/h 208 blacklist 0 greylist 0 ratelimit 0 X-Spam: no; 0.00; rafaelsen:01 ocamlfind:01 grammars:01 ocamlfind:01 submodule:01 syntaxes:01 camlp:01 camlp:01 syntax:01 submodule:01 makefile:01 preprocessor:01 defines:01 defines:01 variable:06 Hi I'm trying to build a project using ocamlbuild with ocamlfind. One submodule requires 'json-static' and another requires 'bitstring.syntax'. The preprocessors requires different syntaxes, resulting in the following error: ocamlfind: No unique value for the META variable 'preprocessor': package camlp4 defines `camlp4', package bitstring.syntax defines `camlp4of' Is there a way to make a myocamlbuild.ml file to select the preprocessor to use on a submodule/file basis? On a similar topic: Is it possible to tell ocamlbuild to use another file than myocamlbuild.ml for additional build instructions? At the moment I have a makefile that changes links to different files, but I'm not happy too with this method. Thanks Hans Ole