mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 03:05:28 -05:00
add a flag to compile containers.advanced only if sequence is installed
This commit is contained in:
parent
b6f60c6af6
commit
90f71e08c9
3 changed files with 10 additions and 2 deletions
6
_oasis
6
_oasis
|
|
@ -41,6 +41,10 @@ Flag "bigarray"
|
|||
Description: Build modules that depend on bigarrays
|
||||
Default: false
|
||||
|
||||
Flag "advanced"
|
||||
Description: Build advanced combinators, including CCLinq (requires "sequence")
|
||||
Default: true
|
||||
|
||||
Library "containers"
|
||||
Path: src/core
|
||||
Modules: CCVector, CCPrint, CCError, CCHeap, CCList, CCOpt, CCPair,
|
||||
|
|
@ -86,6 +90,8 @@ Library "containers_advanced"
|
|||
Path: src/advanced
|
||||
Pack: true
|
||||
Modules: CCLinq, CCBatch, CCCat, CCMonadIO
|
||||
Build$: flag(advanced)
|
||||
Install$: flag(advanced)
|
||||
FindlibName: advanced
|
||||
FindlibParent: containers
|
||||
BuildDepends: containers, sequence
|
||||
|
|
|
|||
|
|
@ -101,7 +101,8 @@ Use bigarrays to hold large strings and map files directly into memory.
|
|||
|
||||
{4 Advanced}
|
||||
|
||||
This module is qualified with [Containers_advanced].
|
||||
This module is qualified with [Containers_advanced]. It
|
||||
requires {{:https://github.com/c-cube/sequence} Sequence}.
|
||||
|
||||
{!modules: CCLinq CCCat CCBatch}
|
||||
|
||||
|
|
|
|||
3
opam
3
opam
|
|
@ -5,6 +5,7 @@ build: [
|
|||
["./configure" "--prefix" prefix "--disable-thread" "--disable-bench"
|
||||
"--disable-tests" "--%{lwt:enable}%-lwt"
|
||||
"--%{base-bigarray:enable}%-bigarray"
|
||||
"--%{sequence:enable}%-advanced"
|
||||
"--enable-docs" "--enable-misc"]
|
||||
[make "build"]
|
||||
]
|
||||
|
|
@ -27,7 +28,7 @@ depends: [
|
|||
"base-bytes"
|
||||
"cppo" {build}
|
||||
]
|
||||
depopts: [ "lwt" ]
|
||||
depopts: [ "lwt" "sequence" "base-bigarray" ]
|
||||
tags: [ "stdlib" "containers" "iterators" "list" "heap" "queue" ]
|
||||
homepage: "https://github.com/c-cube/ocaml-containers/"
|
||||
doc: "http://cedeela.fr/~simon/software/containers/"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue