caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Conditional BuildDepends in OASIS
@ 2012-10-25 13:57 Dario Teixeira
  2012-10-25 20:12 ` Anil Madhavapeddy
  0 siblings, 1 reply; 8+ messages in thread
From: Dario Teixeira @ 2012-10-25 13:57 UTC (permalink / raw)
  To: OCaml Mailing List; +Cc: pgocaml-general

Hi,

I'm in the process of oasifying PG'OCaml, and I've hit a snag.
By default PG'OCaml depends on ExtLib, but it's possible to
use Batteries instead.  Below is a fragment of my (naïve) first
attempt at telling OASIS about this configuration option:


Flag "use_batteries"
  Description: Use Batteries instead of ExtLib
  Default: false

Library "pgocaml"
  Path:                 src
  Modules:              PGOCaml
  BuildTools:           ocamlbuild, camlp4
  BuildDepends:         calendar
  if flag(use_batteries)
    BuildDepends+:      batteries
    ByteOpt+:           -ppopt -DUSE_BATTERIES
    NativeOpt+:         -ppopt -DUSE_BATTERIES
  else
    BuildDepends+:      extlib

The problem is that OASIS complains about BuildDepends being

placed inside a conditional.  Is this an oversight, or are there good
reasons (and hopefully a standard workaround) for this limitation?

Thanks in advance!
Cheers,
Dario Teixeira


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-11-02 18:08 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-25 13:57 [Caml-list] Conditional BuildDepends in OASIS Dario Teixeira
2012-10-25 20:12 ` Anil Madhavapeddy
2012-10-26 17:56   ` Dario Teixeira
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

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).