This commit is contained in:
swrup 2025-11-11 02:07:51 +01:00
parent aa2ff7b2f0
commit 2f3113f55d
11742 changed files with 1223940 additions and 0 deletions

View file

@ -0,0 +1,42 @@
description = "Monotonic wall-clock time for OCaml"
version = "2.1.0+dune"
requires = ""
archive(byte) = "mtime.cma"
archive(native) = "mtime.cmxa"
plugin(byte) = "mtime.cma"
plugin(native) = "mtime.cmxs"
exists_if = "mtime.cma mtime.cmxa"
package "clock" (
directory = "clock"
description = "The mtime.clock library"
version = "2.1.0+dune"
requires = "mtime"
exports = "mtime"
archive(byte) = "mtime_clock.cma"
archive(native) = "mtime_clock.cmxa"
plugin(byte) = "mtime_clock.cma"
plugin(native) = "mtime_clock.cmxs"
jsoo_runtime = "runtime.js"
exists_if = "mtime_clock.cma mtime_clock.cmxa"
package "os" (
description = "The mtime.clock.os library (deprecated)"
version = "2.1.0+dune"
requires = "mtime.clock"
exports = "mtime.clock"
warning = "Deprecated, use the mtime.clock library."
)
)
package "top" (
directory = "top"
description = "The mtime.top library"
version = "2.1.0+dune"
requires = "mtime"
archive(byte) = "mtime_top.cma"
archive(native) = "mtime_top.cmxa"
plugin(byte) = "mtime_top.cma"
plugin(native) = "mtime_top.cmxs"
exists_if = "mtime_top.cma mtime_top.cmxa"
)

View file

@ -0,0 +1,15 @@
#!/usr/bin/env ocaml
#use "topfind"
#require "topkg"
open Topkg
let () =
Pkg.describe "mtime" @@ fun c ->
Ok [ Pkg.mllib "src/mtime.mllib";
Pkg.mllib "src/clock/mtime_clock.mllib" ~dst_dir:"clock/";
Pkg.clib "src/clock/libmtime_clock_stubs.clib" ~lib_dst_dir:"clock/";
Pkg.lib "src/clock/runtime.js" ~dst:"clock/";
Pkg.mllib ~api:[] "src/top/mtime_top.mllib" ~dst_dir:"top/";
Pkg.lib "src/mtime_top_init.ml";
Pkg.doc "doc/index.mld" ~dst:"odoc-pages/index.mld";
Pkg.doc "test/min_clock.ml"; ]