From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id C19DD7F75C for ; Wed, 10 Sep 2014 16:13:29 +0200 (CEST) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of adrien@notk.org) identity=pra; client-ip=91.121.71.147; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="adrien@notk.org"; x-sender="adrien@notk.org"; x-conformance=sidf_compatible Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of adrien@notk.org designates 91.121.71.147 as permitted sender) identity=mailfrom; client-ip=91.121.71.147; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="adrien@notk.org"; x-sender="adrien@notk.org"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@nautica.notk.org) identity=helo; client-ip=91.121.71.147; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="adrien@notk.org"; x-sender="postmaster@nautica.notk.org"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AikFAMFbEFRbeUeT/2dsb2JhbABZgw1TV4IsUMc1h1QBgQ8WeIQEAQUjVhALGgIFEw4CAg8FGDExiCipC5UlAReBLI4hB4J5NoEdBY8shkWHAQGBX5NPg2M7L4JPAQEB X-IPAS-Result: AikFAMFbEFRbeUeT/2dsb2JhbABZgw1TV4IsUMc1h1QBgQ8WeIQEAQUjVhALGgIFEw4CAg8FGDExiCipC5UlAReBLI4hB4J5NoEdBY8shkWHAQGBX5NPg2M7L4JPAQEB X-IronPort-AV: E=Sophos;i="5.04,499,1406584800"; d="scan'208";a="78453520" Received: from nautica.notk.org ([91.121.71.147]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/ADH-AES256-SHA; 10 Sep 2014 16:13:29 +0200 Received: by nautica.notk.org (Postfix, from userid 1003) id D5CD8C009; Wed, 10 Sep 2014 16:13:27 +0200 (CEST) Date: Wed, 10 Sep 2014 16:13:27 +0200 From: Adrien Nader To: Thomas Braibant Cc: David Sheets , Yotam Barnoy , Ocaml Mailing List Message-ID: <20140910141327.GA2974@notk.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Re: [Caml-list] One build system to rule them all? On that topic, I've recently cleaned up my build scripts for use in win-builds.org (which should see a release in a few weeks hopefully). For the oasis case, I only set OCAMLFIND_CONF to a file which contains: destdir="/opt/windows_32/lib/ocaml/site-lib" path="/opt/windows_32/lib/ocaml/site-lib" # Where the cross-compiler is installed stdlib="/opt/cross_toolchain_32/lib/ocaml" # I have this variable but I only do native compile so I don't # actually use it ldconf="/opt/windows_32/lib/ocaml/ld.conf" # Below, the .exe versions are the cross-compiler binaries; their # proper name should be something like "i686-w64-mingw32-ocamlopt.opt" # instead of "ocamlopt.opt.exe" ocamlc="ocamlc.opt.exe" ocamlopt="ocamlopt.opt.exe" # Btw, that one is needed too for C stubs libraries and hasn't been in # oasis since the beginning; only something like >= 0.4 ocamlmklib="ocamlmklib.exe" # And these are from the native toolchain, not the cross one (with my # most recent patches, these are cross-compiled and will be windows # executables) ocamldep="ocamldep.opt" ocamldoc="ocamldoc.opt" Then, my oasis configure invocation looks like: ocaml setup.ml -configure --prefix "/${PREFIX}" --mandir "/${PREFIX}/man" --override ext_dll .dll Very simple in practice. I also need to mention that this relies on oasis not using all the values it finds during configure. For instance it finds the host C compiler but it'll let ocamlbuild and in turn ocamlc call the C compiler. -- Adrien Nader