From: Dario Teixeira <darioteixeira@yahoo.com>
To: Anil Madhavapeddy <anil@recoil.org>
Cc: OCaml Mailing List <caml-list@inria.fr>,
pgocaml-general <pgocaml-general@lists.forge.ocamlcore.org>
Subject: Re: [Caml-list] Conditional BuildDepends in OASIS
Date: Fri, 26 Oct 2012 10:56:59 -0700 (PDT) [thread overview]
Message-ID: <1351274219.20181.YahooMailNeo@web111501.mail.gq1.yahoo.com> (raw)
In-Reply-To: <58E915E9-0BD4-4F0B-9581-B446C93A4EB8@recoil.org>
Hi,
Thanks for the suggestions, Anil!
> However, your use case seems a little different, as I presume the
> external interface of pgocaml doesn't vary by your choice of Extlib
> or Batteries?
Indeed.
> Despite this, it might be easier just to define a "pgocaml.batteries"
> and "pgocaml.extlib" and leave the choice with the user as to which
> one they would like to select. You can make the dependency optional
> at compile time so the package doesn't generated; e.g.
>
> Library cohttp_lwt_unix
> Build$: flag(lwt)
> Install$: flag(lwt)
> Path: lwt
> Findlibname: lwt
> FindlibParent: cohttp
> BuildDepends: lwt.unix, uri, cohttp, lwt.ssl, lwt.syntax
> Modules: Cohttp_lwt_unix, (etc...)
That would be a satisfactory solution. I did run into a different problem, though.
I told OASIS that "pgocaml.batteries" and "pgocaml.extlib" should have "pgocaml"
as their findlib parent (fragment below). Unfortunately, OASIS complains that
library "pgocaml" does not exist. How would I tell OASIS that "pgocaml" is a
dummy library?
Flag "batteries"
Description: Use Batteries
Default: true
Library "pgocaml_batteries"
Build$: flag(batteries)
Install$: flag(batteries)
Path: src
Modules: PGOCaml
BuildDepends: calendar, batteries
ByteOpt+: -ppopt -DUSE_BATTERIES
NativeOpt+: -ppopt -DUSE_BATTERIES
FindlibParent: pgocaml
Findlibname: batteries
Thanks again for your attention!
Cheers,
Dario
next prev parent reply other threads:[~2012-10-26 17:57 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-25 13:57 Dario Teixeira
2012-10-25 20:12 ` Anil Madhavapeddy
2012-10-26 17:56 ` Dario Teixeira [this message]
2012-10-26 21:34 ` Anil Madhavapeddy
2012-10-30 22:57 ` [Caml-list] " Sylvain Le Gall
2012-11-01 15:18 ` Dario Teixeira
2012-11-02 0:56 ` Anil Madhavapeddy
2012-11-02 18:08 ` Dario Teixeira
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1351274219.20181.YahooMailNeo@web111501.mail.gq1.yahoo.com \
--to=darioteixeira@yahoo.com \
--cc=anil@recoil.org \
--cc=caml-list@inria.fr \
--cc=pgocaml-general@lists.forge.ocamlcore.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).