This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
85
unikernel/duniverse/logs/pkg/META
Normal file
85
unikernel/duniverse/logs/pkg/META
Normal file
|
|
@ -0,0 +1,85 @@
|
|||
description = "Logging infrastructure for OCaml"
|
||||
version = "0.9.0+dune2"
|
||||
requires = ""
|
||||
archive(byte) = "logs.cma"
|
||||
archive(native) = "logs.cmxa"
|
||||
plugin(byte) = "logs.cma"
|
||||
plugin(native) = "logs.cmxs"
|
||||
exists_if = "logs.cma logs.cmxa"
|
||||
|
||||
package "browser" (
|
||||
directory = "browser"
|
||||
description = "The logs.browser library"
|
||||
version = "0.9.0+dune2"
|
||||
requires = "logs js_of_ocaml-compiler.runtime"
|
||||
exports = "logs"
|
||||
archive(byte) = "logs_browser.cma"
|
||||
archive(native) = "logs_browser.cmxa"
|
||||
plugin(byte) = "logs_browser.cma"
|
||||
plugin(native) = "logs_browser.cmxs"
|
||||
exists_if = "logs_browser.cma logs_browser.cmxa"
|
||||
)
|
||||
|
||||
package "cli" (
|
||||
directory = "cli"
|
||||
description = "The logs.cli library"
|
||||
version = "0.9.0+dune2"
|
||||
requires = "logs cmdliner"
|
||||
exports = "logs"
|
||||
archive(byte) = "logs_cli.cma"
|
||||
archive(native) = "logs_cli.cmxa"
|
||||
plugin(byte) = "logs_cli.cma"
|
||||
plugin(native) = "logs_cli.cmxs"
|
||||
exists_if = "logs_cli.cma logs_cli.cmxa"
|
||||
)
|
||||
|
||||
package "fmt" (
|
||||
directory = "fmt"
|
||||
description = "The logs.fmt library"
|
||||
version = "0.9.0+dune2"
|
||||
requires = "logs fmt"
|
||||
exports = "logs"
|
||||
archive(byte) = "logs_fmt.cma"
|
||||
archive(native) = "logs_fmt.cmxa"
|
||||
plugin(byte) = "logs_fmt.cma"
|
||||
plugin(native) = "logs_fmt.cmxs"
|
||||
exists_if = "logs_fmt.cma logs_fmt.cmxa"
|
||||
)
|
||||
|
||||
package "lwt" (
|
||||
directory = "lwt"
|
||||
description = "The logs.lwt library"
|
||||
version = "0.9.0+dune2"
|
||||
requires = "logs lwt"
|
||||
exports = "logs"
|
||||
archive(byte) = "logs_lwt.cma"
|
||||
archive(native) = "logs_lwt.cmxa"
|
||||
plugin(byte) = "logs_lwt.cma"
|
||||
plugin(native) = "logs_lwt.cmxs"
|
||||
exists_if = "logs_lwt.cma logs_lwt.cmxa"
|
||||
)
|
||||
|
||||
package "threaded" (
|
||||
directory = "threaded"
|
||||
description = "The logs.threaded library"
|
||||
version = "0.9.0+dune2"
|
||||
requires = "logs threads.posix"
|
||||
exports = "logs"
|
||||
archive(byte) = "logs_threaded.cma"
|
||||
archive(native) = "logs_threaded.cmxa"
|
||||
plugin(byte) = "logs_threaded.cma"
|
||||
plugin(native) = "logs_threaded.cmxs"
|
||||
exists_if = "logs_threaded.cma logs_threaded.cmxa"
|
||||
)
|
||||
|
||||
package "top" (
|
||||
directory = "top"
|
||||
description = "The logs.top library"
|
||||
version = "0.9.0+dune2"
|
||||
requires = "logs"
|
||||
archive(byte) = "logs_top.cma"
|
||||
archive(native) = "logs_top.cmxa"
|
||||
plugin(byte) = "logs_top.cma"
|
||||
plugin(native) = "logs_top.cmxs"
|
||||
exists_if = "logs_top.cma logs_top.cmxa"
|
||||
)
|
||||
29
unikernel/duniverse/logs/pkg/pkg.ml
Executable file
29
unikernel/duniverse/logs/pkg/pkg.ml
Executable file
|
|
@ -0,0 +1,29 @@
|
|||
#!/usr/bin/env ocaml
|
||||
#use "topfind"
|
||||
#require "topkg"
|
||||
open Topkg
|
||||
|
||||
let jsoo = Conf.with_pkg "js_of_ocaml-compiler"
|
||||
let cmdliner = Conf.with_pkg "cmdliner"
|
||||
let fmt = Conf.with_pkg "fmt"
|
||||
let lwt = Conf.with_pkg "lwt"
|
||||
let threads = Conf.with_pkg "base-threads"
|
||||
let () =
|
||||
Pkg.describe "logs" @@ fun c ->
|
||||
let jsoo = Conf.value c jsoo in
|
||||
let cmdliner = Conf.value c cmdliner in
|
||||
let fmt = Conf.value c fmt in
|
||||
let lwt = Conf.value c lwt in
|
||||
let threads = Conf.value c threads in
|
||||
Ok [ Pkg.mllib "src/logs.mllib";
|
||||
Pkg.mllib ~cond:fmt "src/fmt/logs_fmt.mllib" ~dst_dir:"fmt";
|
||||
Pkg.mllib ~cond:jsoo "src/browser/logs_browser.mllib" ~dst_dir:"browser";
|
||||
Pkg.mllib ~cond:cmdliner "src/cli/logs_cli.mllib" ~dst_dir:"cli";
|
||||
Pkg.mllib ~cond:lwt "src/lwt/logs_lwt.mllib" ~dst_dir:"lwt";
|
||||
Pkg.mllib ~cond:fmt ~api:[] "src/top/logs_top.mllib" ~dst_dir:"top";
|
||||
Pkg.mllib ~cond:threads
|
||||
"src/threaded/logs_threaded.mllib" ~dst_dir:"threaded";
|
||||
Pkg.lib "src/top/logs_top_init.ml";
|
||||
Pkg.lib "src/top/logs_top_init.ml" ~dst:"top/logs_top_init_ml";
|
||||
Pkg.lib "src/fmt/logs_fmt_top_init.ml" ~dst:"fmt/logs_fmt_top_init.ml";
|
||||
Pkg.doc "doc/index.mld" ~dst:"odoc-pages/index.mld"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue